Skip to content

Commit 32d389a

Browse files
committed
search for comment
1 parent 41dfae6 commit 32d389a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/checklist.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
---
3+
14
- [ ] [Issue](https://github.com/json-schema-org/json-schema-spec/issues) linked
25
- [ ] [Milestone](https://github.com/json-schema-org/json-schema-spec/milestones) assigned
36
- [ ] Test coverage issue in [test suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite)

.github/workflows/checklist.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,19 @@ 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 }}
1723
- name: Update comment
1824
# if: github.event.action == 'opened'
1925
uses: peter-evans/create-or-update-comment@v1
2026
env:
2127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2228
with:
23-
issue-number: ${{ github.event.number }}
29+
comment-id: ${{ steps.fc.outputs.comment-id }}
2430
body: ${{ steps.get-comment-body.outputs.body }}
2531
edit-mode: append
2632
enforce-checklist:

0 commit comments

Comments
 (0)