gh
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3Entrypoint
Return Type
Gh Example
dagger -m github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3 call \
func (m *MyModule) Example() *dagger.Gh {
return dag.
Gh()
}@function
def example() -> dagger.Gh:
return (
dag.gh()
)@func()
example(): Gh {
return dag
.gh()
}Types
Gh 🔗
release() 🔗
Manage releases.
Return Type
Release ! Example
dagger -m github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3 call \
releasefunc (m *MyModule) Example() {
return dag.
Gh().
Release()
}@function
def example() -> :
return (
dag.gh()
.release()
)@func()
example(): {
return dag
.gh()
.release()
}run() 🔗
Run a GitHub CLI command (accepts a single command string without “gh”).
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| cmd | StringKind ! | - | No description provided |
| token | Secret | - | No description provided |
| repo | StringKind | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3 call \
runfunc (m *MyModule) Example(cmd ) {
return dag.
Gh().
Run(cmd)
}@function
def example(cmd: ) -> :
return (
dag.gh()
.run(cmd)
)@func()
example(cmd: ): {
return dag
.gh()
.run(cmd)
}exec() 🔗
Run a GitHub CLI command (accepts a list of arguments without “gh”).
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided |
| token | Secret | - | No description provided |
| repo | StringKind | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3 call \
execfunc (m *MyModule) Example(args ) {
return dag.
Gh().
Exec(args)
}@function
def example(args: ) -> :
return (
dag.gh()
.exec(args)
)@func()
example(args: ): {
return dag
.gh()
.exec(args)
}get() 🔗
Get the GitHub CLI binary.
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | StringKind | - | No description provided |
| token | Secret | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/gh@ef6b5bf932277ffc4b7e1ea9fd9a1c26a2780da3 call \
getfunc (m *MyModule) Example() {
return dag.
Gh().
Get()
}@function
def example() -> :
return (
dag.gh()
.get()
)@func()
example(): {
return dag
.gh()
.get()
}Release 🔗
create() 🔗
Create a new GitHub Release for a repository.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| tag | StringKind ! | - | No description provided |
| title | StringKind ! | - | No description provided |
| files | [ObjectKind ! ] | - | No description provided |
| draft | BooleanKind | - | No description provided |
| preRelease | BooleanKind | - | No description provided |
| target | StringKind | - | No description provided |
| notes | StringKind | - | No description provided |
| notesFile | File | - | No description provided |
| discussionCategory | StringKind | - | No description provided |
| generateNotes | BooleanKind | - | No description provided |
| notesStartTag | StringKind | - | No description provided |
| latest | BooleanKind | - | No description provided |
| verifyTag | BooleanKind | - | No description provided |
| notesFromTag | BooleanKind | - | No description provided |
| token | Secret | - | No description provided |
| repo | StringKind | - | No description provided |
Example
Function GhRelease.create is not accessible from the gh moduleFunction GhRelease.create is not accessible from the gh moduleFunction GhRelease.create is not accessible from the gh moduleFunction GhRelease.create is not accessible from the gh module