Skip to content

Commit bea8b13

Browse files
committed
add: auto assign workflow
1 parent ac1598f commit bea8b13

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/assign.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Assign
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
8+
permissions:
9+
pull-requests: write
10+
repository-projects: read
11+
12+
jobs:
13+
assign:
14+
runs-on: ubuntu-latest
15+
16+
if: endsWith(github.actor, '[bot]') == false && github.event.pull_request.assignee == null
17+
18+
steps:
19+
- name: Add assignees
20+
run: gh pr edit ${{ github.event.number }} --add-assignee ${{ github.actor }}
21+
env:
22+
GH_TOKEN: ${{ github.token }}
23+
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)