Dagger
Search

git

No long description provided.

Installation

dagger install github.com/stuttgart-things/dagger/git@v0.37.0

Entrypoint

Return Type
Git
Example
dagger -m github.com/stuttgart-things/dagger/git@d07684b2b8c6ae69f0c87ef48dc697a30804c7ae call \
func (m *MyModule) Example() *dagger.Git  {
	return dag.
			Git()
}
@function
def example() -> dagger.Git:
	return (
		dag.git()
	)
@func()
example(): Git {
	return dag
		.git()
}

Types

Git 🔗

baseImage() 🔗

Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/git@d07684b2b8c6ae69f0c87ef48dc697a30804c7ae call \
 base-image
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Git().
			BaseImage(ctx)
}
@function
async def example() -> str:
	return await (
		dag.git()
		.base_image()
	)
@func()
async example(): Promise<string> {
	return dag
		.git()
		.baseImage()
}

createGithubIssue() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
repositoryString !-Repository in format "owner/repo"
refString "main"Ref/Branch to checkout - If not specified, defaults to "main"
titleString !-No description provided
bodyString !-No description provided
labelString -No description provided
assignees[String ! ] -No description provided
tokenSecret !-GitHub token for authentication
Example
dagger -m github.com/stuttgart-things/dagger/git@d07684b2b8c6ae69f0c87ef48dc697a30804c7ae call \
 create-github-issue --repository string --title string --body string --token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, repository string, title string, body string, token *dagger.Secret) string  {
	return dag.
			Git().
			CreateGithubIssue(ctx, repository, title, body, token)
}
@function
async def example(repository: str, title: str, body: str, token: dagger.Secret) -> str:
	return await (
		dag.git()
		.create_github_issue(repository, title, body, token)
	)
@func()
async example(repository: string, title: string, body: string, token: Secret): Promise<string> {
	return dag
		.git()
		.createGithubIssue(repository, title, body, token)
}

cloneGithub() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
repositoryString !-No description provided
refString "main"Ref/Branch to checkout - If not specified, defaults to "main"
tokenSecret !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/git@d07684b2b8c6ae69f0c87ef48dc697a30804c7ae call \
 clone-github --repository string --token env:MYSECRET
func (m *MyModule) Example(repository string, token *dagger.Secret) *dagger.Directory  {
	return dag.
			Git().
			CloneGithub(repository, token)
}
@function
def example(repository: str, token: dagger.Secret) -> dagger.Directory:
	return (
		dag.git()
		.clone_github(repository, token)
	)
@func()
example(repository: string, token: Secret): Directory {
	return dag
		.git()
		.cloneGithub(repository, token)
}