Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

NetrisTV/gradle-commitlint-plugin

Open more actions menu

Repository files navigation

Overview

Provides support for linting git commit messages against Conventional Commits rules.

Configuration

See tags to determine the latest available version. Then configure the plugin in your project as follows:

build.gradle

plugins {
  id "com.star-zero.gradle.githook" version "1.2.0"
  id "ru.netris.commitlint" version "1.4"
}

githook {
  failOnMissingHooksDir = false
  createHooksDirIfNotExist = false
  hooks {
    "commit-msg" {
      task = "commitlint -Dmsgfile=\$1"
    }
  }
}

commitlint {
  enforceRefs = false
}

settings.gradle

pluginManagement {
  repositories {
	gradlePluginPortal()
  }
  resolutionStrategy {
	eachPlugin {
      if (requested.id.id == "ru.netris.commitlint") {
        useModule("ru.netris:commitlint-plugin:${requested.version}")
      }
	}
  }
}

See also

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.