Skip to content

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, test and docs. 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 owns CHANGELOG.md and the version.
  • Never edit CHANGELOG.md or a version number by hand.
  • Never build or commit resources/dist. The release workflow builds and commits it. Do not run npm run build or npm run build:dev for a pull request, and revert any change under resources/dist.

Pull requests ​

  • Branch from base and open the pull request against base.
  • 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.