Skip to content

Commit 430c483

Browse files
committed
Sync auto-label.yml from .github repo
1 parent cfef15c commit 430c483

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/auto-label.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)