github-issue
A generated module for GithubIssue functions
Installation
dagger install github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa
Entrypoint
Return Type
GithubIssue !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | Secret | - | Github authentication token |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
func (m *myModule) example() *dagger.GithubIssue {
return dag.
GithubIssue()
}
@function
def example() -> dagger.GithubIssue:
return (
dag.github_issue()
)
@func()
example(): GithubIssue {
return dag
.githubIssue()
}
Types
GithubIssue 🔗
list() 🔗
List Github issues for a repository
Return Type
[GithubIssueData ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
page | Integer ! | 1 | Page of issues to read. There are 10 per page |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
list --repo string --page integer
func (m *myModule) example(repo string, page int) []*dagger.GithubIssueData {
return dag.
GithubIssue().
List(repo, page)
}
@function
def example(repo: str, page: int) -> List[dagger.GithubIssueData]:
return (
dag.github_issue()
.list(repo, page)
)
@func()
example(repo: string, page: number): GithubIssueData[] {
return dag
.githubIssue()
.list(repo, page)
}
listUnified() 🔗
List Github issues for a repository and return a readable output
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
page | Integer ! | 1 | Page of issues to read. There are 10 per page |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
list-unified --repo string --page integer
func (m *myModule) example(ctx context.Context, repo string, page int) string {
return dag.
GithubIssue().
ListUnified(ctx, repo, page)
}
@function
async def example(repo: str, page: int) -> str:
return await (
dag.github_issue()
.list_unified(repo, page)
)
@func()
async example(repo: string, page: number): Promise<string> {
return dag
.githubIssue()
.listUnified(repo, page)
}
read() 🔗
Read a Github issue from a repository
Return Type
GithubIssueData !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
issueId | Integer ! | - | Issue ID |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
read --repo string --issue-id integer
func (m *myModule) example(repo string, issueId int) *dagger.GithubIssueData {
return dag.
GithubIssue().
Read(repo, issueId)
}
@function
def example(repo: str, issue_id: int) -> dagger.GithubIssueData:
return (
dag.github_issue()
.read(repo, issue_id)
)
@func()
example(repo: string, issueId: number): GithubIssueData {
return dag
.githubIssue()
.read(repo, issueId)
}
write() 🔗
Create a github issue in a repository TODO: NOT YET IMPLEMENTED
Return Type
GithubIssueData !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
title | String ! | - | Issue title |
body | String ! | - | Issue body |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string
func (m *myModule) example(repo string, title string, body string) *dagger.GithubIssueData {
return dag.
GithubIssue().
Write(repo, title, body)
}
@function
def example(repo: str, title: str, body: str) -> dagger.GithubIssueData:
return (
dag.github_issue()
.write(repo, title, body)
)
@func()
example(repo: string, title: string, body: string): GithubIssueData {
return dag
.githubIssue()
.write(repo, title, body)
}
listComments() 🔗
List all of the comments on a Github issue or pull request
Return Type
[GithubIssueComment ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
issueId | Integer ! | - | Issue or Pull Request number |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
list-comments --repo string --issue-id integer
func (m *myModule) example(repo string, issueId int) []*dagger.GithubIssueComment {
return dag.
GithubIssue().
ListComments(repo, issueId)
}
@function
def example(repo: str, issue_id: int) -> List[dagger.GithubIssueComment]:
return (
dag.github_issue()
.list_comments(repo, issue_id)
)
@func()
example(repo: string, issueId: number): GithubIssueComment[] {
return dag
.githubIssue()
.listComments(repo, issueId)
}
listCommentsUnified() 🔗
List all of the comments on a Github issue or pull request and return a readable output
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
issueId | Integer ! | - | Issue or Pull Request number |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
list-comments-unified --repo string --issue-id integer
func (m *myModule) example(ctx context.Context, repo string, issueId int) string {
return dag.
GithubIssue().
ListCommentsUnified(ctx, repo, issueId)
}
@function
async def example(repo: str, issue_id: int) -> str:
return await (
dag.github_issue()
.list_comments_unified(repo, issue_id)
)
@func()
async example(repo: string, issueId: number): Promise<string> {
return dag
.githubIssue()
.listCommentsUnified(repo, issueId)
}
writeComment() 🔗
Write a comment on a Github issue
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
issueId | Integer ! | - | Issue or Pull Request number |
body | String ! | - | Comment body |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write-comment --repo string --issue-id integer --body string
func (m *myModule) example(ctx context.Context, repo string, issueId int, body string) {
return dag.
GithubIssue().
WriteComment(ctx, repo, issueId, body)
}
@function
async def example(repo: str, issue_id: int, body: str) -> None:
return await (
dag.github_issue()
.write_comment(repo, issue_id, body)
)
@func()
async example(repo: string, issueId: number, body: string): Promise<void> {
return dag
.githubIssue()
.writeComment(repo, issueId, body)
}
writePullRequestCodeComment() 🔗
Write a code suggestion on a Github pull request
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
issueId | Integer ! | - | Pull request number |
commit | String ! | - | Git commit sha |
body | String ! | - | Comment body, e.g. the suggestion |
path | String ! | - | File to suggest a change on |
side | String ! | - | Side of the diff to suggest a change on |
line | Integer ! | - | Line number to suggest a change on |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write-pull-request-code-comment --repo string --issue-id integer --commit string --body string --path string --side string --line integer
func (m *myModule) example(ctx context.Context, repo string, issueId int, commit string, body string, path string, side string, line int) {
return dag.
GithubIssue().
WritePullRequestCodeComment(ctx, repo, issueId, commit, body, path, side, line)
}
@function
async def example(repo: str, issue_id: int, commit: str, body: str, path: str, side: str, line: int) -> None:
return await (
dag.github_issue()
.write_pull_request_code_comment(repo, issue_id, commit, body, path, side, line)
)
@func()
async example(repo: string, issueId: number, commit: string, body: string, path: string, side: string, line: number): Promise<void> {
return dag
.githubIssue()
.writePullRequestCodeComment(repo, issueId, commit, body, path, side, line)
}
getPrForCommit() 🔗
Gets the pull request number for a commit
Return Type
Integer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repo, e.g https://github.com/owner/repo |
commit | String ! | - | Git commit sha |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
get-pr-for-commit --repo string --commit string
func (m *myModule) example(ctx context.Context, repo string, commit string) int {
return dag.
GithubIssue().
GetPrForCommit(ctx, repo, commit)
}
@function
async def example(repo: str, commit: str) -> int:
return await (
dag.github_issue()
.get_pr_for_commit(repo, commit)
)
@func()
async example(repo: string, commit: string): Promise<number> {
return dag
.githubIssue()
.getPrForCommit(repo, commit)
}
templates() 🔗
Retruns the github issue templates
Return Type
[GithubIssueTemplate ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | The name of the github repository in a owner/repo format |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
templates --repo string
func (m *myModule) example(repo string) []*dagger.GithubIssueTemplate {
return dag.
GithubIssue().
Templates(repo)
}
@function
def example(repo: str) -> List[dagger.GithubIssueTemplate]:
return (
dag.github_issue()
.templates(repo)
)
@func()
example(repo: string): GithubIssueTemplate[] {
return dag
.githubIssue()
.templates(repo)
}
templatesUnified() 🔗
Retruns the github issue templates in a readable output
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | The name of the github repository in a owner/repo format |
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
templates-unified --repo string
func (m *myModule) example(ctx context.Context, repo string) string {
return dag.
GithubIssue().
TemplatesUnified(ctx, repo)
}
@function
async def example(repo: str) -> str:
return await (
dag.github_issue()
.templates_unified(repo)
)
@func()
async example(repo: string): Promise<string> {
return dag
.githubIssue()
.templatesUnified(repo)
}
GithubIssueData 🔗
issueNumber() 🔗
Return Type
Integer !
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string \
issue-number
func (m *myModule) example(ctx context.Context, repo string, title string, body string) int {
return dag.
GithubIssue().
Write(repo, title, body).
IssueNumber(ctx)
}
@function
async def example(repo: str, title: str, body: str) -> int:
return await (
dag.github_issue()
.write(repo, title, body)
.issue_number()
)
@func()
async example(repo: string, title: string, body: string): Promise<number> {
return dag
.githubIssue()
.write(repo, title, body)
.issueNumber()
}
title() 🔗
Issue title
Return Type
String !
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string \
title
func (m *myModule) example(ctx context.Context, repo string, title string, body string) string {
return dag.
GithubIssue().
Write(repo, title, body).
Title(ctx)
}
@function
async def example(repo: str, title: str, body: str) -> str:
return await (
dag.github_issue()
.write(repo, title, body)
.title()
)
@func()
async example(repo: string, title: string, body: string): Promise<string> {
return dag
.githubIssue()
.write(repo, title, body)
.title()
}
body() 🔗
Issue body content
Return Type
String !
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string \
body
func (m *myModule) example(ctx context.Context, repo string, title string, body string) string {
return dag.
GithubIssue().
Write(repo, title, body).
Body(ctx)
}
@function
async def example(repo: str, title: str, body: str) -> str:
return await (
dag.github_issue()
.write(repo, title, body)
.body()
)
@func()
async example(repo: string, title: string, body: string): Promise<string> {
return dag
.githubIssue()
.write(repo, title, body)
.body()
}
headRef() 🔗
Head ref for a pull request
Return Type
String !
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string \
head-ref
func (m *myModule) example(ctx context.Context, repo string, title string, body string) string {
return dag.
GithubIssue().
Write(repo, title, body).
HeadRef(ctx)
}
@function
async def example(repo: str, title: str, body: str) -> str:
return await (
dag.github_issue()
.write(repo, title, body)
.head_ref()
)
@func()
async example(repo: string, title: string, body: string): Promise<string> {
return dag
.githubIssue()
.write(repo, title, body)
.headRef()
}
baseRef() 🔗
Base ref for a pull request
Return Type
String !
Example
dagger -m github.com/kpenfound/dag/github-issue@ec234b405dd039116f1b2b11812e8cd854ff56aa call \
write --repo string --title string --body string \
base-ref
func (m *myModule) example(ctx context.Context, repo string, title string, body string) string {
return dag.
GithubIssue().
Write(repo, title, body).
BaseRef(ctx)
}
@function
async def example(repo: str, title: str, body: str) -> str:
return await (
dag.github_issue()
.write(repo, title, body)
.base_ref()
)
@func()
async example(repo: string, title: string, body: string): Promise<string> {
return dag
.githubIssue()
.write(repo, title, body)
.baseRef()
}
GithubIssueComment 🔗
A Github issue comment
author() 🔗
Return Type
String !
Example
Function GithubIssueComment.author is not accessible from the github-issue module
Function GithubIssueComment.author is not accessible from the github-issue module
Function GithubIssueComment.author is not accessible from the github-issue module
Function GithubIssueComment.author is not accessible from the github-issue module
body() 🔗
Return Type
String !
Example
Function GithubIssueComment.body is not accessible from the github-issue module
Function GithubIssueComment.body is not accessible from the github-issue module
Function GithubIssueComment.body is not accessible from the github-issue module
Function GithubIssueComment.body is not accessible from the github-issue module
createdAt() 🔗
Return Type
String !
Example
Function GithubIssueComment.createdAt is not accessible from the github-issue module
Function GithubIssueComment.createdAt is not accessible from the github-issue module
Function GithubIssueComment.createdAt is not accessible from the github-issue module
Function GithubIssueComment.createdAt is not accessible from the github-issue module
GithubIssueTemplate 🔗
name() 🔗
Return Type
String !
Example
Function GithubIssueTemplate.name is not accessible from the github-issue module
Function GithubIssueTemplate.name is not accessible from the github-issue module
Function GithubIssueTemplate.name is not accessible from the github-issue module
Function GithubIssueTemplate.name is not accessible from the github-issue module
content() 🔗
Return Type
String !
Example
Function GithubIssueTemplate.content is not accessible from the github-issue module
Function GithubIssueTemplate.content is not accessible from the github-issue module
Function GithubIssueTemplate.content is not accessible from the github-issue module
Function GithubIssueTemplate.content is not accessible from the github-issue module