github.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Comments
delete
comments.delete
Delete a comment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
commentId | number | Yes | — |
void
get
comments.get
Get a specific comment
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
commentId | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
htmlUrl | string | No | — |
issueUrl | string | No | — |
body | string | No | — |
authorAssociation | string | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
list
comments.list
List all comments in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
sort | created | updated | No | — |
direction | asc | desc | No | — |
since | string | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
listForIssue
comments.listForIssue
List comments on a specific issue or pull request
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
issueNumber | number | Yes | — |
since | string | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
update
comments.update
Update a comment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
commentId | number | Yes | — |
body | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
htmlUrl | string | No | — |
issueUrl | string | No | — |
body | string | No | — |
authorAssociation | string | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
Discussions
get
discussions.get
Get a specific discussion
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
discussionNumber | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
number | number | Yes | — |
title | string | Yes | — |
body | string | No | — |
htmlUrl | string | No | — |
repositoryUrl | string | No | — |
state | string | No | — |
locked | boolean | No | — |
comments | number | No | — |
authorAssociation | string | No | — |
category | object | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
answerChosenAt | date | No | — |
category full type
category full type
list
discussions.list
List discussions in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
Forks
list
forks.list
List forks of a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
sort | newest | oldest | stargazers | watchers | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
Issues
create
issues.create
Create a new issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
title | string | number | Yes | — |
body | string | No | — |
assignee | string | No | — |
milestone | string | number | No | — |
labels | object[] | No | — |
assignees | string[] | No | — |
labels full type
labels full type
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
repositoryUrl | string | No | — |
labelsUrl | string | No | — |
commentsUrl | string | No | — |
eventsUrl | string | No | — |
htmlUrl | string | No | — |
number | number | Yes | — |
state | string | Yes | — |
stateReason | completed | reopened | not_planned | duplicate | No | — |
title | string | Yes | — |
body | string | No | — |
user | object | No | — |
labels | object[] | No | — |
assignee | object | No | — |
assignees | object[] | No | — |
locked | boolean | No | — |
comments | number | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
closedAt | date | No | — |
user full type
user full type
labels full type
labels full type
assignee full type
assignee full type
assignees full type
assignees full type
createComment
issues.createComment
Post a comment on an issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
issueNumber | number | Yes | — |
body | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
body | string | No | — |
bodyText | string | No | — |
bodyHtml | string | No | — |
htmlUrl | string | No | — |
user | object | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
issueUrl | string | No | — |
user full type
user full type
get
issues.get
Get a specific issue
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
issueNumber | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
repositoryUrl | string | No | — |
labelsUrl | string | No | — |
commentsUrl | string | No | — |
eventsUrl | string | No | — |
htmlUrl | string | No | — |
number | number | Yes | — |
state | string | Yes | — |
stateReason | completed | reopened | not_planned | duplicate | No | — |
title | string | Yes | — |
body | string | No | — |
user | object | No | — |
labels | object[] | No | — |
assignee | object | No | — |
assignees | object[] | No | — |
locked | boolean | No | — |
comments | number | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
closedAt | date | No | — |
user full type
user full type
labels full type
labels full type
assignee full type
assignee full type
assignees full type
assignees full type
list
issues.list
List issues in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
milestone | string | No | — |
state | open | closed | all | No | — |
assignee | string | No | — |
creator | string | No | — |
mentioned | string | No | — |
labels | string | No | — |
sort | created | updated | comments | No | — |
direction | asc | desc | No | — |
since | string | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
update
issues.update
Update an existing issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
issueNumber | number | Yes | — |
title | string | number | No | — |
body | string | No | — |
assignee | string | No | — |
state | open | closed | No | — |
stateReason | completed | not_planned | duplicate | reopened | No | — |
milestone | string | number | No | — |
labels | object[] | No | — |
assignees | string[] | No | — |
labels full type
labels full type
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
url | string | No | — |
repositoryUrl | string | No | — |
labelsUrl | string | No | — |
commentsUrl | string | No | — |
eventsUrl | string | No | — |
htmlUrl | string | No | — |
number | number | Yes | — |
state | string | Yes | — |
stateReason | completed | reopened | not_planned | duplicate | No | — |
title | string | Yes | — |
body | string | No | — |
user | object | No | — |
labels | object[] | No | — |
assignee | object | No | — |
assignees | object[] | No | — |
locked | boolean | No | — |
comments | number | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
closedAt | date | No | — |
user full type
user full type
labels full type
labels full type
assignee full type
assignee full type
assignees full type
assignees full type
Pull Requests
createReview
pullRequests.createReview
Submit a pull request review
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
pullNumber | number | Yes | — |
commitId | string | No | — |
body | string | No | — |
event | APPROVE | REQUEST_CHANGES | COMMENT | No | — |
comments | object[] | No | — |
comments full type
comments full type
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
user | object | No | — |
body | string | No | — |
state | string | No | — |
htmlUrl | string | No | — |
pullRequestUrl | string | No | — |
submittedAt | date | No | — |
commitId | string | No | — |
user full type
user full type
get
pullRequests.get
Get a specific pull request
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
pullNumber | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | — |
id | number | Yes | — |
nodeId | string | No | — |
htmlUrl | string | No | — |
diffUrl | string | No | — |
patchUrl | string | No | — |
issueUrl | string | No | — |
number | number | Yes | — |
state | open | closed | Yes | — |
locked | boolean | No | — |
title | string | Yes | — |
user | object | No | — |
body | string | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
closedAt | date | No | — |
mergedAt | date | No | — |
mergeCommitSha | string | No | — |
assignee | object | No | — |
assignees | object[] | No | — |
labels | object[] | No | — |
milestone | object | No | — |
commitsUrl | string | No | — |
reviewCommentsUrl | string | No | — |
reviewCommentUrl | string | No | — |
commentsUrl | string | No | — |
statusesUrl | string | No | — |
head | object | No | — |
base | object | No | — |
authorAssociation | string | No | — |
draft | boolean | No | — |
merged | boolean | No | — |
mergeable | boolean | No | — |
comments | number | No | — |
reviewComments | number | No | — |
commits | number | No | — |
additions | number | No | — |
deletions | number | No | — |
changedFiles | number | No | — |
user full type
user full type
assignee full type
assignee full type
assignees full type
assignees full type
labels full type
labels full type
milestone full type
milestone full type
head full type
head full type
base full type
base full type
list
pullRequests.list
List pull requests
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
state | open | closed | all | No | — |
head | string | No | — |
base | string | No | — |
sort | created | updated | popularity | long-running | No | — |
direction | asc | desc | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
listReviews
pullRequests.listReviews
List reviews on a pull request
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
pullNumber | number | Yes | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
Releases
create
releases.create
Create a new release
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
tagName | string | Yes | — |
targetCommitish | string | No | — |
name | string | No | — |
body | string | No | — |
draft | boolean | No | — |
prerelease | boolean | No | — |
generateReleaseNotes | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
url | string | No | — |
htmlUrl | string | No | — |
assetsUrl | string | No | — |
uploadUrl | string | No | — |
tarballUrl | string | No | — |
zipballUrl | string | No | — |
id | number | Yes | — |
nodeId | string | No | — |
tagName | string | No | — |
targetCommitish | string | No | — |
name | string | No | — |
body | string | No | — |
draft | boolean | No | — |
prerelease | boolean | No | — |
createdAt | date | No | — |
publishedAt | date | No | — |
author | object | No | — |
assets | object[] | No | — |
author full type
author full type
assets full type
assets full type
get
releases.get
Get a specific release
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
releaseId | number | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
url | string | No | — |
htmlUrl | string | No | — |
assetsUrl | string | No | — |
uploadUrl | string | No | — |
tarballUrl | string | No | — |
zipballUrl | string | No | — |
id | number | Yes | — |
nodeId | string | No | — |
tagName | string | No | — |
targetCommitish | string | No | — |
name | string | No | — |
body | string | No | — |
draft | boolean | No | — |
prerelease | boolean | No | — |
createdAt | date | No | — |
publishedAt | date | No | — |
author | object | No | — |
assets | object[] | No | — |
author full type
author full type
assets full type
assets full type
list
releases.list
List releases in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
update
releases.update
Update an existing release
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
releaseId | number | Yes | — |
tagName | string | No | — |
targetCommitish | string | No | — |
name | string | No | — |
body | string | No | — |
draft | boolean | No | — |
prerelease | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
url | string | No | — |
htmlUrl | string | No | — |
assetsUrl | string | No | — |
uploadUrl | string | No | — |
tarballUrl | string | No | — |
zipballUrl | string | No | — |
id | number | Yes | — |
nodeId | string | No | — |
tagName | string | No | — |
targetCommitish | string | No | — |
name | string | No | — |
body | string | No | — |
draft | boolean | No | — |
prerelease | boolean | No | — |
createdAt | date | No | — |
publishedAt | date | No | — |
author | object | No | — |
assets | object[] | No | — |
author full type
author full type
assets full type
assets full type
Repositories
get
repositories.get
Get a specific repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
name | string | Yes | — |
fullName | string | No | — |
private | boolean | No | — |
htmlUrl | string | No | — |
description | string | No | — |
fork | boolean | No | — |
url | string | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
pushedAt | date | No | — |
defaultBranch | string | No | — |
language | string | No | — |
stargazersCount | number | No | — |
watchersCount | number | No | — |
forksCount | number | No | — |
openIssuesCount | number | No | — |
archived | boolean | No | — |
disabled | boolean | No | — |
owner | object | No | — |
owner full type
owner full type
getContent
repositories.getContent
Get file or directory content from a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
path | string | Yes | — |
ref | string | No | — |
object[]
Output full type
Output full type
list
repositories.list
List repositories for the authenticated user
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | No | — |
type | all | owner | public | private | member | No | — |
sort | created | updated | pushed | full_name | No | — |
direction | asc | desc | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
listBranches
repositories.listBranches
List branches in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
protected | boolean | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
listCommits
repositories.listCommits
List commits in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
sha | string | No | — |
path | string | No | — |
author | string | No | — |
committer | string | No | — |
since | string | No | — |
until | string | No | — |
perPage | number | No | — |
page | number | No | — |
object[]
Output full type
Output full type
Workflows
get
workflows.get
Get a specific workflow
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
workflowId | number | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
nodeId | string | No | — |
name | string | Yes | — |
path | string | Yes | — |
state | active | deleted | disabled_fork | disabled_inactivity | disabled_manually | Yes | — |
createdAt | date | No | — |
updatedAt | date | No | — |
url | string | No | — |
htmlUrl | string | No | — |
badgeUrl | string | No | — |
deletedAt | date | No | — |
list
workflows.list
List workflows in a repository
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
perPage | number | No | — |
page | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
totalCount | number | No | — |
total_count | number | No | — |
workflows | object[] | No | — |
workflows full type
workflows full type
listRuns
workflows.listRuns
List workflow runs
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | — |
repo | string | Yes | — |
actor | string | No | — |
branch | string | No | — |
event | string | No | — |
status | completed | action_required | cancelled | failure | neutral | skipped | stale | success | timed_out | in_progress | queued | requested | waiting | pending | No | — |
perPage | number | No | — |
page | number | No | — |
created | string | No | — |
excludePullRequests | boolean | No | — |
checkSuiteId | number | No | — |
headSha | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
totalCount | number | No | — |
total_count | number | No | — |
workflowRuns | object[] | No | — |
workflow_runs | object[] | No | — |
workflowRuns full type
workflowRuns full type
workflow_runs full type
workflow_runs full type