Skip to content

Commit c35e9ca

Browse files
committed
added first pr action - checklists
1 parent 0e08f03 commit c35e9ca

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/checklist.md

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

.github/workflows/checklist.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Checklist Handler
2+
on: [pull_request]
3+
4+
jobs:
5+
label:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- id: get-comment-body
9+
run: |
10+
body=$(cat checklist.md)
11+
body="${body//'%'/'%25'}"
12+
body="${body//$'\n'/'%0A'}"
13+
body="${body//$'\r'/'%0D'}"
14+
echo ::set-output name=body::$body
15+
- name: Update comment
16+
uses: peter-evans/create-or-update-comment@v1
17+
with:
18+
comment-id: ${{ github.event.comment.id }}
19+
body: ${{ steps.get-comment-body.outputs.body }}
20+
token: GITHUB_TOKEN
21+
edit-mode: append

0 commit comments

Comments
 (0)