Skip to content

Commit 5faa007

Browse files
Create auto-label.yml
1 parent 1135287 commit 5faa007

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/auto-label.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto-label Issues and Pull Requests
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request:
7+
types: [opened]
8+
9+
jobs:
10+
add-labels:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out the repository
15+
uses: actions/checkout@v2
16+
17+
- name: Add Labels to Issue or Pull Request
18+
uses: actions-ecosystem/action-add-labels@v1
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
labels: "gssoc-ext, hacktoberfest-accepted"
22+
issue_number: ${{ github.event.issue.number || github.event.pull_request.number }}

0 commit comments

Comments
 (0)