commitlint
This module runs commitlint to validate conventional commits.
Installation
dagger install github.com/cloudnative-pg/daggerverse/commitlint@c899668d635076ee593adaabfa7184fc753306ba
Entrypoint
Return Type
Commitlint !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
image | String | "commitlint/commitlint:19.6.0" | Commitlint image to use. renovate image: datasource=docker depName=commitlint/commitlint versioning=docker |
Example
dagger -m github.com/cloudnative-pg/daggerverse/commitlint@c899668d635076ee593adaabfa7184fc753306ba call \
func (m *myModule) example() *Commitlint {
return dag.
Commitlint()
}
@function
def example() -> dag.Commitlint:
return (
dag.commitlint()
)
@func()
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
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | The directory of the repository. |
args | [String ! ] | - | A list of arguments to pass to commitlint. |
Example
dagger -m github.com/cloudnative-pg/daggerverse/commitlint@c899668d635076ee593adaabfa7184fc753306ba call \
lint --source DIR_PATH
func (m *myModule) example(source *Directory) *Container {
return dag.
Commitlint().
Lint(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.commitlint()
.lint(source)
)
@func()
example(source: Directory): Container {
return dag
.commitlint()
.lint(source)
}