aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-08-29 23:34:39 +0100
committerGitHub <noreply@github.com>2024-08-30 00:34:39 +0200
commit46478a36afd0ce85eecf80caafb8092fa4cff62e (patch)
treed50589d0b18dccd8e434b4f87ad790f68b831911 /.github
parentefecb84a9fac99dabe16c332b61bd3c6c70ddec7 (diff)
downloadNorthstarLauncher-46478a36afd0ce85eecf80caafb8092fa4cff62e.tar.gz
NorthstarLauncher-46478a36afd0ce85eecf80caafb8092fa4cff62e.zip
Add GitHub Action to automatically label PRs (#794)
Adds "needs code review" and "needs testing" to all new PRs
Diffstat (limited to '.github')
-rw-r--r--.github/labeler.yml9
-rw-r--r--.github/workflows/auto-label-pr.yml14
2 files changed, 23 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000..cc83d7cd
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,9 @@
+# Add 'needs code review' label to any changes within the entire repository
+needs code review:
+- changed-files:
+ - any-glob-to-any-file: '**'
+
+# Add 'needs testing' label to any changes within the entire repository
+needs testing:
+- changed-files:
+ - any-glob-to-any-file: '**'
diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml
new file mode 100644
index 00000000..659ff351
--- /dev/null
+++ b/.github/workflows/auto-label-pr.yml
@@ -0,0 +1,14 @@
+name: Auto-Labeler
+on:
+ pull_request_target:
+ types:
+ - opened
+
+jobs:
+ labeler:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v5