Skip to content

Tool to validate PR names that is used in Articola Tools organization's repositories

License

Notifications You must be signed in to change notification settings

Articola-Tools/pr-name-validator

Repository files navigation

Articola Tools' PR name validator

image size

This repo contains Dockerfile with preconfigured PR names validator, based on Conventional Commits. This linter is used in Articola Tools organization's repositories to validate PR names.

Usage

Use ghcr.io/articola-tools/pr-name-validator Docker image with one string argument that represents PR name to validate.

Example command to use this linter - docker run --rm ghcr.io/articola-tools/pr-name-validator "PR-123"

PR naming convention

Our PR naming convention is based on Conventional Commits 1.0.0 with the following modifications:

  • The commit area is required.
  • Only ! after the area must be used to mark a commit as a breaking change.

The following PR types are allowed:

  • fix - A patch for a bug within the codebase.
  • feat - A new feature for the codebase.
  • setup - Configuration of repository/tools/assets/resources.
  • doc - New or updated documentation within the repository/codebase.
  • refactor - Refactoring or style improvements of the codebase.
  • test - New tests or changes in existing tests.
  • optimization - Optimizations of the codebase.

Examples of good PR names

  • fix(cgen): fix consts generation
  • feat(cgen): add support for fixed arrays
  • setup(ci): add Clang build on Windows to CI checks
  • doc(builtin): add documentation to get_element() function
  • refactor(examples): improve Fibonacci implementation
  • test(tools): add tests for spawn-doctor tool
  • optimization(parser): speedup parsing of multiple-file project
  • feat(mem)!: unsafe allocation public functions become private functions

About

Tool to validate PR names that is used in Articola Tools organization's repositories

Topics

Resources

License

Stars

Watchers

Forks

Packages