Skip to main content
Every github.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Comments

delete

comments.delete Delete a comment Risk: write
await corsair.github.api.comments.delete({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
commentIdnumberYes
Output: void

get

comments.get Get a specific comment Risk: read
await corsair.github.api.comments.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
commentIdnumberYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
htmlUrlstringNo
issueUrlstringNo
bodystringNo
authorAssociationstringNo
createdAtdateNo
updatedAtdateNo

list

comments.list List all comments in a repository Risk: read
await corsair.github.api.comments.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
sortcreated | updatedNo
directionasc | descNo
sincestringNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  url?: string,
  htmlUrl?: string,
  issueUrl?: string,
  body?: string,
  authorAssociation?: string,
  createdAt?: date | null,
  updatedAt?: date | null
}[]

listForIssue

comments.listForIssue List comments on a specific issue or pull request Risk: read
await corsair.github.api.comments.listForIssue({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
issueNumbernumberYes
sincestringNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  url?: string,
  htmlUrl?: string,
  issueUrl?: string,
  body?: string,
  authorAssociation?: string,
  createdAt?: date | null,
  updatedAt?: date | null
}[]

update

comments.update Update a comment Risk: write
await corsair.github.api.comments.update({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
commentIdnumberYes
bodystringYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
htmlUrlstringNo
issueUrlstringNo
bodystringNo
authorAssociationstringNo
createdAtdateNo
updatedAtdateNo

Discussions

get

discussions.get Get a specific discussion Risk: read
await corsair.github.api.discussions.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
discussionNumbernumberYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
numbernumberYes
titlestringYes
bodystringNo
htmlUrlstringNo
repositoryUrlstringNo
statestringNo
lockedbooleanNo
commentsnumberNo
authorAssociationstringNo
categoryobjectNo
createdAtdateNo
updatedAtdateNo
answerChosenAtdateNo
{
  id: number,
  nodeId?: string,
  repositoryId?: number,
  emoji?: string,
  name: string,
  description?: string,
  createdAt?: date | null,
  updatedAt?: date | null,
  slug?: string,
  isAnswerable?: boolean
}

list

discussions.list List discussions in a repository Risk: read
await corsair.github.api.discussions.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  number: number,
  title: string,
  body?: string | null,
  htmlUrl?: string,
  repositoryUrl?: string,
  state?: string,
  locked?: boolean,
  comments?: number,
  authorAssociation?: string,
  category?: {
    id: number,
    nodeId?: string,
    repositoryId?: number,
    emoji?: string,
    name: string,
    description?: string,
    createdAt?: date | null,
    updatedAt?: date | null,
    slug?: string,
    isAnswerable?: boolean
  },
  createdAt?: date | null,
  updatedAt?: date | null,
  answerChosenAt?: date | null
}[]

Forks

list

forks.list List forks of a repository Risk: read
await corsair.github.api.forks.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
sortnewest | oldest | stargazers | watchersNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  name: string,
  fullName?: string,
  private?: boolean,
  htmlUrl?: string,
  description?: string | null,
  fork?: boolean,
  url?: string,
  createdAt?: date | null,
  updatedAt?: date | null,
  pushedAt?: date | null,
  defaultBranch?: string,
  language?: string | null,
  stargazersCount?: number,
  watchersCount?: number,
  forksCount?: number,
  openIssuesCount?: number,
  archived?: boolean,
  disabled?: boolean,
  owner?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  }
}[]

Issues

create

issues.create Create a new issue Risk: write
await corsair.github.api.issues.create({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
titlestring | numberYes
bodystringNo
assigneestringNo
milestonestring | numberNo
labelsobject[]No
assigneesstring[]No
(
  string | {
    id?: number,
    name?: string,
    description?: string | null,
    color?: string | null
  }
)[]
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
repositoryUrlstringNo
labelsUrlstringNo
commentsUrlstringNo
eventsUrlstringNo
htmlUrlstringNo
numbernumberYes
statestringYes
stateReasoncompleted | reopened | not_planned | duplicateNo
titlestringYes
bodystringNo
userobjectNo
labelsobject[]No
assigneeobjectNo
assigneesobject[]No
lockedbooleanNo
commentsnumberNo
createdAtdateNo
updatedAtdateNo
closedAtdateNo
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
(
  string | {
    id?: number,
    nodeId?: string,
    url?: string,
    name?: string,
    description?: string | null,
    color?: string | null,
    default?: boolean
  }
)[]
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}[]

createComment

issues.createComment Post a comment on an issue Risk: write
await corsair.github.api.issues.createComment({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
issueNumbernumberYes
bodystringYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
bodystringNo
bodyTextstringNo
bodyHtmlstringNo
htmlUrlstringNo
userobjectNo
createdAtdateNo
updatedAtdateNo
issueUrlstringNo
{
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string
}

get

issues.get Get a specific issue Risk: read
await corsair.github.api.issues.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
issueNumbernumberYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
repositoryUrlstringNo
labelsUrlstringNo
commentsUrlstringNo
eventsUrlstringNo
htmlUrlstringNo
numbernumberYes
statestringYes
stateReasoncompleted | reopened | not_planned | duplicateNo
titlestringYes
bodystringNo
userobjectNo
labelsobject[]No
assigneeobjectNo
assigneesobject[]No
lockedbooleanNo
commentsnumberNo
createdAtdateNo
updatedAtdateNo
closedAtdateNo
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
(
  string | {
    id?: number,
    nodeId?: string,
    url?: string,
    name?: string,
    description?: string | null,
    color?: string | null,
    default?: boolean
  }
)[]
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}[]

list

issues.list List issues in a repository Risk: read
await corsair.github.api.issues.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
milestonestringNo
stateopen | closed | allNo
assigneestringNo
creatorstringNo
mentionedstringNo
labelsstringNo
sortcreated | updated | commentsNo
directionasc | descNo
sincestringNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  url?: string,
  repositoryUrl?: string,
  labelsUrl?: string,
  commentsUrl?: string,
  eventsUrl?: string,
  htmlUrl?: string,
  number: number,
  state: string,
  stateReason?: completed | reopened | not_planned | duplicate | null,
  title: string,
  body?: string | null,
  user?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  } | null,
  labels?: (
    string | {
      id?: number,
      nodeId?: string,
      url?: string,
      name?: string,
      description?: string | null,
      color?: string | null,
      default?: boolean
    }
  )[],
  assignee?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  } | null,
  assignees?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  }[] | null,
  locked?: boolean,
  comments?: number,
  createdAt?: date | null,
  updatedAt?: date | null,
  closedAt?: date | null
}[]

update

issues.update Update an existing issue Risk: write
await corsair.github.api.issues.update({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
issueNumbernumberYes
titlestring | numberNo
bodystringNo
assigneestringNo
stateopen | closedNo
stateReasoncompleted | not_planned | duplicate | reopenedNo
milestonestring | numberNo
labelsobject[]No
assigneesstring[]No
(
  string | {
    id?: number,
    name?: string,
    description?: string | null,
    color?: string | null
  }
)[]
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
urlstringNo
repositoryUrlstringNo
labelsUrlstringNo
commentsUrlstringNo
eventsUrlstringNo
htmlUrlstringNo
numbernumberYes
statestringYes
stateReasoncompleted | reopened | not_planned | duplicateNo
titlestringYes
bodystringNo
userobjectNo
labelsobject[]No
assigneeobjectNo
assigneesobject[]No
lockedbooleanNo
commentsnumberNo
createdAtdateNo
updatedAtdateNo
closedAtdateNo
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
(
  string | {
    id?: number,
    nodeId?: string,
    url?: string,
    name?: string,
    description?: string | null,
    color?: string | null,
    default?: boolean
  }
)[]
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}[]

Pull Requests

createReview

pullRequests.createReview Submit a pull request review Risk: write
await corsair.github.api.pullRequests.createReview({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
pullNumbernumberYes
commitIdstringNo
bodystringNo
eventAPPROVE | REQUEST_CHANGES | COMMENTNo
commentsobject[]No
{
  path: string,
  position?: number,
  body: string,
  line?: number,
  side?: string,
  startLine?: number,
  startSide?: string
}[]
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
userobjectNo
bodystringNo
statestringNo
htmlUrlstringNo
pullRequestUrlstringNo
submittedAtdateNo
commitIdstringNo
{
  login: string,
  id: number
}

get

pullRequests.get Get a specific pull request Risk: read
await corsair.github.api.pullRequests.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
pullNumbernumberYes
Output
NameTypeRequiredDescription
urlstringYes
idnumberYes
nodeIdstringNo
htmlUrlstringNo
diffUrlstringNo
patchUrlstringNo
issueUrlstringNo
numbernumberYes
stateopen | closedYes
lockedbooleanNo
titlestringYes
userobjectNo
bodystringNo
createdAtdateNo
updatedAtdateNo
closedAtdateNo
mergedAtdateNo
mergeCommitShastringNo
assigneeobjectNo
assigneesobject[]No
labelsobject[]No
milestoneobjectNo
commitsUrlstringNo
reviewCommentsUrlstringNo
reviewCommentUrlstringNo
commentsUrlstringNo
statusesUrlstringNo
headobjectNo
baseobjectNo
authorAssociationstringNo
draftbooleanNo
mergedbooleanNo
mergeablebooleanNo
commentsnumberNo
reviewCommentsnumberNo
commitsnumberNo
additionsnumberNo
deletionsnumberNo
changedFilesnumberNo
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}[]
{
  id?: number,
  nodeId?: string,
  url?: string,
  name?: string,
  description?: string | null,
  color?: string | null,
  default?: boolean
}[]
{
  url?: string,
  htmlUrl?: string,
  labelsUrl?: string,
  id?: number,
  nodeId?: string,
  number?: number,
  state?: open | closed,
  title?: string,
  description?: string | null,
  creator?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  },
  openIssues?: number,
  closedIssues?: number,
  createdAt?: date | null,
  updatedAt?: date | null,
  closedAt?: date | null,
  dueOn?: date | null
}
{
  label?: string,
  ref?: string,
  sha?: string,
  user?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  },
  repo?: {
    id: number,
    nodeId?: string,
    name: string,
    fullName?: string,
    private?: boolean,
    htmlUrl?: string,
    description?: string | null,
    fork?: boolean,
    url?: string,
    createdAt?: date | null,
    updatedAt?: date | null,
    pushedAt?: date | null,
    defaultBranch?: string,
    language?: string | null,
    stargazersCount?: number,
    watchersCount?: number,
    forksCount?: number,
    openIssuesCount?: number,
    archived?: boolean,
    disabled?: boolean,
    owner?: {
      name?: string | null,
      email?: string | null,
      login: string,
      id: number,
      nodeId?: string,
      avatarUrl?: string,
      gravatarId?: string | null,
      url?: string,
      htmlUrl?: string,
      followersUrl?: string,
      followingUrl?: string,
      gistsUrl?: string,
      starredUrl?: string,
      subscriptionsUrl?: string,
      organizationsUrl?: string,
      reposUrl?: string,
      eventsUrl?: string,
      receivedEventsUrl?: string,
      type?: string,
      siteAdmin?: boolean,
      starredAt?: date | null
    }
  } | null
}
{
  label?: string,
  ref?: string,
  sha?: string,
  user?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  },
  repo?: {
    id: number,
    nodeId?: string,
    name: string,
    fullName?: string,
    private?: boolean,
    htmlUrl?: string,
    description?: string | null,
    fork?: boolean,
    url?: string,
    createdAt?: date | null,
    updatedAt?: date | null,
    pushedAt?: date | null,
    defaultBranch?: string,
    language?: string | null,
    stargazersCount?: number,
    watchersCount?: number,
    forksCount?: number,
    openIssuesCount?: number,
    archived?: boolean,
    disabled?: boolean,
    owner?: {
      name?: string | null,
      email?: string | null,
      login: string,
      id: number,
      nodeId?: string,
      avatarUrl?: string,
      gravatarId?: string | null,
      url?: string,
      htmlUrl?: string,
      followersUrl?: string,
      followingUrl?: string,
      gistsUrl?: string,
      starredUrl?: string,
      subscriptionsUrl?: string,
      organizationsUrl?: string,
      reposUrl?: string,
      eventsUrl?: string,
      receivedEventsUrl?: string,
      type?: string,
      siteAdmin?: boolean,
      starredAt?: date | null
    }
  }
}

list

pullRequests.list List pull requests Risk: read
await corsair.github.api.pullRequests.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
stateopen | closed | allNo
headstringNo
basestringNo
sortcreated | updated | popularity | long-runningNo
directionasc | descNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  url: string,
  id: number,
  nodeId?: string,
  htmlUrl?: string,
  diffUrl?: string,
  patchUrl?: string,
  issueUrl?: string,
  number: number,
  state: open | closed,
  locked?: boolean,
  title: string,
  user?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  },
  body?: string | null,
  createdAt?: date | null,
  updatedAt?: date | null,
  closedAt?: date | null,
  mergedAt?: date | null,
  mergeCommitSha?: string | null,
  assignee?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  } | null,
  assignees?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  }[] | null,
  labels?: {
    id?: number,
    nodeId?: string,
    url?: string,
    name?: string,
    description?: string | null,
    color?: string | null,
    default?: boolean
  }[],
  milestone?: {
    url?: string,
    htmlUrl?: string,
    labelsUrl?: string,
    id?: number,
    nodeId?: string,
    number?: number,
    state?: open | closed,
    title?: string,
    description?: string | null,
    creator?: {
      name?: string | null,
      email?: string | null,
      login: string,
      id: number,
      nodeId?: string,
      avatarUrl?: string,
      gravatarId?: string | null,
      url?: string,
      htmlUrl?: string,
      followersUrl?: string,
      followingUrl?: string,
      gistsUrl?: string,
      starredUrl?: string,
      subscriptionsUrl?: string,
      organizationsUrl?: string,
      reposUrl?: string,
      eventsUrl?: string,
      receivedEventsUrl?: string,
      type?: string,
      siteAdmin?: boolean,
      starredAt?: date | null
    },
    openIssues?: number,
    closedIssues?: number,
    createdAt?: date | null,
    updatedAt?: date | null,
    closedAt?: date | null,
    dueOn?: date | null
  } | null,
  commitsUrl?: string,
  reviewCommentsUrl?: string,
  reviewCommentUrl?: string,
  commentsUrl?: string,
  statusesUrl?: string,
  head?: {
    label?: string,
    ref?: string,
    sha?: string,
    user?: {
      name?: string | null,
      email?: string | null,
      login: string,
      id: number,
      nodeId?: string,
      avatarUrl?: string,
      gravatarId?: string | null,
      url?: string,
      htmlUrl?: string,
      followersUrl?: string,
      followingUrl?: string,
      gistsUrl?: string,
      starredUrl?: string,
      subscriptionsUrl?: string,
      organizationsUrl?: string,
      reposUrl?: string,
      eventsUrl?: string,
      receivedEventsUrl?: string,
      type?: string,
      siteAdmin?: boolean,
      starredAt?: date | null
    },
    repo?: {
      id: number,
      nodeId?: string,
      name: string,
      fullName?: string,
      private?: boolean,
      htmlUrl?: string,
      description?: string | null,
      fork?: boolean,
      url?: string,
      createdAt?: date | null,
      updatedAt?: date | null,
      pushedAt?: date | null,
      defaultBranch?: string,
      language?: string | null,
      stargazersCount?: number,
      watchersCount?: number,
      forksCount?: number,
      openIssuesCount?: number,
      archived?: boolean,
      disabled?: boolean,
      owner?: {
        name?: string | null,
        email?: string | null,
        login: string,
        id: number,
        nodeId?: string,
        avatarUrl?: string,
        gravatarId?: string | null,
        url?: string,
        htmlUrl?: string,
        followersUrl?: string,
        followingUrl?: string,
        gistsUrl?: string,
        starredUrl?: string,
        subscriptionsUrl?: string,
        organizationsUrl?: string,
        reposUrl?: string,
        eventsUrl?: string,
        receivedEventsUrl?: string,
        type?: string,
        siteAdmin?: boolean,
        starredAt?: date | null
      }
    } | null
  },
  base?: {
    label?: string,
    ref?: string,
    sha?: string,
    user?: {
      name?: string | null,
      email?: string | null,
      login: string,
      id: number,
      nodeId?: string,
      avatarUrl?: string,
      gravatarId?: string | null,
      url?: string,
      htmlUrl?: string,
      followersUrl?: string,
      followingUrl?: string,
      gistsUrl?: string,
      starredUrl?: string,
      subscriptionsUrl?: string,
      organizationsUrl?: string,
      reposUrl?: string,
      eventsUrl?: string,
      receivedEventsUrl?: string,
      type?: string,
      siteAdmin?: boolean,
      starredAt?: date | null
    },
    repo?: {
      id: number,
      nodeId?: string,
      name: string,
      fullName?: string,
      private?: boolean,
      htmlUrl?: string,
      description?: string | null,
      fork?: boolean,
      url?: string,
      createdAt?: date | null,
      updatedAt?: date | null,
      pushedAt?: date | null,
      defaultBranch?: string,
      language?: string | null,
      stargazersCount?: number,
      watchersCount?: number,
      forksCount?: number,
      openIssuesCount?: number,
      archived?: boolean,
      disabled?: boolean,
      owner?: {
        name?: string | null,
        email?: string | null,
        login: string,
        id: number,
        nodeId?: string,
        avatarUrl?: string,
        gravatarId?: string | null,
        url?: string,
        htmlUrl?: string,
        followersUrl?: string,
        followingUrl?: string,
        gistsUrl?: string,
        starredUrl?: string,
        subscriptionsUrl?: string,
        organizationsUrl?: string,
        reposUrl?: string,
        eventsUrl?: string,
        receivedEventsUrl?: string,
        type?: string,
        siteAdmin?: boolean,
        starredAt?: date | null
      }
    }
  },
  authorAssociation?: string,
  draft?: boolean,
  merged?: boolean,
  mergeable?: boolean | null,
  comments?: number,
  reviewComments?: number,
  commits?: number,
  additions?: number,
  deletions?: number,
  changedFiles?: number
}[]

listReviews

pullRequests.listReviews List reviews on a pull request Risk: read
await corsair.github.api.pullRequests.listReviews({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
pullNumbernumberYes
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  user?: {
    login: string,
    id: number
  },
  body?: string,
  state?: string,
  htmlUrl?: string,
  pullRequestUrl?: string,
  submittedAt?: date | null,
  commitId?: string | null
}[]

Releases

create

releases.create Create a new release Risk: write
await corsair.github.api.releases.create({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
tagNamestringYes
targetCommitishstringNo
namestringNo
bodystringNo
draftbooleanNo
prereleasebooleanNo
generateReleaseNotesbooleanNo
Output
NameTypeRequiredDescription
urlstringNo
htmlUrlstringNo
assetsUrlstringNo
uploadUrlstringNo
tarballUrlstringNo
zipballUrlstringNo
idnumberYes
nodeIdstringNo
tagNamestringNo
targetCommitishstringNo
namestringNo
bodystringNo
draftbooleanNo
prereleasebooleanNo
createdAtdateNo
publishedAtdateNo
authorobjectNo
assetsobject[]No
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  url: string,
  browserDownloadUrl: string,
  id: number,
  nodeId: string,
  name: string,
  label?: string | null,
  state: uploaded | open,
  contentType: string,
  size: number,
  downloadCount: number,
  createdAt?: date | null,
  updatedAt?: date | null
}[]

get

releases.get Get a specific release Risk: read
await corsair.github.api.releases.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
releaseIdnumberYes
Output
NameTypeRequiredDescription
urlstringNo
htmlUrlstringNo
assetsUrlstringNo
uploadUrlstringNo
tarballUrlstringNo
zipballUrlstringNo
idnumberYes
nodeIdstringNo
tagNamestringNo
targetCommitishstringNo
namestringNo
bodystringNo
draftbooleanNo
prereleasebooleanNo
createdAtdateNo
publishedAtdateNo
authorobjectNo
assetsobject[]No
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  url: string,
  browserDownloadUrl: string,
  id: number,
  nodeId: string,
  name: string,
  label?: string | null,
  state: uploaded | open,
  contentType: string,
  size: number,
  downloadCount: number,
  createdAt?: date | null,
  updatedAt?: date | null
}[]

list

releases.list List releases in a repository Risk: read
await corsair.github.api.releases.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
perPagenumberNo
pagenumberNo
Output: object[]
{
  url?: string,
  htmlUrl?: string,
  assetsUrl?: string,
  uploadUrl?: string,
  tarballUrl?: string | null,
  zipballUrl?: string | null,
  id: number,
  nodeId?: string,
  tagName?: string,
  targetCommitish?: string,
  name?: string | null,
  body?: string | null,
  draft?: boolean,
  prerelease?: boolean,
  createdAt?: date | null,
  publishedAt?: date | null,
  author?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  },
  assets?: {
    url: string,
    browserDownloadUrl: string,
    id: number,
    nodeId: string,
    name: string,
    label?: string | null,
    state: uploaded | open,
    contentType: string,
    size: number,
    downloadCount: number,
    createdAt?: date | null,
    updatedAt?: date | null
  }[]
}[]

update

releases.update Update an existing release Risk: write
await corsair.github.api.releases.update({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
releaseIdnumberYes
tagNamestringNo
targetCommitishstringNo
namestringNo
bodystringNo
draftbooleanNo
prereleasebooleanNo
Output
NameTypeRequiredDescription
urlstringNo
htmlUrlstringNo
assetsUrlstringNo
uploadUrlstringNo
tarballUrlstringNo
zipballUrlstringNo
idnumberYes
nodeIdstringNo
tagNamestringNo
targetCommitishstringNo
namestringNo
bodystringNo
draftbooleanNo
prereleasebooleanNo
createdAtdateNo
publishedAtdateNo
authorobjectNo
assetsobject[]No
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}
{
  url: string,
  browserDownloadUrl: string,
  id: number,
  nodeId: string,
  name: string,
  label?: string | null,
  state: uploaded | open,
  contentType: string,
  size: number,
  downloadCount: number,
  createdAt?: date | null,
  updatedAt?: date | null
}[]

Repositories

get

repositories.get Get a specific repository Risk: read
await corsair.github.api.repositories.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
namestringYes
fullNamestringNo
privatebooleanNo
htmlUrlstringNo
descriptionstringNo
forkbooleanNo
urlstringNo
createdAtdateNo
updatedAtdateNo
pushedAtdateNo
defaultBranchstringNo
languagestringNo
stargazersCountnumberNo
watchersCountnumberNo
forksCountnumberNo
openIssuesCountnumberNo
archivedbooleanNo
disabledbooleanNo
ownerobjectNo
{
  name?: string | null,
  email?: string | null,
  login: string,
  id: number,
  nodeId?: string,
  avatarUrl?: string,
  gravatarId?: string | null,
  url?: string,
  htmlUrl?: string,
  followersUrl?: string,
  followingUrl?: string,
  gistsUrl?: string,
  starredUrl?: string,
  subscriptionsUrl?: string,
  organizationsUrl?: string,
  reposUrl?: string,
  eventsUrl?: string,
  receivedEventsUrl?: string,
  type?: string,
  siteAdmin?: boolean,
  starredAt?: date | null
}

getContent

repositories.getContent Get file or directory content from a repository Risk: read
await corsair.github.api.repositories.getContent({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
pathstringYes
refstringNo
Output: object[]
{
  type: file,
  encoding?: string,
  size?: number,
  name: string,
  path?: string,
  content?: string,
  sha: string,
  url?: string,
  gitUrl?: string | null,
  htmlUrl?: string | null,
  downloadUrl?: string | null
} | {
  type: dir,
  name: string,
  path?: string,
  sha: string,
  size?: number,
  url?: string,
  gitUrl?: string | null,
  htmlUrl?: string | null,
  downloadUrl?: string | null
} | {
  type: file | dir | submodule | symlink,
  size?: number,
  name: string,
  path?: string,
  sha: string,
  url?: string,
  gitUrl?: string | null,
  htmlUrl?: string | null,
  downloadUrl?: string | null
}[]

list

repositories.list List repositories for the authenticated user Risk: read
await corsair.github.api.repositories.list({});
Input
NameTypeRequiredDescription
ownerstringNo
typeall | owner | public | private | memberNo
sortcreated | updated | pushed | full_nameNo
directionasc | descNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  id: number,
  nodeId?: string,
  name: string,
  fullName?: string,
  private?: boolean,
  htmlUrl?: string,
  description?: string | null,
  fork?: boolean,
  url?: string,
  createdAt?: date | null,
  updatedAt?: date | null,
  pushedAt?: date | null,
  defaultBranch?: string,
  language?: string | null,
  stargazersCount?: number,
  watchersCount?: number,
  forksCount?: number,
  openIssuesCount?: number,
  archived?: boolean,
  disabled?: boolean,
  owner?: {
    name?: string | null,
    email?: string | null,
    login: string,
    id: number,
    nodeId?: string,
    avatarUrl?: string,
    gravatarId?: string | null,
    url?: string,
    htmlUrl?: string,
    followersUrl?: string,
    followingUrl?: string,
    gistsUrl?: string,
    starredUrl?: string,
    subscriptionsUrl?: string,
    organizationsUrl?: string,
    reposUrl?: string,
    eventsUrl?: string,
    receivedEventsUrl?: string,
    type?: string,
    siteAdmin?: boolean,
    starredAt?: date | null
  }
}[]

listBranches

repositories.listBranches List branches in a repository Risk: read
await corsair.github.api.repositories.listBranches({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
protectedbooleanNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  name: string,
  commit: {
    sha: string,
    url: string
  },
  protected: boolean
}[]

listCommits

repositories.listCommits List commits in a repository Risk: read
await corsair.github.api.repositories.listCommits({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
shastringNo
pathstringNo
authorstringNo
committerstringNo
sincestringNo
untilstringNo
perPagenumberNo
pagenumberNo
Output: object[]
{
  url?: string,
  sha: string,
  nodeId?: string,
  htmlUrl?: string,
  commentsUrl?: string,
  commit: {
    url?: string,
    author?: {
      name: string,
      email: string,
      date?: date | null
    } | null,
    committer?: {
      name: string,
      email: string,
      date?: date | null
    } | null,
    message: string,
    commentCount?: number,
    tree?: {
      sha: string,
      url?: string
    }
  },
  author?: {
    login: string,
    id: number
  } | null,
  committer?: {
    login: string,
    id: number
  } | null,
  parents?: {
    sha: string,
    url?: string,
    htmlUrl?: string
  }[]
}[]

Workflows

get

workflows.get Get a specific workflow Risk: read
await corsair.github.api.workflows.get({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
workflowIdnumber | stringYes
Output
NameTypeRequiredDescription
idnumberYes
nodeIdstringNo
namestringYes
pathstringYes
stateactive | deleted | disabled_fork | disabled_inactivity | disabled_manuallyYes
createdAtdateNo
updatedAtdateNo
urlstringNo
htmlUrlstringNo
badgeUrlstringNo
deletedAtdateNo

list

workflows.list List workflows in a repository Risk: read
await corsair.github.api.workflows.list({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
perPagenumberNo
pagenumberNo
Output
NameTypeRequiredDescription
totalCountnumberNo
total_countnumberNo
workflowsobject[]No
{
  id: number,
  nodeId?: string,
  name: string,
  path: string,
  state: active | deleted | disabled_fork | disabled_inactivity | disabled_manually,
  createdAt?: date | null,
  updatedAt?: date | null,
  url?: string,
  htmlUrl?: string,
  badgeUrl?: string,
  deletedAt?: date | null
}[]

listRuns

workflows.listRuns List workflow runs Risk: read
await corsair.github.api.workflows.listRuns({});
Input
NameTypeRequiredDescription
ownerstringYes
repostringYes
actorstringNo
branchstringNo
eventstringNo
statuscompleted | action_required | cancelled | failure | neutral | skipped | stale | success | timed_out | in_progress | queued | requested | waiting | pendingNo
perPagenumberNo
pagenumberNo
createdstringNo
excludePullRequestsbooleanNo
checkSuiteIdnumberNo
headShastringNo
Output
NameTypeRequiredDescription
totalCountnumberNo
total_countnumberNo
workflowRunsobject[]No
workflow_runsobject[]No
{
  id: number,
  nodeId?: string,
  name?: string | null,
  headBranch?: string | null,
  headSha?: string,
  path?: string,
  runNumber?: number,
  runAttempt?: number,
  event?: string,
  status?: string | null,
  conclusion?: string | null,
  workflowId?: number,
  url?: string,
  htmlUrl?: string,
  createdAt?: date | null,
  updatedAt?: date | null,
  displayTitle?: string
}[]
{
  id: number,
  nodeId?: string,
  name?: string | null,
  headBranch?: string | null,
  headSha?: string,
  path?: string,
  runNumber?: number,
  runAttempt?: number,
  event?: string,
  status?: string | null,
  conclusion?: string | null,
  workflowId?: number,
  url?: string,
  htmlUrl?: string,
  createdAt?: date | null,
  updatedAt?: date | null,
  displayTitle?: string
}[]