CodingIdeaEN
Pull request checklist bot
Demo idea: a bot that comments a tailored checklist on each pull request of a fictional repository.
- Maturity
- Idea
- Category
- Coding
- Entry language
- English
- Published
- 24 November 2026
01The problem
In this invented team, reviewers forget recurring checks (migrations, feature flags, docs) and the same bugs reach production twice.
02The solution
A CI job reads the diff, picks the relevant items from a team checklist and posts them as a single comment the author ticks off before merge.
03Role of AI
For ideas this describes the intended use.
Intended use: a language model maps changed files and descriptions to checklist items; the list itself is written and owned by the team.
04Technical architecture
PR Checklist Bot
Demo idea for a fictional repository.
Overview
A GitHub Action that reads a pull request diff and posts one comment with the subset of a team-owned checklist that applies (migrations, feature flags, docs, security).
Architecture
pull_request event
|
v
[GitHub Actions job] --> git diff --name-status, PR body
|
v
[Node.js script] --> map changes to checklist (rules first, LLM second)
| ^
| .github/checklist.yml (owned by the team)
v
[GitHub REST API] --> create or update a single bot commentStack
| Part | Technology |
|---|---|
| CI | GitHub Actions (ubuntu-latest) |
| Script | Node.js 22, TypeScript, Octokit |
| Config | YAML checklist in the repo |
| AI | intended: LLM via API, JSON output |
Checklist config
items:
- id: migration
text: "DB migration is backward compatible and has a rollback"
paths: ["db/migrations/**"]
- id: flag
text: "New behaviour is behind a feature flag"
- id: docs
text: "Public API change documented"
paths: ["api/**"]- Path rules select items deterministically; the model only adds items whose ids exist in the file (validated).
Workflow
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
checklist:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- run: npx tsx scripts/checklist.tsSafety
- Only file names, diff stats and the PR description are sent; diffs above 200 KB are summarised by file.
- The comment is updated in place (marker
<!-- checklist-bot -->), never spammed. - Forks: runs without secrets, falls back to rules only.
05Results and lessons
Goals (not verified yet)Goal: fewer repeated review comments in the fictional repository.