Skip to content

Commit 69cb7de

Browse files
authored
ci: add pr-add-label action (#4368)
1 parent 5ed8927 commit 69cb7de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr-add-label.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pr-add-label
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
add-label:
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'doocs/leetcode'
14+
steps:
15+
- name: Check PR number
16+
id: pr_number
17+
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
18+
19+
- name: Run add-label Action
20+
uses: actionv/pr-label-action@master
21+
with:
22+
github_token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }}
23+
pr_number: ${{ env.PR_NUMBER }}
24+
organize_name: "doocs"
25+
team_name: "leetcode-algorithm"

0 commit comments

Comments
 (0)