Dagger
Search

github

Get details of GitHub releases and associated assets.

Installation

dagger install github.com/jedevc/daggerverse/github@v1.0.0

Entrypoint

Return Type
Github
Example
func (m *myModule) example() *Github  {
	return dag.
			Github()
}
@function
def example() -> dag.Github:
	return (
		dag.github()
	)
@func()
example(): Github {
	return dag
		.github()
}

Types

Github 🔗

getLatestRelease() 🔗

Get the latest release for a repository

Return Type
Release !
Arguments
NameTypeDefault ValueDescription
repoString !-No description provided
Example
Function Github.getLatestRelease is not accessible from the github module
func (m *myModule) example(repo string) *GithubRelease  {
	return dag.
			Github().
			GetLatestRelease(repo)
}
@function
def example(repo: str) -> dag.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
NameTypeDefault ValueDescription
repoString !-No description provided
tagString !-No description provided
Example
Function Github.getRelease is not accessible from the github module
func (m *myModule) example(repo string, tag string) *GithubRelease  {
	return dag.
			Github().
			GetRelease(repo, tag)
}
@function
def example(repo: str, tag: str) -> dag.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
Function GithubRelease.repository is not accessible from the github module
func (m *myModule) example(repo string, tag string) *GitRepository  {
	return dag.
			Github().
			GetRelease(repo, tag).
			Repository()
}
@function
def example(repo: str, tag: str) -> dag.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 \
 name
func (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 \
 tag
func (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 \
 body
func (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 \
 url
func (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-at
func (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-at
func (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
Function GithubRelease.assets is not accessible from the github module
func (m *myModule) example(repo string, tag string) []*GithubAsset  {
	return dag.
			Github().
			GetRelease(repo, tag).
			Assets()
}
@function
def example(repo: str, tag: str) -> List[dag.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
Function GithubRelease.ref is not accessible from the github module
func (m *myModule) example(repo string, tag string) *GitRef  {
	return dag.
			Github().
			GetRelease(repo, tag).
			Ref()
}
@function
def example(repo: str, tag: str) -> dag.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 module
Function GithubAsset.name is not accessible from the github module
Function GithubAsset.name is not accessible from the github module
Function GithubAsset.name is not accessible from the github module

label() 🔗

Return Type
String !
Example
Function GithubAsset.label is not accessible from the github module
Function GithubAsset.label is not accessible from the github module
Function GithubAsset.label is not accessible from the github module
Function GithubAsset.label is not accessible from the github module

contentType() 🔗

Return Type
String !
Example
Function GithubAsset.contentType is not accessible from the github module
Function GithubAsset.contentType is not accessible from the github module
Function GithubAsset.contentType is not accessible from the github module
Function GithubAsset.contentType is not accessible from the github module

size() 🔗

Return Type
Integer !
Example
Function GithubAsset.size is not accessible from the github module
Function GithubAsset.size is not accessible from the github module
Function GithubAsset.size is not accessible from the github module
Function GithubAsset.size is not accessible from the github module

url() 🔗

Return Type
String !
Example
Function GithubAsset.url is not accessible from the github module
Function GithubAsset.url is not accessible from the github module
Function GithubAsset.url is not accessible from the github module
Function GithubAsset.url is not accessible from the github module

downloadUrl() 🔗

Return Type
String !
Example
Function GithubAsset.downloadUrl is not accessible from the github module
Function GithubAsset.downloadUrl is not accessible from the github module
Function GithubAsset.downloadUrl is not accessible from the github module
Function GithubAsset.downloadUrl is not accessible from the github module

createdAt() 🔗

Return Type
String !
Example
Function GithubAsset.createdAt is not accessible from the github module
Function GithubAsset.createdAt is not accessible from the github module
Function GithubAsset.createdAt is not accessible from the github module
Function GithubAsset.createdAt is not accessible from the github module

updatedAt() 🔗

Return Type
String !
Example
Function GithubAsset.updatedAt is not accessible from the github module
Function GithubAsset.updatedAt is not accessible from the github module
Function GithubAsset.updatedAt is not accessible from the github module
Function GithubAsset.updatedAt is not accessible from the github module