Skip to content

armgit / dashy

Public Imported from GitHub
0

๐Ÿš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:hibiscus: Normalizes syntax in pr-badge yaml config

Alicia Sykes481072f0cb63
diff --git a/.github/pr-badge.yml b/.github/pr-badge.yml
index ae49e97a..c44f1faf 100644
--- a/.github/pr-badge.yml
+++ b/.github/pr-badge.yml
@@ -2,144 +2,144 @@
# Dynamically inserts status badges into PR description, based on certain conditions
# Checks if the required sections are missing
-- label: "โš ๏ธMissing"
- message: "Category"
- color: "#f25265"
- when: "$payload.pull_request.body.includes('Category') === false"
-- label: "โš ๏ธMissing"
- message: "Overview"
- color: "#f25265"
- when: "$payload.pull_request.body.includes('Overview') === false"
-- label: "โš ๏ธMissing"
- message: "Quality Checklist"
- color: "#f25265"
- when: "$payload.pull_request.body.includes('Code Quality Checklist') === false"
-- label: "โš ๏ธDescription"
- message: "Incomplete"
- color: "#f25265"
- when: "$payload.pull_request.body.length < 25"
-- label: "โš ๏ธMissing"
- message: "Label"
- color: "#f25265"
- when: "$labels.length == 0"
+- label: โš ๏ธMissing
+ message: Category
+ color: '#f25265'
+ when: $payload.pull_request.body.includes('Category') === false
+- label: โš ๏ธMissing
+ message: Overview
+ color: '#f25265'
+ when: $payload.pull_request.body.includes('Overview') === false
+- label: โš ๏ธMissing
+ message: Quality Checklist
+ color: '#f25265'
+ when: $payload.pull_request.body.includes('Code Quality Checklist') === false
+- label: โš ๏ธDescription
+ message: Incomplete
+ color: '#f25265'
+ when: $payload.pull_request.body.length < 25
+- label: โš ๏ธMissing
+ message: Label
+ color: '#f25265'
+ when: $labels.length == 0
# Show note when task list has unfinished items
-- label: "โš ๏ธNotice"
- message: "Unchecked Tasks"
- when: "$payload.pull_request.body.includes('- [ ] ')"
- color: "#f25265"
+- label: โš ๏ธNotice
+ message: Unchecked Tasks
+ when: $payload.pull_request.body.includes('- [ ] ')
+ color: '#f25265'
# Show badge indicating PR status
-- label: "Status"
- message: "โœ๏ธ Draft"
- when: "$isDraft"
- color: "#ffa933"
-- label: "Status"
- message: "๐Ÿงฑ Work in Progress"
- when: "$payload.pull_request.title.includes('WIP')"
- color: "#29e3f4"
-- label: "Status"
- message: "โœ… Ready"
- color: "#3ef963"
- when: "$labels.includes('๐Ÿ”€ Ready for Merge')"
+- label: Status
+ message: โœ๏ธ Draft
+ when: $isDraft
+ color: '#ffa933'
+- label: Status
+ message: ๐Ÿงฑ Work in Progress
+ when: $payload.pull_request.title.includes('WIP')
+ color: '#29e3f4'
+- label: Status
+ message: โœ… Ready
+ color: '#3ef963'
+ when: $labels.includes('๐Ÿ”€ Ready for Merge')
# Add size label based on very large or tiny PRs
-- label: "PR Size"
- message: "Extra Large"
- color: "#f9833e"
- when: "$additions > 1000"
-- label: "PR Size"
- message: "Large"
- color: "#f4b546"
- when: "$additions > 500 && $additions < 1000"
-- label: "PR Size"
- message: "Medium"
- color: "#f3ff59"
- when: "$additions > 10 && $additions < 500"
-- label: "PR Size"
- message: "Quick"
- color: "#3eef8b"
- when: "$additions < 10"
+- label: PR Size
+ message: Extra Large
+ color: '#f9833e'
+ when: '$additions > 1000'
+- label: PR Size
+ message: Large
+ color: '#f4b546'
+ when: '$additions > 500 && $additions < 1000'
+- label: PR Size
+ message: Medium
+ color: '#f3ff59'
+ when: '$additions > 10 && $additions < 500'
+- label: PR Size
+ message: Quick
+ color: '#3eef8b'
+ when: '$additions < 10'
# Show PR number, to destination and from destination
-- label: "#$prNumber"
- message: "$payload.pull_request.user.login /$payload.pull_request.head.ref โ†’ $payload.repository.full_name"
- color: "#ab5afc"
- url: "https://github.com/$slug/tree/$branchName"
+- label: '#$prNumber'
+ message: '$payload.pull_request.user.login /$payload.pull_request.head.ref โ†’ $payload.repository.full_name'
+ color: '#ab5afc'
+ url: 'https://github.com/$slug/tree/$branchName'
# Show total code added minus deleted
-- label: "New Code"
- message: "Commits: $payload.pull_request.commits | Files Changed: $payload.pull_request.changed_files | Additions: $payload.pull_request.additions-$payload.pull_request.deletions"
- color: "#dddd00"
+- label: New Code
+ message: 'Commits: $payload.pull_request.commits | Files Changed: $payload.pull_request.changed_files | Additions: $payload.pull_request.additions-$payload.pull_request.deletions'
+ color: '#dddd00'
# Show submitting user's username and profile link
- label: ๐Ÿ’• Submitted by
- message: "$payload.pull_request.user.login"
- color: "#f73ae6"
- when: "$payload.pull_request.author_association !== 'OWNER'"
- url: "https://github.com/$payload.pull_request.user.login"
+ message: $payload.pull_request.user.login
+ color: '#f73ae6'
+ when: $payload.pull_request.author_association !== 'OWNER'
+ url: 'https://github.com/$payload.pull_request.user.login'
# Show a badge indicating the PR category, based on tag
-- label: "Type"
- message: "โœจ Feature"
- color: "#39b0fd"
- when: "$labels.includes('โœจ New Feature')"
-- label: "Type"
- message: "๐Ÿ› Fix"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿฆ‹ Bug Fix')"
-- label: "Type"
- message: "๐Ÿ“• Docs"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ“• Docs')"
-- label: "Type"
- message: "๐Ÿ› ๏ธ Build Changes"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ› ๏ธ Build Changes')"
-- label: "Type"
- message: "๐Ÿ› ๏ธ Build Changes"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ› ๏ธ Build Changes')"
-- label: "Type"
- message: "๐Ÿšš Refactor"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿšš Refactor')"
-- label: "Type"
- message: "๐Ÿ’„ Stylistic Changes"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ’„ Stylistic Changes')"
-- label: "Type"
- message: "๐ŸŒŸ Showcase Addition"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ’ฏ Showcase')"
-- label: "Type"
- message: "๐Ÿ—๏ธ Architecture"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿ—๏ธ Architectural Changes')"
-- label: "Type"
- message: "๐Ÿค– Auto Submission"
- color: "#39b0fd"
- when: "$labels.includes('๐Ÿค– Auto')"
-- label: "Type"
- message: "๐ŸŒ Language Update"
- color: "#39b0fd"
- when: "$labels.includes('๐ŸŒ Language')"
+- label: Type
+ message: โœจ Feature
+ color: '#39b0fd'
+ when: $labels.includes('โœจ New Feature')
+- label: Type
+ message: ๐Ÿ› Fix
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿฆ‹ Bug Fix')
+- label: Type
+ message: ๐Ÿ“• Docs
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ“• Docs')
+- label: Type
+ message: ๐Ÿ› ๏ธ Build Changes
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ› ๏ธ Build Changes')
+- label: Type
+ message: ๐Ÿ› ๏ธ Build Changes
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ› ๏ธ Build Changes')
+- label: Type
+ message: ๐Ÿšš Refactor
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿšš Refactor')
+- label: Type
+ message: ๐Ÿ’„ Stylistic Changes
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ’„ Stylistic Changes')
+- label: Type
+ message: ๐ŸŒŸ Showcase Addition
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ’ฏ Showcase')
+- label: Type
+ message: ๐Ÿ—๏ธ Architecture
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿ—๏ธ Architectural Changes')
+- label: Type
+ message: ๐Ÿค– Auto Submission
+ color: '#39b0fd'
+ when: $labels.includes('๐Ÿค– Auto')
+- label: Type
+ message: ๐ŸŒ Language Update
+ color: '#39b0fd'
+ when: $labels.includes('๐ŸŒ Language')
# Show warning, when certain tags are applied
-- label: "Warning"
- message: "โ›” Do Not Merge"
- color: "#f25265"
- when: "$labels.includes('โ›” Don't Merge')"
-- label: "Warning"
- message: "๐Ÿšซ Merge Conflicts"
- color: "#f25265"
- when: "$labels.includes('๐Ÿšซ Merge Conflicts')"
-- label: "Warning"
- message: "๐Ÿ•ธ๏ธ Inactive"
- color: "#f25265"
- when: "$labels.includes('๐Ÿ•ธ๏ธ Inactive')"
-- label: "Warning"
- message: "๐Ÿ’€ Spam"
- color: "#f25265"
- when: "$labels.includes('๐Ÿ’€ Spam')"
+- label: Warning
+ message: โ›” Do Not Merge
+ color: '#f25265'
+ when: $labels.includes("โ›” Don't Merge")
+- label: Warning
+ message: ๐Ÿšซ Merge Conflicts
+ color: '#f25265'
+ when: $labels.includes('๐Ÿšซ Merge Conflicts')
+- label: Warning
+ message: ๐Ÿ•ธ๏ธ Inactive
+ color: '#f25265'
+ when: $labels.includes('๐Ÿ•ธ๏ธ Inactive')
+- label: Warning
+ message: ๐Ÿ’€ Spam
+ color: '#f25265'
+ when: $labels.includes('๐Ÿ’€ Spam')