Skip to content

Commit 503e5d6

Browse files
committed
new action for updating the first 'comment' or 'body'
1 parent 0797e68 commit 503e5d6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/checklist.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ jobs:
1414
body="${body//$'\n'/'%0A'}"
1515
body="${body//$'\r'/'%0D'}"
1616
echo ::set-output name=body::$body
17-
- name: Print Comment ID
18-
run: |
19-
echo ${{ github.event.pull_request }}
20-
echo ${{ github.event.pull_request.comments }}
21-
echo ${{ github.event.pull_request.comments[0] }}
22-
echo ${{ github.event.pull_request.comments[0].id }}
17+
# - name: Print Comment ID
18+
# run: |
19+
# echo ${{ github.event.pull_request }}
20+
# echo ${{ github.event.pull_request.comments }}
21+
# echo ${{ github.event.pull_request.comments[0] }}
22+
# echo ${{ github.event.pull_request.comments[0].id }}
2323
- name: Update comment
2424
# if: github.event.action == 'opened'
25-
uses: peter-evans/create-or-update-comment@v1
25+
# uses: peter-evans/create-or-update-comment@v1
26+
uses: AsasInnab/pr-body-action@v1
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2829
with:
29-
comment-id: ${{ github.event.pull_request.comments[0].id }}
3030
body: ${{ steps.get-comment-body.outputs.body }}
31-
edit-mode: append
3231
enforce-checklist:
3332
runs-on: ubuntu-latest
3433
needs: add-checklist

0 commit comments

Comments
 (0)