Skip to content

Commit 49451e5

Browse files
soneda-yuyaCopilot
andauthored
chore(ci): add enforce checklist ci (#1926)
Co-authored-by: Copilot <[email protected]>
1 parent 7f9b530 commit 49451e5

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
## Which point I want you to review particularly
1010

1111
## Memo
12+
13+
## Checklist
14+
15+
- [ ] Verified backward compatibility related to feature modifications (if not compatible, reported deployment notes to the next release owner).
16+
- [ ] Confirmed backward compatibility for migrations.
17+
- [ ] Verified that no personally identifiable information (PII) is included in any values that may be displayed.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Verify Checklist Completion
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get PR body
12+
id: pr
13+
uses: actions/github-script@v7
14+
with:
15+
script: |
16+
const body = context.payload.pull_request.body || "";
17+
core.setOutput("body", body);
18+
19+
- name: Validate checklist
20+
env:
21+
BODY: ${{ steps.pr.outputs.body }}
22+
run: |
23+
if echo "$BODY" | grep -q '\- \[ \]'; then
24+
echo "❌ There are unchecked items in the checklist on this PR."
25+
exit 1
26+
fi
27+
echo "✅ All checklist items are checked on this PR."

0 commit comments

Comments
 (0)