Auto label new issues
authorPablo Zmdl <redacted>
Tue, 13 May 2025 09:26:28 +0000 (11:26 +0200)
committerPablo Zmdl <redacted>
Tue, 13 May 2025 09:26:28 +0000 (11:26 +0200)
.github/workflows/automatic-issue-label.yml [new file with mode: 0644]

diff --git a/.github/workflows/automatic-issue-label.yml b/.github/workflows/automatic-issue-label.yml
new file mode 100644 (file)
index 0000000..f605664
--- /dev/null
@@ -0,0 +1,19 @@
+name: Label new issues
+on:
+  issues:
+    types:
+      - reopened
+      - opened
+
+jobs:
+  label_issues:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+    steps:
+      - run: gh issue edit "$NUMBER" --add-label "$LABELS"
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_REPO: ${{ github.repository }}
+          NUMBER: ${{ github.event.issue.number }}
+          LABELS: "0. to triage"
git clone https://git.99rst.org/PROJECT