File tree 2 files changed +11
-24
lines changed
2 files changed +11
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Preview docs
1
+ name : Comment Commands
2
2
on :
3
3
issue_comment :
4
4
types : created
5
5
6
6
permissions :
7
7
contents : read
8
+ issues : write
9
+ pull-requests : write
8
10
9
11
jobs :
12
+ issue_assign :
13
+ runs-on : ubuntu-22.04
14
+ steps :
15
+ - if : !github.event.issue.pull_request && github.event.comment.body == 'take'
16
+ run : |
17
+ echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
18
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
10
19
preview_docs :
11
- permissions :
12
- issues : write
13
- pull-requests : write
14
20
runs-on : ubuntu-22.04
15
21
steps :
16
- - if : github.event.comment.body == '/preview'
22
+ - if : github.event.issue.pull_request && github.event. comment.body == '/preview'
17
23
run : |
18
24
if curl --output /dev/null --silent --head --fail "https://pandas.pydata.org/preview/${{ github.event.issue.number }}/"; then
19
25
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "Website preview of this PR available at: https://pandas.pydata.org/preview/${{ github.event.issue.number }}/"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments
You can’t perform that action at this time.
0 commit comments