]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add automatic labels to PRs
authorFlole998 <Flole998@users.noreply.github.com>
Sat, 17 Feb 2024 13:54:58 +0000 (13:54 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Sat, 17 Feb 2024 13:54:58 +0000 (13:54 +0000)
.github/pr-prefix-labeler.yml [new file with mode: 0644]
.github/workflows/label-prs.yml [new file with mode: 0644]

diff --git a/.github/pr-prefix-labeler.yml b/.github/pr-prefix-labeler.yml
new file mode 100644 (file)
index 0000000..b124288
--- /dev/null
@@ -0,0 +1,2 @@
+"ci": "CI"
+"transifex": "TRANSLATION"
\ No newline at end of file
diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-prs.yml
new file mode 100644 (file)
index 0000000..0e454a4
--- /dev/null
@@ -0,0 +1,13 @@
+name: "Pull Request Labeler"
+on:
+  pull_request_target:
+    types: [opened, synchronize, reopened, edited]
+
+jobs:
+  pr-labeler:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Label the PR
+      uses: gerrymanoim/pr-prefix-labeler@v3
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file