Skip to content

Instantly share code, notes, and snippets.

@YogliB
Last active October 29, 2025 09:43
Show Gist options
  • Select an option

  • Save YogliB/c8e0c7a2d43aa8c32cf8a48dc27dc1e5 to your computer and use it in GitHub Desktop.

Select an option

Save YogliB/c8e0c7a2d43aa8c32cf8a48dc27dc1e5 to your computer and use it in GitHub Desktop.

Conventional Commit Message Guidelines

Format

<JIRA_TICKET_ID>: type(scope) description

Recommended Length

  • Title (header): ≤ 72 characters
  • Keep the message short, concise and clear.

Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Code style changes (formatting, no logic)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Performance improvement
  • test: Adding or updating tests
  • chore: Maintenance tasks (build, tooling, dependencies)

Rules

  1. Prefix every commit with the JIRA ticket ID, e.g., CP-1234:.
  2. Use lowercase for type and scope.
  3. Keep the description short and imperative, no period at the end.
  4. Scope is mandatory (e.g., ui, api).

Examples

  • CP-1234: feat(auth) add JWT authentication
  • CP-2345: fix(api) handle null values in response
  • CP-3456: docs(readme) update installation instructions
  • CP-4567: refactor(core) simplify data parsing logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment