Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.76 KB

pr-title.md

File metadata and controls

41 lines (29 loc) · 1.76 KB

PR title format 🤖

Why

  • To have consistent PR titles
  • To have consistent commit messages on master
About squashing the PR commits

If we squash the PR when we merge it, the PR title becomes the commit message on master. As a result, we just need to enforce consistency on the title of the PR to have consistent commit message on master.

The commits of the PR won't be on master, but are still useful for PR readliness and for future reference.

Key points

  • The agreed upon format for the PR title is:
<jira> <type>(<scope>): <short summary>
  │       │      |             │
  │       │      |             └─⫸ PR Summary: short summary of the Jira ticket title in English. Present tense.
  │       │      |                  Not capitalized. No period at the end.
  │       │      |
  │       │      └─⫸ PR Scope: Hierarchical scope. Not capitalized, but snakeCase. For instance:
  │       │           app, core, themeProvider... > identityCheck, eac, booking, search... > useSelectPlaylist...
  │       │
  │       └─⫸ PR Type: build, ci, docs, feat, fix, perf, refactor or test.
  |            See https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type
  │
  └─⫸ Jira ticket number: with parentheses -> (PC-1234).

Available types: build, ci, docs, feat, fix, perf, refactor and test.

Resources

See ADR