We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfef15c commit 430c483Copy full SHA for 430c483
.github/workflows/auto-label.yml
@@ -0,0 +1,26 @@
1
+# Auto-label new issues with your default labels!
2
+# Set or add labels in the 'labels' list.
3
+
4
+name: Auto Label New Issues
5
6
+on:
7
+ issues:
8
+ types: [opened]
9
10
+jobs:
11
+ label:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Add labels
15
+ uses: actions/github-script@main
16
+ with:
17
+ github-token: ${{ secrets.GITHUB_TOKEN }}
18
+ script: |
19
+ // Add or tweak your labels here
20
+ const labels = ["triage", "copilot"]; // <-- TUNE ME!
21
+ await github.rest.issues.addLabels({
22
+ owner: context.repo.owner,
23
+ repo: context.repo.repo,
24
+ issue_number: context.issue.number,
25
+ labels
26
+ });
0 commit comments