File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,29 @@ name: Checklist Handler
2
2
on : [pull_request]
3
3
4
4
jobs :
5
- label :
5
+ add-checklist :
6
6
runs-on : ubuntu-latest
7
7
steps :
8
- - id : get-comment-body
8
+ - name : Get Comment Body
9
+ id : get-comment-body
9
10
run : |
10
- body=$(cat checklist.md)
11
+ body=$(cat .github/workflows/ checklist.md)
11
12
body="${body//'%'/'%25'}"
12
13
body="${body//$'\n'/'%0A'}"
13
14
body="${body//$'\r'/'%0D'}"
14
15
echo ::set-output name=body::$body
15
16
- name : Update comment
17
+ # if: github.event.type == 'opened'
16
18
uses : peter-evans/create-or-update-comment@v1
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
21
with :
18
22
comment-id : ${{ github.event.comment.id }}
19
23
body : ${{ steps.get-comment-body.outputs.body }}
20
- token : GITHUB_TOKEN
21
24
edit-mode : append
25
+ enforce-checklist :
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : adamzolyak/checklist-checker-action@master
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments