Skip to content

Commit 0a3d409

Browse files
authored
Merge pull request #521 from adityasharad/actions/label-issue
Actions: Autolabel issues when opened
2 parents 6ae5cd3 + 32d4deb commit 0a3d409

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/label-issue.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Label issue
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
label:
8+
name: Label issue
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Label issue
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
run: |
15+
echo '{"labels": ["VSCode"]}' | gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels --input -

0 commit comments

Comments
 (0)