DagCoco
No long description provided.
Installation
dagger install github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752fTypes
DagCoco 🔗
gitBase() 🔗
Initializing Git
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| user | String ! | - | git config user |
| String ! | - | git config email |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
git-base --user string --email stringfunc (m *MyModule) Example(user string, email string) *dagger.Container {
return dag.
Dagcoco().
Gitbase(user, email)
}@function
def example(user: str, email: str) -> dagger.Container:
return (
dag.dag_coco()
.gitbase(user, email)
)@func()
example(user: string, email: string): Container {
return dag
.dagCoco()
.gitBase(user, email)
}cloneRepository() 🔗
Returns a container with the cloned repository in /repository
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| user | String ! | - | git user interacting with the repo |
| String ! | - | git user email | |
| repositoryUrl | String ! | - | repository url |
| gitToken | Secret ! | - | secret git token |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
clone-repository --user string --email string --repository-url string --git-token env:MYSECRETfunc (m *MyModule) Example(user string, email string, repositoryUrl string, gitToken *dagger.Secret) *dagger.Container {
return dag.
Dagcoco().
Clonerepository(user, email, repositoryUrl, gitToken)
}@function
def example(user: str, email: str, repositoryurl: str, gittoken: dagger.Secret) -> dagger.Container:
return (
dag.dag_coco()
.clonerepository(user, email, repositoryurl, gittoken)
)@func()
example(user: string, email: string, repositoryUrl: string, gitToken: Secret): Container {
return dag
.dagCoco()
.cloneRepository(user, email, repositoryUrl, gitToken)
}base() 🔗
Base Function returning a rust latest container with cocogitto installed
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repository url |
| user | String ! | - | user account name |
| String ! | - | git email | |
| gitToken | Secret ! | - | user account git token |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
base --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(repositoryUrl string, user string, email string, gitToken *dagger.Secret) *dagger.Container {
return dag.
Dagcoco().
Base(repositoryUrl, user, email, gitToken)
}@function
def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> dagger.Container:
return (
dag.dag_coco()
.base(repositoryurl, user, email, gittoken)
)@func()
example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Container {
return dag
.dagCoco()
.base(repositoryUrl, user, email, gitToken)
}bump() 🔗
Bump version https://docs.cocogitto.io/guide/bump.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repository URL |
| user | String ! | - | remote username |
| String ! | - | remote email | |
| gitToken | Secret ! | - | secret Git token |
| auto | Boolean | - | auto bump version |
| cogToml | File | - | cogToml file reference |
| dryRun | Boolean | - | should run dry |
| major | Boolean | - | increment major |
| minor | Boolean | - | increment minor |
| patch | Boolean | - | increment patch |
| preMeta | String | - | metadata before building |
| buildMeta | String | - | build metadata |
| version | String | - | set specfic version (prio over major,minor,patch) |
| skipCi | Boolean | - | Skip ci flag |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
bump --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Bump(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.bump(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.bump(repositoryUrl, user, email, gitToken)
}changelog() 🔗
Generate a changelog automatically https://docs.cocogitto.io/guide/changelog.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repo address |
| user | String ! | - | remote user account |
| String ! | - | remote email account | |
| gitToken | Secret ! | - | secret git token |
| version | String ! | - | No description provided |
| at | String | - | changelog between 1.00 and at |
| template | String | - | changelog template: default, full_hash, remote |
| remote | String | - | remote domain: e.g. google.com |
| owner | String | - | user account / organization |
| repository | String | - | repository name |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
changelog --repository-url string --user string --email string --git-token env:MYSECRET --version stringfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret, version string) string {
return dag.
Dagcoco().
Changelog(ctx, repositoryUrl, user, email, gitToken, version)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret, version: str) -> str:
return await (
dag.dag_coco()
.changelog(repositoryurl, user, email, gittoken, version)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret, version: string): Promise<string> {
return dag
.dagCoco()
.changelog(repositoryUrl, user, email, gitToken, version)
}check() 🔗
Check commit history against conventional commits spec https://docs.cocogitto.io/guide/check.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repository url |
| user | String ! | - | user account |
| String ! | - | git email | |
| gitToken | Secret ! | - | remote git token secret |
| cogToml | File | - | No description provided |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
check --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Check(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.check(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.check(repositoryUrl, user, email, gitToken)
}commit() 🔗
Create a new conventional commit using coco https://docs.cocogitto.io/guide/commit.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repo url |
| user | String ! | - | user account |
| String ! | - | git email | |
| gitToken | Secret ! | - | repository secret token |
| cogToml | File | - | Cocogitto config file |
| commitType | String | - | tyoe of commit |
| commitMessage | String | - | commit message |
| breakingChange | Boolean | - | is it a breaking change |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
commit --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Commit(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.commit(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.commit(repositoryUrl, user, email, gitToken)
}getVersion() 🔗
Get the current version https://docs.cocogitto.io/guide/misc.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repo URL |
| user | String ! | - | username |
| String ! | - | git email | |
| gitToken | Secret ! | - | secret git token |
| fallback | String | - | fallback version |
| pack | String | - | define package name |
| silence | Boolean | - | Only get version |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
get-version --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Getversion(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.getversion(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.getVersion(repositoryUrl, user, email, gitToken)
}installHooks() 🔗
Install a single or all hooks https://docs.cocogitto.io/guide/git_hooks.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | remote repo URL |
| user | String ! | - | username |
| String ! | - | git email | |
| gitToken | Secret ! | - | git secret token |
| commits | String | - | semver, commit, range commit xxx..xxy |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
install-hooks --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Installhooks(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.installhooks(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.installHooks(repositoryUrl, user, email, gitToken)
}log() 🔗
Get cocogitto log (like custom git log) https://docs.cocogitto.io/guide/log.html
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | repository remote address |
| user | String ! | - | username |
| String ! | - | git email | |
| gitToken | Secret ! | - | git token |
| authors | [String ! ] | - | filter authors |
| commitType | String | - | define commit type: e.g. feat |
| scope | String | - | scope of commit |
| noError | Boolean | - | no error enforce |
| breakingOnly | Boolean | - | filter breaking changes only |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
log --repository-url string --user string --email string --git-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret) string {
return dag.
Dagcoco().
Log(ctx, repositoryUrl, user, email, gitToken)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret) -> str:
return await (
dag.dag_coco()
.log(repositoryurl, user, email, gittoken)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret): Promise<string> {
return dag
.dagCoco()
.log(repositoryUrl, user, email, 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
| Name | Type | Default Value | Description |
|---|---|---|---|
| repositoryUrl | String ! | - | repository url |
| user | String ! | - | username |
| String ! | - | git email | |
| gitToken | Secret ! | - | git token secret |
| commitMsg | String ! | - | message to check |
Example
dagger -m github.com/stackitcloud/dagger-cocogitto@87082ddf7f33a3acf1f6094e802474b6649e752f call \
verify --repository-url string --user string --email string --git-token env:MYSECRET --commit-msg stringfunc (m *MyModule) Example(ctx context.Context, repositoryUrl string, user string, email string, gitToken *dagger.Secret, commitMsg string) string {
return dag.
Dagcoco().
Verify(ctx, repositoryUrl, user, email, gitToken, commitMsg)
}@function
async def example(repositoryurl: str, user: str, email: str, gittoken: dagger.Secret, commitmsg: str) -> str:
return await (
dag.dag_coco()
.verify(repositoryurl, user, email, gittoken, commitmsg)
)@func()
async example(repositoryUrl: string, user: string, email: string, gitToken: Secret, commitMsg: string): Promise<string> {
return dag
.dagCoco()
.verify(repositoryUrl, user, email, gitToken, commitMsg)
}