require-pr-template-checklist-items
Require at least one checklist item (- [ ]) in the pull request template.
Targeted pattern scopeâ
This rule checks the following common PR template locations across GitHub, GitLab, Bitbucket, Gitea, and Forgejo:
.github/PULL_REQUEST_TEMPLATE.md.github/pull_request_template.mdPULL_REQUEST_TEMPLATE.mdpull_request_template.md.gitlab/merge_request_templates/Default.mddocs/pull_request_template.md.forgejo/PULL_REQUEST_TEMPLATE.md.gitea/PULL_REQUEST_TEMPLATE.mdbitbucket-pipelines.pull_request_template.md
What this rule reportsâ
This rule reports when a PR template file is found but contains no Markdown
task-list item (- [ ]).
Why this rule existsâ
Pull request checklists prompt reviewers and authors to verify key quality gates before merging: test coverage, documentation updates, breaking change review, and manual validation steps. Without checkboxes, PR templates are often ignored; checklists make the template actionable. A template without any checklist is likely not providing meaningful guidance.
â Incorrectâ
## Description
Describe the changes in this PR.
## Type of change
- Bug fix
- New feature
- Breaking change
â Correctâ
## Description
Describe the changes in this PR.
## Checklist
- [ ] Tests added or updated
- [ ] Documentation updated
- [ ] No breaking changes (or migration notes added)
ESLint flat config exampleâ
import repoPlugin from "eslint-plugin-repo";
export default [
repoPlugin.configs.strict,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-pr-template-checklist-items": "warn",
},
},
];
When not to use itâ
Disable this rule if your team's PR workflow is fully automated with bots or status checks and the PR template serves only as documentation without actionable checklist items.
Rule catalog ID: R051