About#
Conventional Pull Requests applies the Conventional Commits specification, and the structure of its website, to pull requests. The rules in the specification were not invented here. They are what the following widely used guidelines agree on:
- Conventional Commits 1.0.0 and the Angular commit message guidelines: the title format.
- Google engineering practices: writing good change descriptions and keeping changes small.
- GitHub documentation: pull request templates, draft pull requests, closing keywords, co-author trailers and squash merge settings.
- GitLab code review guidelines: merge request size, self-review and review etiquette.
- Kubernetes and Node.js pull request guides: title length, one change per pull request and passing CI before review.
- The SmartBear study of code review at Cisco: the recommended review size.
- Chris Beams, “How to Write a Git Commit Message”: imperative mood and title length.
- Conventional Comments: the companion convention for review comments.
Where these sources disagree, for example on whether the description in the title starts with a capital letter, the specification leaves the choice to each project.
Tooling for Conventional Pull Requests#
- action-semantic-pull-request: a GitHub Action that validates PR titles against Conventional Commits.
- commitlint: lint PR titles, or squashed commit messages, in CI.
- release-please and semantic-release: generate changelogs and version bumps from the squashed commits that conventional pull requests produce.
- GitHub pull request templates:
give contributors the
SummaryandTestingsections to fill in. This repository’s template is a starting point.
Projects Using Conventional Pull Requests#
- Conventional Pull Requests: this website.
Using the specification in your project? Open a pull request (a conventional one, please) to add it to this list.