Dagger
Search

git-cliff

This module uses a git reference as a source directory to scan for changes
and create a changelog or bump a version. A cliff.toml can be used for additional
customization if found in the working directory where GitCliff is being ran.

Installation

dagger install github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55

Entrypoint

Return Type
GitCliff !
Arguments
NameTypeDefault ValueDescription
gitRefGitRef !-Git repository source.
gitCliffVersionString "latest"Version of git-cliff image.
workingDirString -No description provided
githubTokenSecret -private token to use when authenticating with a private github instance set in cliff.toml See: https://git-cliff.org/docs/integration/github
gitlabTokenSecret -private token to use when authenticating with a private gitlab instance set in cliff.toml See: https://git-cliff.org/docs/integration/gitlab
giteaTokenSecret -private token to use when authenticating with a private gitea instance set in cliff.toml See: https://git-cliff.org/docs/integration/gitea
Example
dagger -m github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55 call \
func (m *MyModule) Example(gitRef *dagger.GitRef) *dagger.GitCliff  {
	return dag.
			GitCliff(gitRef)
}
@function
def example(git_ref: dagger.GitRef, ) -> dagger.GitCliff:
	return (
		dag.git_cliff(git_ref)
	)
@func()
example(gitRef: GitRef, ): GitCliff {
	return dag
		.gitCliff(gitRef)
}

Types

GitCliff 🔗

container() 🔗

Returns a git-cliff container with optionally mounted secret variables for private gitlab, github, or gitea tokens

Return Type
Container !
Example
dagger -m github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55 call \
 container
func (m *MyModule) Example(gitRef *dagger.GitRef) *dagger.Container  {
	return dag.
			GitCliff(gitRef).
			Container()
}
@function
def example(git_ref: dagger.GitRef, ) -> dagger.Container:
	return (
		dag.git_cliff(git_ref)
		.container()
	)
@func()
example(gitRef: GitRef, ): Container {
	return dag
		.gitCliff(gitRef)
		.container()
}

changelog() 🔗

generate a changelog file with unreleased changes and bumps the tag if tag is not provided If file already exists, it will prepend to the existing changelog instead of creating a new one.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
changelogString "CHANGELOG.md"file path to output or prepend generated changelog.
tagString -tag to generate changelog for
Example
dagger -m github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55 call \
 changelog
func (m *MyModule) Example(gitRef *dagger.GitRef) *dagger.File  {
	return dag.
			GitCliff(gitRef).
			Changelog()
}
@function
def example(git_ref: dagger.GitRef, ) -> dagger.File:
	return (
		dag.git_cliff(git_ref)
		.changelog()
	)
@func()
example(gitRef: GitRef, ): File {
	return dag
		.gitCliff(gitRef)
		.changelog()
}

releaseNotes() 🔗

generate release notes file with unreleased changes and bumps the tag if tag is not provided

Return Type
File !
Arguments
NameTypeDefault ValueDescription
notesString "releasenotes.md"file path to output release notes.
tagString -tag to generate changelog for
extraNotesString -append additional provided release notes
Example
dagger -m github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55 call \
 release-notes
func (m *MyModule) Example(gitRef *dagger.GitRef) *dagger.File  {
	return dag.
			GitCliff(gitRef).
			ReleaseNotes()
}
@function
def example(git_ref: dagger.GitRef, ) -> dagger.File:
	return (
		dag.git_cliff(git_ref)
		.release_notes()
	)
@func()
example(gitRef: GitRef, ): File {
	return dag
		.gitCliff(gitRef)
		.releaseNotes()
}

bumpedVersion() 🔗

Prints a bumped tag for unreleased changes.

Return Type
String !
Example
dagger -m github.com/act3-ai/dagger/git-cliff@484bed8dba92492e2c9e137495bf610b76709e55 call \
 bumped-version
func (m *MyModule) Example(ctx context.Context, gitRef *dagger.GitRef) string  {
	return dag.
			GitCliff(gitRef).
			BumpedVersion(ctx)
}
@function
async def example(git_ref: dagger.GitRef, ) -> str:
	return await (
		dag.git_cliff(git_ref)
		.bumped_version()
	)
@func()
async example(gitRef: GitRef, ): Promise<string> {
	return dag
		.gitCliff(gitRef)
		.bumpedVersion()
}