git
No long description provided.
Installation
dagger install github.com/stuttgart-things/dagger/git@v0.37.0Entrypoint
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-imagefunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| repository | String ! | - | Repository in format "owner/repo" |
| ref | String | "main" | Ref/Branch to checkout - If not specified, defaults to "main" |
| title | String ! | - | No description provided |
| body | String ! | - | No description provided |
| label | String | - | No description provided |
| assignees | [String ! ] | - | No description provided |
| token | Secret ! | - | 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:MYSECRETfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| repository | String ! | - | No description provided |
| ref | String | "main" | Ref/Branch to checkout - If not specified, defaults to "main" |
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/git@d07684b2b8c6ae69f0c87ef48dc697a30804c7ae call \
clone-github --repository string --token env:MYSECRETfunc (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)
}