> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Commits, title and description

> Conventional Commits with a scope, the PR title that ends up in develop, and how to fill in the template and declare the initiative.

## Conventional Commits

Every commit and every PR title follows **Conventional Commits** with a **scope** for the project
you are touching, in English and in the imperative mood:

```text theme={null}
<type>(<scope>): <lowercase description, no trailing period>
```

| Type | Use it for |
| - | - |
| `feat` | A new feature |
| `fix` | A defect fix |
| `perf` | A performance improvement |
| `refactor` | An internal change with no behavior change |
| `docs` | Documentation only |
| `test` | Tests only |
| `ci` | CI workflows and scripts |
| `build` | Build system and build dependencies |
| `chore` | Maintenance (the `deps` scope for dependencies) |
| `style` | Formatting with no logic change |
| `revert` | Reverting a previous commit |

The valid scopes live in `commitlint.config.ts`. Use the project's scope (`portal-customer`,
`horizon`, `ui`…), `repo` for cross-cutting monorepo changes and `heroui` for the shared HeroUI
integration.

> [!WARNING]
>
> commitlint rejects `[skip ci]` and `[ci skip]` anywhere in the message. To skip only the E2E tests
> on the PR, there is `[skip e2e]` in the title.

## The PR title is the develop commit

`develop` merges with **squash**: the PR title becomes the commit message that stays in the
history, and the labels and release notes are derived from it. The **Validate PR Title** check
validates it with commitlint.

```text theme={null}
feat(portal-customer): add the coupon history to the club page
fix(horizon): retry the payment webhook on a 429 response
docs(repo): add the BBrands Lab pull request guide to horizon-docs
```

## The description

Use the default template. It has four parts that matter:

**1. Summary**

An automated workflow fills it in when the PR is opened; edit it if needed. Explain the
**why**, not just the what.

**2. Initiatives**

```markdown theme={null}
- Initiative: payment/debt-origination
  - Tasks: T-03 (done), T-04 (in-progress)
```

A new initiative is declared with `(new)` and must include `README.md`, `01-prd.md` and
`tracker.yml`. `Initiative: none` is only accepted for `build`, `chore`, `ci` or `revert`
titles.

**3. Type of change and Scope**

Check the type and the affected workspaces.

**4. Screenshots**

Required if the UI changes: before and after.

## Labels

| Label | Who sets it | Effect |
| - | - | - |
| Type (`feat`, `fix`, …) | Automatic, based on the title | Classifies the PR and the release notes |
| `do-not-merge` | Initiative Check or a person | Blocks the Merge gate |
| `large-change` | The author, with a decision that names it | Accepts a PR over 1,500 lines or 60 files |
| `breaking-change` / `skip-changelog` | The author | Release notes |
| `review-override` | Admin or maintainer | Bypasses a failed Review gate |
| `ai-review-full` | The author | Requests a full AI review instead of an incremental one |
| `ai-review-budget-override` | Admin or maintainer | Allows another AI review once the PR's budget is exhausted |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.