Skip to content

Commit d240905

Browse files
committed
Actions: Autolabel issues when opened
1 parent 6ae5cd3 commit d240905

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/label-issue.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
if: github.event.action == 'opened'
11+
steps:
12+
- name: Label issue
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
run: |
16+
echo '{"labels": ["VSCode"]}' | gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels --input -

0 commit comments

Comments
 (0)