index
Functions
createBranch
ts
createBranch(name: string, from: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| name | string | |
| from | string | "" |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
deleteBranch
ts
deleteBranch(name: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| name | string | |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
branchExists
ts
branchExists(name: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| name | string | |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
commitFiles
ts
commitFiles(message: string, files: string[], authorName: string, authorEmail: string, push: boolean, branch: string)Parameters:
| Name | Type | Default |
|---|---|---|
| message | string | |
| files | string[] | [] |
| authorName | string | "" |
| authorEmail | string | "" |
| push | boolean | true |
| branch | string | "" |
(source)
openPullRequest
ts
openPullRequest(title: string, body: string, head: string, base: string, draft: boolean, labels: string[], owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| title | string | |
| body | string | |
| head | string | |
| base | string | "" |
| draft | boolean | false |
| labels | string[] | [] |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
listPullRequests
ts
listPullRequests(state: string, base: string, head: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| state | string | "open" |
| base | string | "" |
| head | string | "" |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
commentOnPullRequest
ts
commentOnPullRequest(number: number, body: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| number | number | |
| body | string | |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
addLabel
ts
addLabel(number: number, labels: string[], owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| number | number | |
| labels | string[] | |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
requestReview
ts
requestReview(number: number, reviewers: string[], teamReviewers: string[], owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| number | number | |
| reviewers | string[] | [] |
| teamReviewers | string[] | [] |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
listIssues
ts
listIssues(state: string, labels: string[], owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| state | string | "open" |
| labels | string[] | [] |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
commentOnIssue
ts
commentOnIssue(number: number, body: string, owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| number | number | |
| body | string | |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
createIssue
ts
createIssue(title: string, body: string, labels: string[], owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| title | string | |
| body | string | |
| labels | string[] | [] |
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)
defaultBranch
ts
defaultBranch(owner: string, repo: string, token: string)Parameters:
| Name | Type | Default |
|---|---|---|
| owner | string | "" |
| repo | string | "" |
| token | string | "" |
(source)