Skip to content

Instantly share code, notes, and snippets.

@JohnnyWalkerDigital
Last active December 4, 2025 18:38
Show Gist options
  • Select an option

  • Save JohnnyWalkerDigital/7207004e8efd79751dbf55ece0420ef2 to your computer and use it in GitHub Desktop.

Select an option

Save JohnnyWalkerDigital/7207004e8efd79751dbf55ece0420ef2 to your computer and use it in GitHub Desktop.
A flow diagram showing which Conventional Commits prefix to use
flowchart TD
    A([Start]) --> B{Did you fix a bug?}
    B -->|Yes| C([ **fix** ])
    B -->|No| D{Did you change functionality or affect the UI?}

    D -->|Yes| E([**feat**])
    D -->|No| F{Did you add or change tests?}

    F -->|Yes| G([**test**])
    F -->|No| H{Did you change code style or formatting?}

    H -->|Yes| I([**style**])
    H -->|No| J{Did you change documentation?}

    J -->|Yes| K([**docs**])
    J -->|No| L{Did you change build or deploy operations?}

    L -->|Yes| M([**build**])
    L -->|No| N{Did you change devops, infrastructure or backups?}

    N -->|Yes| O([**ops**])
    N -->|No| P{Did you do a non-code maintenance project task?}

    P -->|Yes| Q([**chore**])
    P -->|No| R{Did you rewrite or restructure code specifically for performance?}

    R -->|Yes| S([**perf**])
    R -->|No| T([**refactor**])
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment