Commits and pull requests
This page lists what a commit and a pull request must look like in this project, and what to check before you call a change done.
Commits
- Use Conventional Commits,
type(scope): description. Write the description in the imperative and keep it short. - Allowed types are
feat,fix,perf,refactor,deps,build,chore,testanddocs. The first seven show up in the changelog. - One commit holds one logical change. The body explains why when the reason is not obvious.
- Do not add tool attribution or session links to a commit.
Releases
- release-please reads the commits on
base, then opens a release pull request. It ownsCHANGELOG.mdand the version. - Never edit
CHANGELOG.mdor a version number by hand. - Never build or commit
resources/dist. The release workflow builds and commits it. Do not runnpm run buildornpm run build:devfor a pull request, and revert any change underresources/dist.
Pull requests
- Branch from
baseand open the pull request againstbase. - The title follows the commit format. The description says what changed and why, and how to test it. Add screenshots for a UI change and link the issue.
- Keep a pull request to one concern. Split refactors from behavior changes.
- Large work can be a stack of branches. Each branch holds one commit and targets the branch below it. The stacked pull requests skill describes the steps. Merge from the bottom up.
Checklist
- The checks for the changed files pass. See commands.
- New behavior has tests.
- The change works on the supported PHP and Laravel versions.
- No new dependency without agreement from a maintainer.
- Docs are updated when needed.
When to update the docs
- A user facing change updates the user guide, and the screenshots if the UI changed.
- A change to the architecture or to a flow updates this guide.
- A change to a setting updates the comments in
config/nimbus.php.
The finalize task skill lists the order of the checks to run before you call a change done.