github-comment
No long description provided.
Installation
dagger install github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65Entrypoint
Return Type
GithubComment !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| githubToken | Secret ! | - | Github API token |
| messageId | String | "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 |
| repo | String ! | - | The github repository Supported formats: - github.com/dagger/dagger - dagger/dagger - https://github.com/dagger/dagger - https://github.com/dagger/dagger.git |
| issue | Integer | - | Comment on the given github issue |
| commit | String | - | Comment on the given commit |
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
--github-token env:MYSECRET --repo stringfunc (m *MyModule) Example(githubToken *dagger.Secret, repo string) *dagger.GithubComment {
return dag.
GithubComment(githubToken, repo)
}@function
def example(github_token: dagger.Secret, repo: str, ) -> dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| body | String ! | - | No description provided |
Example
dagger -m github.com/aluzzardi/daggerverse/github-comment@ee43f9e5f7203362a9d089d5b65e95f323e5dc65 call \
--github-token env:MYSECRET --repo string create --body stringfunc (m *MyModule) Example(ctx context.Context, githubToken *dagger.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 deletefunc (m *MyModule) Example(ctx context.Context, githubToken *dagger.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
| Name | Type | Default Value | Description |
|---|---|---|---|
| kind | String ! | - | 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 stringfunc (m *MyModule) Example(ctx context.Context, githubToken *dagger.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)
}