github
Get details of GitHub releases and associated assets.
Installation
dagger install github.com/jedevc/daggerverse/github@v1.0.0Entrypoint
Return Type
Github Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 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 🔗
getLatestRelease() 🔗
Get the latest release for a repository
Return Type
Release !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | - | GitHub repository in the form of "owner/repo" |
Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-latest-release --repo stringfunc (m *MyModule) Example(repo string) *dagger.GithubRelease {
return dag.
Github().
GetLatestRelease(repo)
}@function
def example(repo: str) -> dagger.GithubRelease:
return (
dag.github()
.get_latest_release(repo)
)@func()
example(repo: string): GithubRelease {
return dag
.github()
.getLatestRelease(repo)
}getRelease() 🔗
Get the specified release for a repository
Return Type
Release !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | - | GitHub repository in the form of "owner/repo" |
| tag | String ! | - | Tag name of the release |
Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag stringfunc (m *MyModule) Example(repo string, tag string) *dagger.GithubRelease {
return dag.
Github().
GetRelease(repo, tag)
}@function
def example(repo: str, tag: str) -> dagger.GithubRelease:
return (
dag.github()
.get_release(repo, tag)
)@func()
example(repo: string, tag: string): GithubRelease {
return dag
.github()
.getRelease(repo, tag)
}Release 🔗
A GitHub release
repository() 🔗
Git repository that the release is from
Return Type
GitRepository ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
repositoryfunc (m *MyModule) Example(repo string, tag string) *dagger.GitRepository {
return dag.
Github().
GetRelease(repo, tag).
Repository()
}@function
def example(repo: str, tag: str) -> dagger.GitRepository:
return (
dag.github()
.get_release(repo, tag)
.repository()
)@func()
example(repo: string, tag: string): GitRepository {
return dag
.github()
.getRelease(repo, tag)
.repository()
}name() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
namefunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
Name(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.name()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.name()
}tag() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
tagfunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
Tag(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.tag()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.tag()
}body() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
bodyfunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
Body(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.body()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.body()
}url() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
urlfunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
Url(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.url()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.url()
}createdAt() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
created-atfunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
CreatedAt(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.created_at()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.createdAt()
}publishedAt() 🔗
Return Type
String ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
published-atfunc (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
Github().
GetRelease(repo, tag).
PublishedAt(ctx)
}@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github()
.get_release(repo, tag)
.published_at()
)@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.github()
.getRelease(repo, tag)
.publishedAt()
}assets() 🔗
Return Type
[Asset ! ] ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
assetsfunc (m *MyModule) Example(repo string, tag string) []*dagger.GithubAsset {
return dag.
Github().
GetRelease(repo, tag).
Assets()
}@function
def example(repo: str, tag: str) -> List[dagger.GithubAsset]:
return (
dag.github()
.get_release(repo, tag)
.assets()
)@func()
example(repo: string, tag: string): GithubAsset[] {
return dag
.github()
.getRelease(repo, tag)
.assets()
}ref() 🔗
Git reference pointed to by the release tag
Return Type
GitRef ! Example
dagger -m github.com/jedevc/daggerverse/github@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
get-release --repo string --tag string \
reffunc (m *MyModule) Example(repo string, tag string) *dagger.GitRef {
return dag.
Github().
GetRelease(repo, tag).
Ref()
}@function
def example(repo: str, tag: str) -> dagger.GitRef:
return (
dag.github()
.get_release(repo, tag)
.ref()
)@func()
example(repo: string, tag: string): GitRef {
return dag
.github()
.getRelease(repo, tag)
.ref()
}Asset 🔗
name() 🔗
Return Type
String ! Example
Function GithubAsset.name is not accessible from the github moduleFunction GithubAsset.name is not accessible from the github moduleFunction GithubAsset.name is not accessible from the github moduleFunction GithubAsset.name is not accessible from the github modulelabel() 🔗
Return Type
String ! Example
Function GithubAsset.label is not accessible from the github moduleFunction GithubAsset.label is not accessible from the github moduleFunction GithubAsset.label is not accessible from the github moduleFunction GithubAsset.label is not accessible from the github modulecontentType() 🔗
Return Type
String ! Example
Function GithubAsset.contentType is not accessible from the github moduleFunction GithubAsset.contentType is not accessible from the github moduleFunction GithubAsset.contentType is not accessible from the github moduleFunction GithubAsset.contentType is not accessible from the github modulesize() 🔗
Return Type
Integer ! Example
Function GithubAsset.size is not accessible from the github moduleFunction GithubAsset.size is not accessible from the github moduleFunction GithubAsset.size is not accessible from the github moduleFunction GithubAsset.size is not accessible from the github moduleurl() 🔗
Return Type
String ! Example
Function GithubAsset.url is not accessible from the github moduleFunction GithubAsset.url is not accessible from the github moduleFunction GithubAsset.url is not accessible from the github moduleFunction GithubAsset.url is not accessible from the github moduledownloadUrl() 🔗
Return Type
String ! Example
Function GithubAsset.downloadUrl is not accessible from the github moduleFunction GithubAsset.downloadUrl is not accessible from the github moduleFunction GithubAsset.downloadUrl is not accessible from the github moduleFunction GithubAsset.downloadUrl is not accessible from the github modulecreatedAt() 🔗
Return Type
String ! Example
Function GithubAsset.createdAt is not accessible from the github moduleFunction GithubAsset.createdAt is not accessible from the github moduleFunction GithubAsset.createdAt is not accessible from the github moduleFunction GithubAsset.createdAt is not accessible from the github moduleupdatedAt() 🔗
Return Type
String ! Example
Function GithubAsset.updatedAt is not accessible from the github moduleFunction GithubAsset.updatedAt is not accessible from the github moduleFunction GithubAsset.updatedAt is not accessible from the github moduleFunction GithubAsset.updatedAt is not accessible from the github module