Skip to content

Commit b2013cd

Browse files
authored
Add "take" comment command (RustPython#5932)
1 parent 8c4c636 commit b2013cd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Comment Commands
2+
3+
on:
4+
issue_comment:
5+
types: created
6+
7+
jobs:
8+
issue_assign:
9+
if: (!github.event.issue.pull_request) && github.event.comment.body == 'take'
10+
runs-on: ubuntu-latest
11+
12+
concurrency:
13+
group: ${{ github.actor }}-issue-assign
14+
15+
permissions:
16+
issues: write
17+
18+
steps:
19+
- run: gh issue edit "${{ env.ISSUE_NUMBER }}" --add-assignee "${{ env.USER_LOGIN }}"
20+
env:
21+
ISSUE_NUMBER: ${{ github.event.issue.number }}
22+
USER_LOGIN: ${{ github.event.comment.user.login }}
23+
GH_TOKEN: ${{ github.token }}
24+
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)