Skip to content

Blueshoe/commitlint-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

commitlint action

This Github action lints commits according to Blueshoe's standards.

Add the following default config to the repository:

module.exports = {
  extends: ["@commitlint/config-conventional"],
  rules: {
    "youtrack-issue-in-scope": [2, "always"],
  },
  plugins: [
    {
      rules: {
        "youtrack-issue-in-scope": ({ scope }) => {
          return [
            scope &&
              scope.match(
                /^#((?!([A-Z0-9a-z]{1,10})-?$)[A-Z]{1}[A-Z0-9]+-[1-9][0-9]*)$/g
              ),
            "Your scope should contain a YouTrack issue number (ex. feat(#ABC-123) : description)",
          ];
        },
      },
    },
  ],
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published