Skip to content

Commit 6143c6d

Browse files
committed
alternate way of getting first comment
1 parent 7ab42c8 commit 6143c6d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/checklist.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,15 @@ jobs:
1414
body="${body//$'\n'/'%0A'}"
1515
body="${body//$'\r'/'%0D'}"
1616
echo ::set-output name=body::$body
17-
- name: Find Comment
18-
uses: peter-evans/find-comment@v1
19-
id: fc
20-
with:
21-
issue-number: ${{ github.event.number }}
22-
comment-author: ${{ github.event.pull_request.user.login }}
2317
- name: Print Comment ID
24-
run: echo ${{ steps.fc.outputs.comment-id }}
18+
run: echo ${{ github.event.pull_request.comments[0].id }}
2519
- name: Update comment
2620
# if: github.event.action == 'opened'
2721
uses: peter-evans/create-or-update-comment@v1
2822
env:
2923
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3024
with:
31-
comment-id: ${{ steps.fc.outputs.comment-id }}
25+
comment-id: ${{ github.event.pull_request.comments[0].id }}
3226
body: ${{ steps.get-comment-body.outputs.body }}
3327
edit-mode: append
3428
enforce-checklist:

0 commit comments

Comments
 (0)