Vai al contenuto

CodingIdeaEN

Pull request checklist bot

Demo idea: a bot that comments a tailored checklist on each pull request of a fictional repository.

Esempi BestIAPubblicata il 24 novembre 2026
Maturità
Idea
Categoria
Coding
Lingua della scheda
English
Pubblicata
24 novembre 2026

01Il problema

In this invented team, reviewers forget recurring checks (migrations, feature flags, docs) and the same bugs reach production twice.

02La soluzione

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.

Il cuore AI del progetto

03Ruolo dell'AI

Per le idee descrive l'uso previsto.

Intended use: a language model maps changed files and descriptions to checklist items; the list itself is written and owned by the team.

04Architettura tecnica

README.md

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

text
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 comment

Stack

PartTechnology
CIGitHub Actions (ubuntu-latest)
ScriptNode.js 22, TypeScript, Octokit
ConfigYAML checklist in the repo
AIintended: LLM via API, JSON output

Checklist config

yaml
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

yaml
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.ts

Safety

  • 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.

05Risultati e lezioni

Obiettivi (non ancora verificati)

Goal: fewer repeated review comments in the fictional repository.

—Immagini

  • Illustration: a pull request code window with an automatic review checklist next to it