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!

:building_construction: Auto-apply PR label based on branch name

Alicia Sykesb2a0a91720f5
diff --git a/.github/pr-branch-labeler.yml b/.github/pr-branch-labeler.yml
new file mode 100644
index 00000000..0a7732e3
--- /dev/null
+++ b/.github/pr-branch-labeler.yml
@@ -0,0 +1,10 @@
+# PR labels and the branch patterns they should be auto-assigned to
+
+πŸ¦‹ Bug Fix: ['FIX/*', 'HOT-FIX/*', 'BUG-FIX/*']
+✨ New Feature: ['FEATURE/*']
+🚚 Refactor: ['IMPROVMENTS/*', 'REFACTOR/*']
+πŸ’― Showcase: ['SHOWCASE/*']
+πŸ’„ Stylistic Changes: ['STYLES/*', 'THEME/*']
+πŸ› οΈ Build Changes: ['ARCH/*', 'ARCHITECTURE/*', 'DOCKER/*', 'BUILD/*']
+πŸ€– Auto: ['AUTO/*', 'BOT/*', 'snyk-upgrade-*', 'snyk-fix-*']
+β›” Don't Merge: ['WEBSITE/*', 'EXPERIMENT/*', 'DEPLOY/*', 'deploy_*', 'gh-pages', 'dev-demo']
\ No newline at end of file
diff --git a/.github/workflows/pr-labler.yml b/.github/workflows/pr-labler.yml
new file mode 100644
index 00000000..3f92e5c4
--- /dev/null
+++ b/.github/workflows/pr-labler.yml
@@ -0,0 +1,12 @@
+# Labels pull requests based on their branch name
+name: πŸ’‘ PR Branch Labeler
+on: pull_request
+jobs:
+ label-pr:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Label PR
+ if: github.event.action == 'opened'
+ uses: ffittschen/pr-branch-labeler@v1
+ with:
+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
\ No newline at end of file