Dagger
Search

DagCoco

No long description provided.

Installation

dagger install github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f

Entrypoint

Return Type
DagCoco
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
func (m *MyModule) Example() *dagger.DagCoco  {
	return dag.
			DagCoco()
}
@function
def example() -> dagger.DagCoco:
	return (
		dag.dag_coco()
	)
@func()
example(): DagCoco {
	return dag
		.dagCoco()
}

Types

DagCoco 🔗

gitBase() 🔗

Initializing Git

Return Type
Container !
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 git-base
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			DagCoco().
			GitBase()
}
@function
def example() -> dagger.Container:
	return (
		dag.dag_coco()
		.git_base()
	)
@func()
example(): Container {
	return dag
		.dagCoco()
		.gitBase()
}

cloneRepository() 🔗

Returns a container with teh cloned repository in /repository

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
userString !-No description provided
repositoryUrlString !-No description provided
gitTokenSecret !-No description provided
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 clone-repository --user string --repository-url string --git-token env:MYSECRET
func (m *MyModule) Example(user string, repositoryUrl string, gitToken *dagger.Secret) *dagger.Container  {
	return dag.
			DagCoco().
			CloneRepository(user, repositoryUrl, gitToken)
}
@function
def example(user: str, repository_url: str, git_token: dagger.Secret) -> dagger.Container:
	return (
		dag.dag_coco()
		.clone_repository(user, repository_url, git_token)
	)
@func()
example(user: string, repositoryUrl: string, gitToken: Secret): Container {
	return dag
		.dagCoco()
		.cloneRepository(user, repositoryUrl, gitToken)
}

base() 🔗

Base Function returning a rust latest container with cocogitto installed

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repository url

userString !-

user account name

gitTokenSecret !-

user account git token

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 base --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(repositoryUrl string, user string, gitToken *dagger.Secret) *dagger.Container  {
	return dag.
			DagCoco().
			Base(repositoryUrl, user, gitToken)
}
@function
def example(repository_url: str, user: str, git_token: dagger.Secret) -> dagger.Container:
	return (
		dag.dag_coco()
		.base(repository_url, user, git_token)
	)
@func()
example(repositoryUrl: string, user: string, gitToken: Secret): Container {
	return dag
		.dagCoco()
		.base(repositoryUrl, user, gitToken)
}

bump() 🔗

Bump version https://docs.cocogitto.io/guide/bump.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repository URL

userString !-

remote username

gitTokenSecret !-

secret Git token

autoBoolean -

auto bump version

cogTomlFile -

cogToml file reference

dryRunBoolean -

should run dry

majorBoolean -

increment major

minorBoolean -

increment minor

patchBoolean -

increment patch

preMetaString -

metadata before building

buildMetaString -

build metadata

versionString -

set specfic version (prio over major,minor,patch)

skipCiBoolean -

Skip ci flag

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 bump --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			Bump(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.bump(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.bump(repositoryUrl, user, gitToken)
}

changelog() 🔗

Generate a changelog automatically https://docs.cocogitto.io/guide/changelog.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repo address

userString !-

remote user account

gitTokenSecret !-

secret git token

versionString !-No description provided
atString -

changelog between 1.00 and at

templateString -

changelog template: default, full_hash, remote

remoteString -

remote domain: e.g. google.com

ownerString -

user account / organization

repositoryString -

repository name

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 changelog --repository-url string --user string --git-token env:MYSECRET --version string
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret, version string) string  {
	return dag.
			DagCoco().
			Changelog(ctx, repositoryUrl, user, gitToken, version)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret, version: str) -> str:
	return await (
		dag.dag_coco()
		.changelog(repository_url, user, git_token, version)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret, version: string): Promise<string> {
	return dag
		.dagCoco()
		.changelog(repositoryUrl, user, gitToken, version)
}

check() 🔗

Check commit history against conventional commits spec https://docs.cocogitto.io/guide/check.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repository url

userString !-

user account

gitTokenSecret !-

remote git token secret

cogTomlFile -No description provided
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 check --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			Check(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.check(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.check(repositoryUrl, user, gitToken)
}

commit() 🔗

Create a new conventional commit using coco https://docs.cocogitto.io/guide/commit.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repo url

userString !-

user account

gitTokenSecret !-

repository secret token

cogTomlFile -

Cocogitto config file

commitTypeString -

tyoe of commit

commitMessageString -

commit message

breakingChangeBoolean -

is it a breaking change

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 commit --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			Commit(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.commit(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.commit(repositoryUrl, user, gitToken)
}

getVersion() 🔗

Get the current version https://docs.cocogitto.io/guide/misc.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repo URL

userString !-

username

gitTokenSecret !-

secret git token

fallbackString -

fallback version

packString -

define package name

silenceBoolean -

Only get version

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 get-version --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			GetVersion(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.get_version(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.getVersion(repositoryUrl, user, gitToken)
}

installHooks() 🔗

Install a single or all hooks https://docs.cocogitto.io/guide/git_hooks.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

remote repo URL

userString !-

username

gitTokenSecret !-

git secret token

commitsString -

semver, commit, range commit xxx..xxy

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 install-hooks --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			InstallHooks(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.install_hooks(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.installHooks(repositoryUrl, user, gitToken)
}

log() 🔗

Get cocogitto log (like custom git log) https://docs.cocogitto.io/guide/log.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

repository remote address

userString !-

username

gitTokenSecret !-

git token

authors[String ! ] -

filter authors

commitTypeString -

define commit type: e.g. feat

scopeString -

scope of commit

noErrorBoolean -

no error enforce

breakingOnlyBoolean -

filter breaking changes only

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 log --repository-url string --user string --git-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret) string  {
	return dag.
			DagCoco().
			Log(ctx, repositoryUrl, user, gitToken)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret) -> str:
	return await (
		dag.dag_coco()
		.log(repository_url, user, git_token)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret): Promise<string> {
	return dag
		.dagCoco()
		.log(repositoryUrl, user, gitToken)
}

verify() 🔗

Checks input string against conventional commits specification, error if not a conv commit https://docs.cocogitto.io/guide/verify.html

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryUrlString !-

repository url

userString !-

username

gitTokenSecret !-

git token secret

commitMsgString !-

message to check

Example
dagger -m github.com/stackitcloud/dagger-cocogitto@fb66bb7183b22a977d59925ca7b81b64e8319e3f call \
 verify --repository-url string --user string --git-token env:MYSECRET --commit-msg string
func (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, gitToken *dagger.Secret, commitMsg string) string  {
	return dag.
			DagCoco().
			Verify(ctx, repositoryUrl, user, gitToken, commitMsg)
}
@function
async def example(repository_url: str, user: str, git_token: dagger.Secret, commit_msg: str) -> str:
	return await (
		dag.dag_coco()
		.verify(repository_url, user, git_token, commit_msg)
	)
@func()
async example(repositoryUrl: string, user: string, gitToken: Secret, commitMsg: string): Promise<string> {
	return dag
		.dagCoco()
		.verify(repositoryUrl, user, gitToken, commitMsg)
}