github
No long description provided.
Installation
dagger install github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79Entrypoint
Return Type
Github Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
func (m *MyModule) Example() *dagger.Github {
return dag.
Github()
}@function
def example() -> dagger.Github:
return (
dag.github()
)@func()
example(): Github {
return dag
.github()
}Types
Github 🔗
token() 🔗
Return Type
String ! Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
tokenfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Github().
Token(ctx)
}@function
async def example() -> str:
return await (
dag.github()
.token()
)@func()
async example(): Promise<string> {
return dag
.github()
.token()
}withToken() 🔗
WithToken sets the GithHub token for any opeations that require it
Return Type
Github !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | String ! | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
with-token --token stringfunc (m *MyModule) Example(token string) *dagger.Github {
return dag.
Github().
WithToken(token)
}@function
def example(token: str) -> dagger.Github:
return (
dag.github()
.with_token(token)
)@func()
example(token: string): Github {
return dag
.github()
.withToken(token)
}createRelease() 🔗
TagRepository creates a tag for a repository with the given commit sha and an optional list of files note: only the top level files in the directory will be uploaded, this function does not support subdirectories
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| owner | String ! | - | No description provided |
| repo | String ! | - | No description provided |
| tag | String ! | - | No description provided |
| sha | String ! | - | No description provided |
| files | Directory | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
create-release --owner string --repo string --tag string --sha stringfunc (m *MyModule) Example(ctx context.Context, owner string, repo string, tag string, sha string) {
return dag.
Github().
CreateRelease(ctx, owner, repo, tag, sha)
}@function
async def example(owner: str, repo: str, tag: str, sha: str) -> None:
return await (
dag.github()
.create_release(owner, repo, tag, sha)
)@func()
async example(owner: string, repo: string, tag: string, sha: string): Promise<void> {
return dag
.github()
.createRelease(owner, repo, tag, sha)
}nextVersionFromAssociatedPrlabel() 🔗
NextVersionFromAssociatedPRLabel returns a the next semantic version based on the presence of a PR label for the given commit SHA. If there are multiple PRs associated with the commit, the highest label from any matching PR will be used
i.e. if the SHA has an associated PR with a label of major and the current tag is 1.1.2 the next version will be 2.0.0
if the PR has a tag of minor and the current tag is 1.1.2 the next version will be 1.2.0
if the PR has a tag of patch and the current tag is 1.1.2 the next version will be 1.1.3
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| owner | String ! | - | No description provided |
| repo | String ! | - | No description provided |
| sha | String ! | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
next-version-from-associated-prlabel --owner string --repo string --sha stringfunc (m *MyModule) Example(ctx context.Context, owner string, repo string, sha string) string {
return dag.
Github().
NextVersionFromAssociatedPrlabel(ctx, owner, repo, sha)
}@function
async def example(owner: str, repo: str, sha: str) -> str:
return await (
dag.github()
.next_version_from_associated_prlabel(owner, repo, sha)
)@func()
async example(owner: string, repo: string, sha: string): Promise<string> {
return dag
.github()
.nextVersionFromAssociatedPrlabel(owner, repo, sha)
}ftestCreateRelease() 🔗
example: dagger call ftest-create-release –token=GITHUB_TOKEN –files=./testfiles
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | No description provided |
| files | Directory | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
ftest-create-release --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, token *dagger.Secret) {
return dag.
Github().
FtestCreateRelease(ctx, token)
}@function
async def example(token: dagger.Secret) -> None:
return await (
dag.github()
.ftest_create_release(token)
)@func()
async example(token: Secret): Promise<void> {
return dag
.github()
.ftestCreateRelease(token)
}ftestBumpVersionWithPrtag() 🔗
example: dagger call ftest-bump-version-with-prtag –token=GITHUB_TOKEN
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/jumppad-labs/daggerverse/github@862ddf584a73ef19dc14e3bedbfae56cb90b4e79 call \
ftest-bump-version-with-prtag --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, token *dagger.Secret) string {
return dag.
Github().
FtestBumpVersionWithPrtag(ctx, token)
}@function
async def example(token: dagger.Secret) -> str:
return await (
dag.github()
.ftest_bump_version_with_prtag(token)
)@func()
async example(token: Secret): Promise<string> {
return dag
.github()
.ftestBumpVersionWithPrtag(token)
}