Dagger
Search

github-comment

No long description provided.

Installation

dagger install github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65

Entrypoint

Return Type
GithubComment !
Arguments
NameTypeDefault ValueDescription
githubTokenSecret !-Github API token
messageIdString "github.com/aluzzardi/daggerverse/github-comment"A stable identifier to enable editing the same comment in-place. The key is included in the comment message but invisible
repoString !-The github repository Supported formats: - github.com/dagger/dagger - dagger/dagger - https://github.com/dagger/dagger - https://github.com/dagger/dagger.git
issueInteger -Comment on the given github issue
commitString -Comment on the given commit
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
 --github-token env:MYSECRET --repo string
func (m *myModule) example(githubToken *Secret, repo string) *GithubComment  {
	return dag.
			GithubComment(githubToken, repo)
}
@function
def example(github_token: dagger.Secret, repo: str, ) -> dag.GithubComment:
	return (
		dag.github_comment(github_token, repo)
	)
@func()
example(githubToken: Secret, repo: string, ): GithubComment {
	return dag
		.githubComment(githubToken, repo)
}

Types

GithubComment 🔗

create() 🔗

Create or update the comment on github

Return Type
String !
Arguments
NameTypeDefault ValueDescription
bodyString !-No description provided
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
 --github-token env:MYSECRET --repo string create --body string
func (m *myModule) example(ctx context.Context, githubToken *Secret, repo string, body string) string  {
	return dag.
			GithubComment(githubToken, repo).
			Create(ctx, body)
}
@function
async def example(github_token: dagger.Secret, repo: str, body: str) -> str:
	return await (
		dag.github_comment(github_token, repo)
		.create(body)
	)
@func()
async example(githubToken: Secret, repo: string, body: string): Promise<string> {
	return dag
		.githubComment(githubToken, repo)
		.create(body)
}

delete() 🔗

Delete the comment on github

Return Type
Void !
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
 --github-token env:MYSECRET --repo string delete
func (m *myModule) example(ctx context.Context, githubToken *Secret, repo string)   {
	return dag.
			GithubComment(githubToken, repo).
			Delete(ctx)
}
@function
async def example(github_token: dagger.Secret, repo: str, ) -> None:
	return await (
		dag.github_comment(github_token, repo)
		.delete()
	)
@func()
async example(githubToken: Secret, repo: string, ): Promise<void> {
	return dag
		.githubComment(githubToken, repo)
		.delete()
}

react() 🔗

Add an emoji reaction to the comment

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
kindString !-The kind of reaction. Supported values: "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", or "eyes".
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
 --github-token env:MYSECRET --repo string react --kind string
func (m *myModule) example(ctx context.Context, githubToken *Secret, repo string, kind string)   {
	return dag.
			GithubComment(githubToken, repo).
			React(ctx, kind)
}
@function
async def example(github_token: dagger.Secret, repo: str, kind: str) -> None:
	return await (
		dag.github_comment(github_token, repo)
		.react(kind)
	)
@func()
async example(githubToken: Secret, repo: string, kind: string): Promise<void> {
	return dag
		.githubComment(githubToken, repo)
		.react(kind)
}