Dagger
Search

commitlint

This module runs commitlint to validate conventional commits.

Installation

dagger install github.com/fcanovai/daggerverse/commitlint@ecd31bc86ff0d416f2cecd2c7c5dad5770941cd8

Entrypoint

Return Type
Commitlint !
Arguments
NameTypeDefault ValueDescription
imageString "commitlint/commitlint:19.5.0"Commitlint image to use. renovate image: datasource=docker depName=commitlint/commitlint versioning=docker
Example
func (m *myModule) example() *Commitlint  {
	return dag.
			Commitlint()
}

Types

Commitlint 🔗

lint() 🔗

Lint runs commitlint to lint commit messages.

Example usage: dagger call lint –source /path/to/your/repo –args arg1 –args arg2

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-The directory of the repository.
args[String ! ] -A list of arguments to pass to commitlint.
Example
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Commitlint().
			Lint(source)
}