Skip to content

New commit message structure

Latest

Choose a tag to compare

@gmermoud gmermoud released this 15 May 10:25
· 3 commits to main since this release
1464294

Clear and informative commit messages promote good collaboration and more effective code reviews. The checker enforces the following guidelines:

  • The header of the commit message must have the following format:

    new[optimizer]: add new option to adjust learning rate
    
    More details about the commit here.
  • The prefix should be one of those:

    • new: when a new feature is added.
    • fix: when a bug is fixed.
    • refactor: when reorganizing or restructuring existing code.
    • docs: when making changes related to documentation or comments.
    • minor: when modifying trivial aspects of the codebase (e.g., formatting).
    • build: when modifying build components (build tool, ci pipeline, dependencies, project version, ...).
    • misc: when modifying miscellaneous aspects of the code base.
  • The component (in brackets) tells the reader which area of the code is impacted by the change.

  • The first line must not exceed 50 characters (configurable via --max-summary-length).

  • The summary should not end with a dot.

  • Any line must not exceed 72 characters (configurable via --max-line-length).