GitHub

App · Code Repositories · 60 actions · 7 triggers

Manage GitHub branches, issues, pull requests, tags and releases with a personal access token: merge pull requests, ask for reviews, tag a release, run GitHub Actions workflows, and start workflows on new issues, pull requests, commits, releases and comments.

Triggers

Start a workflow when something happens in GitHub. See how triggers work.

New pull request

Runs when a pull request is opened in a GitHub repository.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
base

Event fields

What a run starts with. Later steps read each field with an @ reference.

numbernumber
titletext
statetext
html_urltext
headtext
basetext
drafttrue/false
usertext
created_attext
updated_attext

Updated pull request

Runs when a pull request in a GitHub repository is updated.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
base

Event fields

What a run starts with. Later steps read each field with an @ reference.

numbernumber
titletext
statetext
html_urltext
headtext
basetext
drafttrue/false
usertext
created_attext
updated_attext

New issue

Runs when an issue is opened in a GitHub repository.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
label

Event fields

What a run starts with. Later steps read each field with an @ reference.

numbernumber
titletext
statetext
html_urltext
bodytext
usertext
labelslist
assigneeslist
created_attext
updated_attext

Updated issue

Runs when an issue in a GitHub repository is updated.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
label

Event fields

What a run starts with. Later steps read each field with an @ reference.

numbernumber
titletext
statetext
html_urltext
bodytext
usertext
labelslist
assigneeslist
created_attext
updated_attext

New push to branch

Runs for each new commit pushed to a branch of a GitHub repository.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
branch

Event fields

What a run starts with. Later steps read each field with an @ reference.

shatext
messagetext
authortext
branchtext
html_urltext
committed_attext

New release

Runs when a release is created in a GitHub repository.

Filters

Narrow which events start a run.

ownerRequired
repoRequired

Event fields

What a run starts with. Later steps read each field with an @ reference.

idnumber
tag_nametext
nametext
bodytext
drafttrue/false
prereleasetrue/false
html_urltext
authortext
published_attext

New review request

Runs when someone is asked to review a pull request in a GitHub repository.

Filters

Narrow which events start a run.

ownerRequired
repoRequired
reviewer

Event fields

What a run starts with. Later steps read each field with an @ reference.

numbernumber
titletext
statetext
html_urltext
headtext
basetext
drafttrue/false
usertext
created_attext
updated_attext
reviewertext

Actions

ActionWhat it does
Add label to issueAdd one or more labels to an issue, keeping the labels it already has.
Cancel workflow runStop a GitHub Actions run that's waiting or running.
Close pull requestClose a pull request without merging it.
Compare commitsSee what one branch, tag or commit has that another doesn't: its commits, newest first, how many files and lines changed, and a link to the comparison on GitHub.
Create branchCreate a new branch in a repository.
Create commentAdd a comment to an issue or pull request.
Create issueCreate a new issue in a repository.
Create or update fileSave a text file in a repository as one commit: a new file, or new text for one that's there.
Create pull requestOpen a new pull request to merge one branch into another.
Create releasePublish a release on GitHub from a tag, with a title and notes.
Create tagTag a commit, as git tag and git push would.
Delete branchDelete a branch from a repository.
Delete fileDelete a file from a repository in one commit, with the commit message you give.
Delete issuePermanently delete an issue.
Delete releaseDelete the release made from a tag.
Delete tagDelete a tag.
Find commitsList a branch's commits, newest first: each one's title, full message, author, date, link and, for a squash-merged pull request, its number.
Find issuesList a repository's issues, oldest first: the open ones, the closed ones or all, optionally only those with a label, or only those created before a day (to find what has been waiting longest).
Find my issuesList issues across every repository the token can see that are assigned to you, that you opened or that mention you, most recently updated first.
Find pull requestsList a repository's pull requests, newest activity first: the open ones, the closed ones, or only those that were merged.
Find releasesList a repository's releases, newest first, drafts and pre-releases included, with each one's tag, notes and link.
Find tagsList a repository's tags, newest first, with the commit each one points at.
Find workflow runsList GitHub Actions runs, newest first, with whether they have all finished and all passed.
Get branchGet details of a specific branch, including its latest commit SHA.
Get commitGet one commit: its message, author and date, how many lines it added and removed, and the files it changed (up to 300).
Get community profileGet GitHub's community health check for a repository: a score out of 100, and which of a README, license, contributing guide, code of conduct and issue and pull request templates it has.
Get file contentsRead a file in a repository: its text, size and link.
Get issueGet details of a specific issue.
Get organizationGet the public profile details of a GitHub organization.
Get pull requestGet details of a specific pull request.
Get releaseGet a release: its title, notes, link and when it was published.
Get repositoryGet a repository's details: its description, star, fork and open issue counts, main language, license, default branch and when it was last pushed to.
Get repository licenseGet the license a repository is published under, such as MIT, with the license file's text.
Get reviewGet one review on a pull request: its verdict, comment and who wrote it.
Get userGet the public profile details of a GitHub user.
Get workflowGet one GitHub Actions workflow: its name, file and whether it's turned on.
Get workflow runGet one GitHub Actions run and its jobs, so a failed run says which job failed.
Invite to organizationInvite someone to a GitHub organization by email: GitHub emails them an invitation to join.
List a user's repositoriesList the repositories a GitHub user owns: their public ones, or, with the username left blank, your own.
List filesList the files and folders in a folder of a repository, with each one's size and link.
List organization membersList the people in a GitHub organization.
List organization repositoriesList an organization's repositories that the token can see.
List popular pagesList the ten most viewed pages of a repository on GitHub over the last 14 days, with views and unique visitors.
List reviewsList the reviews on a pull request, oldest first, with each one's verdict, comment and who wrote it.
List top referrersList the ten sites that sent the most visitors to a repository over the last 14 days, such as google.com.
List workflowsList a repository's GitHub Actions workflows and whether each is turned on.
Lock issueLock an issue's conversation so only repository collaborators can comment on it.
Merge pull requestMerge an open pull request into its target branch, as a merge commit, a squash or a rebase.
Re-run workflow runRun a finished GitHub Actions run again, all of it or only the jobs that failed.
Remove label from issueRemove one label from an issue, leaving its other labels alone.
Request reviewersAsk people or teams to review a pull request.
Run workflowStart a GitHub Actions workflow that can be run by hand (its file has a workflow_dispatch trigger), with any inputs it takes.
Submit reviewApprove a pull request, request changes to it, or leave a review comment, posted at once under your name.
Turn off workflowTurn a GitHub Actions workflow off: nothing starts it until it's turned on again.
Turn on workflowTurn a GitHub Actions workflow back on, so pushes, schedules and its other triggers start it again.
Unlock issueUnlock an issue's conversation so anyone can comment again.
Update issueUpdate an existing issue.
Update pull requestChange a pull request's title, description or target branch, or close or reopen it.
Update releaseChange a release found by its tag: its title, notes or tag, or publish a draft or mark it a pre-release.
Update reviewChange the comment of a review on a pull request.

Add label to issue

Add one or more labels to an issue, keeping the labels it already has.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to act on.
LabelslabelstextRequired
The labels to add. Pick one, or enter several separated by commas.

Outputs

addedlist
issue_numbernumber
labelslist
Example output
{
  "added": [
    "bug"
  ],
  "issue_number": 42,
  "labels": [
    "bug",
    "needs-triage"
  ]
}

Cancel workflow run

Stop a GitHub Actions run that's waiting or running. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Runrun_idnumberRequired
The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.

Outputs

cancelledtrue/false
html_urltext
run_idnumber
Example output
{
  "cancelled": true,
  "html_url": "https://github.com/octocat/hello-world/actions/runs/30433642",
  "run_id": 30433642
}

Close pull request

Close a pull request without merging it. GitHub does not allow pull requests to be deleted, so closing is the way to shut one down.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The open pull request to act on.

Outputs

html_urltext
idnumber
numbernumber
statetext
titletext
Example output
{
  "base": "main",
  "draft": false,
  "head": "feature/new-widget",
  "html_url": "https://github.com/octocat/hello-world/pull/7",
  "id": 111,
  "merged": false,
  "number": 7,
  "state": "closed",
  "title": "Add new widget"
}

Compare commits

See what one branch, tag or commit has that another doesn't: its commits, newest first, how many files and lines changed, and a link to the comparison on GitHub. Use it for what's in a release since the last one.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
FrombasetextRequired
The older branch, tag or commit, such as the last release's tag.
ToheadtextRequired
The newer branch, tag or commit, such as main.

Outputs

additionsnumber
ahead_bynumber
behind_bynumber
commitslist
Newest first, at most 250
commits_truncatedtrue/false
Whether there are more commits than the 250 listed
deletionsnumber
files_changednumber
html_urltext
statustext
ahead, behind, diverged or identical
total_commitsnumber
Every commit To has that From doesn't
Example output
{
  "additions": 12,
  "ahead_by": 1,
  "behind_by": 0,
  "commits": [
    {
      "author": "octocat",
      "author_name": "The Octocat",
      "date": "2026-11-26T16:58:00Z",
      "html_url": "https://github.com/octocat/hello-world/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
      "message": "Fix the widget resize (#42)\n\nThe widget now redraws after a resize.",
      "pull_request_number": 42,
      "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
      "short_sha": "7638417",
      "title": "Fix the widget resize (#42)"
    }
  ],
  "commits_truncated": false,
  "deletions": 3,
  "files_changed": 1,
  "html_url": "https://github.com/octocat/hello-world/compare/v1.2.0...main",
  "status": "ahead",
  "total_commits": 1
}

Create branch

Create a new branch in a repository. Points the new branch at the tip of an existing branch (defaults to the repository's default branch) unless you supply a specific commit SHA.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
New branch namebranchtextRequired
The name for the new branch (without the 'refs/heads/' prefix).
Source branchfrom_branchtext
The existing branch to base the new one on. Defaults to the repository's default branch when not set.
Source commit SHAshatext
A specific commit SHA to point the new branch at. Takes precedence over the source branch when provided.

Outputs

nametext
reftext
shatext
Example output
{
  "name": "feature/new-widget",
  "ref": "refs/heads/feature/new-widget",
  "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd"
}

Create comment

Add a comment to an issue or pull request. Use the issue or pull request number, since both share the same numbering.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to comment on. To comment on a pull request, reference its number from an earlier step.
CommentbodytextRequired
The text of the comment.

Outputs

bodytext
html_urltext
idnumber
userobject
Example output
{
  "body": "This is a comment.",
  "html_url": "https://github.com/octocat/hello-world/issues/42#issuecomment-456",
  "id": 456,
  "user": {
    "login": "commenter"
  }
}

Create issue

Create a new issue in a repository.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TitletitletextRequired
The title of the new issue.
Descriptionbodytext
The main text of the issue.
Labelslabelslist
Labels to add to the issue.
Assigneesassigneeslist
The people to assign to the issue.

Outputs

html_urltext
idnumber
numbernumber
statetext
titletext
Example output
{
  "html_url": "https://github.com/octocat/hello-world/issues/43",
  "id": 123,
  "number": 43,
  "state": "open",
  "title": "New Feature Request"
}

Create or update file

Save a text file in a repository as one commit: a new file, or new text for one that's there. Files under .github/workflows also need the token's Workflows permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
File pathpathtextRequired
Where to save it in the repository, such as docs/CHANGELOG.md.
TextcontenttextRequired
The file's whole text. It replaces what's there.
Commit messagemessagetextRequired
What the change is, as it shows in the history.
Branchbranchtext
The branch to commit to. Leave blank for the repository's default branch.

Outputs

commit_shatext
commit_urltext
createdtrue/false
Whether the file was new.
html_urltext
nametext
pathtext
shatext
sizenumber
Example output
{
  "commit_sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "commit_url": "https://github.com/octocat/hello-world/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
  "created": false,
  "html_url": "https://github.com/octocat/hello-world/blob/main/docs/CHANGELOG.md",
  "name": "CHANGELOG.md",
  "path": "docs/CHANGELOG.md",
  "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3",
  "size": 120
}

Create pull request

Open a new pull request to merge one branch into another.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TitletitletextRequired
The title of the pull request.
Source branch (head)headtextRequired
The branch with your changes that you want to merge in. For a cross-fork request, reference a 'username:branch' value from an earlier step.
Target branch (base)basetextRequired
The branch you want your changes merged into.
Descriptionbodytext
The main text describing the pull request.
Create as draftdrafttrue/false
Open the pull request as a draft that isn't ready to merge.Default: false.

Outputs

basetext
drafttrue/false
headtext
html_urltext
idnumber
mergedtrue/false
numbernumber
statetext
titletext
Example output
{
  "base": "main",
  "draft": false,
  "head": "feature/new-widget",
  "html_url": "https://github.com/octocat/hello-world/pull/7",
  "id": 111,
  "merged": false,
  "number": 7,
  "state": "open",
  "title": "Add new widget"
}

Create release

Publish a release on GitHub from a tag, with a title and notes. A tag that isn't there yet is made at the commit you choose. GitHub can write the notes from the pull requests since the last release.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TagtagtextRequired
The tag to release, such as v1.3.0.
Titlenametext
The release's title. Leave blank to use the tag.
Notesnotestext
What's in the release, in Markdown.
Have GitHub write the notesgenerate_notestrue/false
List the pull requests merged since the last release. Any notes you give come first.Default: false.
Make the tag attargettext
Only used when the tag isn't there yet: the branch or commit to make it at. Leave blank for the default branch.
Pre-releaseprereleasetrue/false
Mark it as not ready for everyone yet.Default: false.
Save as a draftdrafttrue/false
Save it unpublished, for a person to publish on GitHub.Default: false.

Outputs

authortext
created_attext
drafttrue/false
html_urltext
idnumber
nametext
notestext
prereleasetrue/false
published_attext
Empty for a draft
tagtext
Example output
{
  "author": "octocat",
  "created_at": "2026-11-26T17:04:00Z",
  "draft": false,
  "html_url": "https://github.com/octocat/hello-world/releases/tag/v1.3.0",
  "id": 1001,
  "name": "v1.3.0",
  "notes": "Widgets now redraw after a resize.",
  "prerelease": false,
  "published_at": "2026-11-26T17:05:00Z",
  "tag": "v1.3.0"
}

Create tag

Tag a commit, as git tag and git push would. Any GitHub Actions workflow set to run on new tags starts, so this is how a workflow ships a release that deploys on a tag.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Tag nametagtextRequired
The new tag's name, such as v1.3.0. A tag that's already there isn't moved.
Commit to tagtargettext
A branch, tag or commit SHA. Leave blank for the newest commit on the repository's default branch.
Messagemessagetext
A note kept with the tag. Leave blank to use the tag's name.

Outputs

html_urltext
nametext
shatext
The commit it tags
tag_shatext
Example output
{
  "html_url": "https://github.com/octocat/hello-world/tree/v1.3.0",
  "name": "v1.3.0",
  "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "tag_sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac"
}

Delete branch

Delete a branch from a repository.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Branch namebranchtextRequired
The name of the branch to delete (without the 'refs/heads/' prefix).

Outputs

branchtext
deletedtrue/false
Example output
{
  "branch": "feature/old-widget",
  "deleted": true
}

Delete file

Delete a file from a repository in one commit, with the commit message you give. It stays in the repository's history.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
File pathpathtextRequired
The file to delete, such as docs/old-notes.md.
Commit messagemessagetextRequired
What the commit says, such as Remove old notes.
Branchbranchtext
The branch to delete it on. Leave blank for the default branch.

Outputs

commit_shatext
The commit that deleted it.
commit_urltext
That commit on GitHub.
deletedtrue/false
True once it's gone.
pathtext
The file deleted.
Example output
{
  "commit_sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "commit_url": "https://github.com/octocat/hello-world/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
  "deleted": true,
  "path": "docs/old-notes.md"
}

Delete issue

Permanently delete an issue. GitHub only allows this through its GraphQL API, and the connected account must be able to delete issues in the repository (an organization owner, or a repository admin or maintainer).

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to delete.

Outputs

deletedtrue/false
issue_numbernumber
Example output
{
  "deleted": true,
  "issue_number": 42
}

Delete release

Delete the release made from a tag. The tag stays: delete it with Delete tag.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TagtagtextRequired
The tag's name, such as v1.3.0.

Outputs

deletedtrue/false
tagtext
Example output
{
  "deleted": true,
  "tag": "v1.3.0"
}

Delete tag

Delete a tag. The commit stays; a release made from the tag stays too, as a draft.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TagtagtextRequired
The tag's name, such as v1.3.0.

Outputs

deletedtrue/false
tagtext
Example output
{
  "deleted": true,
  "tag": "v1.3.0"
}

Find commits

List a branch's commits, newest first: each one's title, full message, author, date, link and, for a squash-merged pull request, its number. Keep it to commits since a day, to one file or folder, or to one author.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Branchbranchtext
The branch (or tag) to list. Leave blank for the repository's default branch.
On or aftersincedate
Only commits made on or after this day.
File or folderpathtext
Only commits that changed this path, such as docs/.
Authorauthortext
Only commits by this GitHub username or email address.
How manylimitnumber
The most commits to return, up to 100. The default is 30.Default: 30.

Outputs

commitslist
countnumber
Example output
{
  "commits": [
    {
      "author": "octocat",
      "author_name": "The Octocat",
      "date": "2026-11-26T16:58:00Z",
      "html_url": "https://github.com/octocat/hello-world/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
      "message": "Fix the widget resize (#42)\n\nThe widget now redraws after a resize.",
      "pull_request_number": 42,
      "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
      "short_sha": "7638417",
      "title": "Fix the widget resize (#42)"
    }
  ],
  "count": 1
}

Find issues

List a repository's issues, oldest first: the open ones, the closed ones or all, optionally only those with a label, or only those created before a day (to find what has been waiting longest). Pull requests are not included. Each one comes back with its title, link, author, assignee, labels and when it was created.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Which issuesstatetext
Leave on Open to see issues still waiting.One of: open, closed, all. Default: open.
Labellabeltext
Only issues with this label, such as bug. Leave blank for any.
Created beforecreated_beforedate
Only issues created before this day. Leave blank for no date limit.
How manylimitnumber
The most issues to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
issueslist
Example output
{
  "count": 1,
  "issues": [
    {
      "assignee": "",
      "author": "octocat",
      "created_at": "2026-10-01T09:00:00Z",
      "html_url": "https://github.com/octocat/hello-world/issues/12",
      "labels": [
        "bug"
      ],
      "number": 12,
      "state": "open",
      "title": "Export fails for large files"
    }
  ]
}

Find my issues

List issues across every repository the token can see that are assigned to you, that you opened or that mention you, most recently updated first. Pull requests are left out.

Inputs

Issuesinvolvementtext
Which issues of yours. The default is ones assigned to you.One of: assigned (Assigned to me), created (Opened by me), mentioned (Mentioning me), subscribed (I'm watching), all (All I can see). Default: assigned.
Statestatetext
Open, closed or all issues. The default is open.One of: open, closed, all. Default: open.
Labelslabelstext
Only issues with all of these labels, separated by commas, such as bug,urgent.
How manylimitnumber
The most issues to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
issueslist
The issues, most recently updated first.
Example output
{
  "count": 1,
  "issues": [
    {
      "assignees": [
        "octocat"
      ],
      "body": "The widget stops responding after a resize.",
      "html_url": "https://github.com/octocat/hello-world/issues/42",
      "id": 1001,
      "labels": [
        "bug"
      ],
      "locked": false,
      "number": 42,
      "repository": "octocat/hello-world",
      "state": "open",
      "title": "Fix the widget",
      "updated_at": "2026-11-26T17:04:00Z"
    }
  ]
}

Find pull requests

List a repository's pull requests, newest activity first: the open ones, the closed ones, or only those that were merged. Give a date to see just what was merged on or after that day (for merged), or changed on or after it (for the other choices). Or ask only for those nobody has touched for some days, longest-quiet first. Each one comes back with its title, link, author, whether it is a draft, how many days since it last changed and the time it was merged.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Which pull requestsstatetext
Leave on Open to see pull requests still waiting.One of: open, merged, closed (Closed (merged or not)), all. Default: open.
On or aftersincedate
Only pull requests from this day on: merged on or after it when Merged is chosen, otherwise changed on or after it. Leave blank for no date limit.
In the last dayssince_daysnumber
Beta. The same as On or after, counted back from today: 7 for 'merged in the last week'. Needs no date step. A date in On or after wins.
Untouched for at least (days)quiet_daysnumber
Only pull requests nobody has commented on, pushed to or reviewed for at least this many days, longest-quiet first. Use it for 'waiting more than 2 days'. Leave blank for all.
How manylimitnumber
The most pull requests to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
pull_requestslist
Example output
{
  "count": 1,
  "pull_requests": [
    {
      "author": "octocat",
      "created_at": "2026-10-20T09:00:00Z",
      "days_waiting": 3,
      "draft": false,
      "html_url": "https://github.com/octocat/hello-world/pull/7",
      "labels": [
        "enhancement"
      ],
      "merged_at": "2026-10-21T15:30:00Z",
      "number": 7,
      "state": "closed",
      "title": "Add new widget",
      "updated_at": "2026-10-21T15:30:00Z"
    }
  ]
}

Find releases

List a repository's releases, newest first, drafts and pre-releases included, with each one's tag, notes and link.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
How manylimitnumber
The most releases to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
releaseslist
The releases, newest first.
Example output
{
  "count": 1,
  "releases": [
    {
      "author": "octocat",
      "created_at": "2026-11-26T17:04:00Z",
      "draft": false,
      "html_url": "https://github.com/octocat/hello-world/releases/tag/v1.3.0",
      "id": 1001,
      "name": "v1.3.0",
      "notes": "Widgets now redraw after a resize.",
      "prerelease": false,
      "published_at": "2026-11-26T17:05:00Z",
      "tag": "v1.3.0"
    }
  ]
}

Find tags

List a repository's tags, newest first, with the commit each one points at. Give the start of a name to keep to one kind, such as v1. or prod-; the first one is the latest.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Name starts withstarts_withtext
Only tags whose name starts with this, such as prod-.
How manylimitnumber
The most tags to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
tagslist
Example output
{
  "count": 1,
  "tags": [
    {
      "date": "2026-11-26T17:04:00Z",
      "html_url": "https://github.com/octocat/hello-world/tree/v1.3.0",
      "name": "v1.3.0",
      "sha": "7638417db6d59f3c431d3e1f261cc637155684cd"
    }
  ]
}

Find workflow runs

List GitHub Actions runs, newest first, with whether they have all finished and all passed. Keep it to one workflow, one commit or tag, one branch or one status. To wait for a deploy, repeat it until All finished is true. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Workflowworkflowtext
Only this workflow's runs. Leave blank for every workflow.
Commit or tagcommittext
Only runs for this commit: a SHA, or a tag or branch to use the commit it points at.
Branchbranchtext
Only runs started from this branch.
Statusstatustext
Only runs in this state. Leave blank for all.One of: queued (Waiting to start), in_progress (Running), completed (Finished), success (Passed), failure (Failed), cancelled.
How manylimitnumber
The most runs to return, up to 100. The default is 30.Default: 30.

Outputs

all_finishedtrue/false
Whether there are runs and every one has finished
all_passedtrue/false
Whether there are runs and every one finished without failing (passed, skipped or neutral)
countnumber
runslist
Example output
{
  "all_finished": true,
  "all_passed": true,
  "count": 1,
  "runs": [
    {
      "actor": "octocat",
      "branch": "v1.3.0",
      "conclusion": "success",
      "created_at": "2026-11-26T17:04:10Z",
      "event": "push",
      "head_sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
      "html_url": "https://github.com/octocat/hello-world/actions/runs/30433642",
      "id": 30433642,
      "name": "Deploy",
      "run_number": 562,
      "status": "completed",
      "updated_at": "2026-11-26T17:09:42Z"
    }
  ]
}

Get branch

Get details of a specific branch, including its latest commit SHA.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Branch namebranchtextRequired
The name of the branch to look up.

Outputs

html_urltext
nametext
protectedtrue/false
shatext
Example output
{
  "html_url": "https://github.com/octocat/hello-world/tree/main",
  "name": "main",
  "protected": true,
  "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd"
}

Get commit

Get one commit: its message, author and date, how many lines it added and removed, and the files it changed (up to 300).

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
CommitreftextRequired
A commit SHA, or a branch or tag to get the commit it points at.

Outputs

additionsnumber
authortext
The author's GitHub username, or their name without one
author_nametext
datetext
deletionsnumber
fileslist
html_urltext
messagetext
pull_request_numbernumber
The squash-merged pull request it came from, if any
shatext
short_shatext
titletext
The message's first line
Example output
{
  "additions": 12,
  "author": "octocat",
  "author_name": "The Octocat",
  "date": "2026-11-26T16:58:00Z",
  "deletions": 3,
  "files": [
    {
      "additions": 12,
      "deletions": 3,
      "filename": "src/widget.py",
      "status": "modified"
    }
  ],
  "html_url": "https://github.com/octocat/hello-world/commit/7638417db6d59f3c431d3e1f261cc637155684cd",
  "message": "Fix the widget resize (#42)\n\nThe widget now redraws after a resize.",
  "pull_request_number": 42,
  "sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "short_sha": "7638417",
  "title": "Fix the widget resize (#42)"
}

Get community profile

Get GitHub's community health check for a repository: a score out of 100, and which of a README, license, contributing guide, code of conduct and issue and pull request templates it has.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

descriptiontext
The repository's description.
documentationtext
Its documentation site, if it has one.
hasobject
For readme, license, contributing, code_of_conduct, issue_template and pull_request_template: whether the repository has it.
health_percentagenumber
GitHub's score, 0 to 100.
missinglist
The ones it doesn't have.
updated_attext
When GitHub last checked.
Example output
{
  "description": "My first repository on GitHub.",
  "documentation": "",
  "has": {
    "code_of_conduct": false,
    "contributing": true,
    "issue_template": true,
    "license": true,
    "pull_request_template": false,
    "readme": true
  },
  "health_percentage": 71,
  "missing": [
    "code_of_conduct",
    "pull_request_template"
  ],
  "updated_at": "2026-11-26T17:04:00Z"
}

Get file contents

Read a file in a repository: its text, size and link. Text is given for files up to 1 MB.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
File pathpathtextRequired
The file's path in the repository, such as docs/README.md.
Branchreftext
The branch (or tag, or commit) to read it from. Leave blank for the repository's default branch.

Outputs

binarytrue/false
Whether the file isn't text, such as an image.
html_urltext
nametext
pathtext
shatext
The version of the file GitHub has now.
sizenumber
Size in bytes.
texttext
The file's text. Empty for a file over 1 MB or one that isn't text.
too_largetrue/false
Whether the file is over 1 MB, so its text isn't given.
Example output
{
  "binary": false,
  "html_url": "https://github.com/octocat/hello-world/blob/main/docs/README.md",
  "name": "README.md",
  "path": "docs/README.md",
  "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
  "size": 31,
  "text": "# Hello World\n\nWelcome aboard.\n",
  "too_large": false
}

Get issue

Get details of a specific issue.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to look up.

Outputs

bodytext
html_urltext
idnumber
numbernumber
statetext
titletext
Example output
{
  "body": "Description of the bug.",
  "html_url": "https://github.com/octocat/hello-world/issues/42",
  "id": 789,
  "number": 42,
  "state": "open",
  "title": "Bug in feature X"
}

Get organization

Get the public profile details of a GitHub organization.

Inputs

OrganizationorgtextRequired
The login (short name) of the organization.

Outputs

descriptiontext
html_urltext
idnumber
logintext
nametext
public_reposnumber
Example output
{
  "description": "How people build software.",
  "html_url": "https://github.com/github",
  "id": 9919,
  "login": "github",
  "name": "GitHub",
  "public_repos": 484
}

Get pull request

Get details of a specific pull request.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The open pull request to act on.

Outputs

basetext
bodytext
drafttrue/false
headtext
html_urltext
idnumber
labelslist
Beta. The names of the pull request's labels, such as bug.
mergedtrue/false
numbernumber
statetext
titletext
Example output
{
  "base": "main",
  "body": "This pull request adds the new widget.",
  "draft": false,
  "head": "feature/new-widget",
  "html_url": "https://github.com/octocat/hello-world/pull/7",
  "id": 111,
  "labels": [
    "enhancement"
  ],
  "merged": false,
  "number": 7,
  "state": "open",
  "title": "Add new widget"
}

Get release

Get a release: its title, notes, link and when it was published. Leave the tag blank for the latest published release.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Tagtagtext
The release's tag, such as v1.3.0. Leave blank for the latest one that isn't a draft or pre-release.

Outputs

authortext
created_attext
drafttrue/false
html_urltext
idnumber
nametext
notestext
prereleasetrue/false
published_attext
Empty for a draft
tagtext
Example output
{
  "author": "octocat",
  "created_at": "2026-11-26T17:04:00Z",
  "draft": false,
  "html_url": "https://github.com/octocat/hello-world/releases/tag/v1.3.0",
  "id": 1001,
  "name": "v1.3.0",
  "notes": "Widgets now redraw after a resize.",
  "prerelease": false,
  "published_at": "2026-11-26T17:05:00Z",
  "tag": "v1.3.0"
}

Get repository

Get a repository's details: its description, star, fork and open issue counts, main language, license, default branch and when it was last pushed to. Use this for a repository's star count rather than calling GitHub's web address.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

archivedtrue/false
default_branchtext
descriptiontext
forks_countnumber
full_nametext
html_urltext
idnumber
languagetext
licensetext
nametext
open_issues_countnumber
privatetrue/false
pushed_attext
stargazers_countnumber
watchers_countnumber
Example output
{
  "archived": false,
  "default_branch": "main",
  "description": "My first repository on GitHub.",
  "forks_count": 9,
  "full_name": "octocat/hello-world",
  "html_url": "https://github.com/octocat/hello-world",
  "id": 1296269,
  "language": "Python",
  "license": "MIT License",
  "name": "hello-world",
  "open_issues_count": 3,
  "private": false,
  "pushed_at": "2026-11-01T12:00:00Z",
  "stargazers_count": 80,
  "watchers_count": 5
}

Get repository license

Get the license a repository is published under, such as MIT, with the license file's text.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

html_urltext
The license file on GitHub.
keytext
GitHub's short name for it, such as mit.
nametext
The license's name, such as MIT License.
pathtext
The license file, such as LICENSE.
spdx_idtext
Its standard short name, such as MIT.
texttext
The license file's text.
Example output
{
  "html_url": "https://github.com/octocat/hello-world/blob/main/LICENSE",
  "key": "mit",
  "name": "MIT License",
  "path": "LICENSE",
  "spdx_id": "MIT",
  "text": "MIT License\n\nCopyright (c) 2026 The Octocat\n"
}

Get review

Get one review on a pull request: its verdict, comment and who wrote it.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The pull request's number.
Review IDreview_idnumberRequired
The review's ID, from List reviews or Submit review.

Outputs

bodytext
The review's comment.
commit_idtext
The commit it reviewed.
html_urltext
The review on GitHub.
idnumber
The review's ID.
numbernumber
The pull request's number.
statetext
APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED or PENDING.
submitted_attext
When it was submitted.
usertext
Who wrote it.
Example output
{
  "body": "Looks good to me.",
  "commit_id": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "html_url": "https://github.com/octocat/hello-world/pull/42#pullrequestreview-80",
  "id": 80,
  "number": 42,
  "state": "APPROVED",
  "submitted_at": "2026-11-26T17:04:00Z",
  "user": "octocat"
}

Get user

Get the public profile details of a GitHub user. Leave the username blank to fetch the account the token belongs to.

Inputs

Usernameusernametext
The GitHub username to look up. Leave blank for the connected (authenticated) account.

Outputs

html_urltext
idnumber
logintext
nametext
public_reposnumber
typetext
Example output
{
  "html_url": "https://github.com/octocat",
  "id": 583231,
  "login": "octocat",
  "name": "The Octocat",
  "public_repos": 8,
  "type": "User"
}

Get workflow

Get one GitHub Actions workflow: its name, file and whether it's turned on. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
WorkflowworkflowtextRequired
The GitHub Actions workflow, or its file's name, such as deploy.yml.

Outputs

badge_urltext
Its status badge image.
created_attext
When it was added.
html_urltext
The workflow's file on GitHub.
idnumber
The workflow's ID.
nametext
The workflow's name.
pathtext
Its file, such as .github/workflows/deploy.yml.
statetext
active, disabled_manually, disabled_inactivity, disabled_fork or deleted.
updated_attext
When it last changed.
Example output
{
  "badge_url": "https://github.com/octocat/hello-world/workflows/Deploy/badge.svg",
  "created_at": "2026-01-08T23:48:37Z",
  "html_url": "https://github.com/octocat/hello-world/blob/main/.github/workflows/deploy.yml",
  "id": 161335,
  "name": "Deploy",
  "path": ".github/workflows/deploy.yml",
  "state": "active",
  "updated_at": "2026-11-26T17:04:00Z"
}

Get workflow run

Get one GitHub Actions run and its jobs, so a failed run says which job failed. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Runrun_idnumberRequired
The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.

Outputs

actortext
branchtext
conclusiontext
Once finished: success, failure, cancelled, skipped or neutral
created_attext
eventtext
What started it, such as push or workflow_dispatch
head_shatext
The commit it ran on
html_urltext
idnumber
jobslist
nametext
The workflow's name
run_numbernumber
statustext
queued, in_progress or completed
updated_attext
Example output
{
  "actor": "octocat",
  "branch": "v1.3.0",
  "conclusion": "success",
  "created_at": "2026-11-26T17:04:10Z",
  "event": "push",
  "head_sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "html_url": "https://github.com/octocat/hello-world/actions/runs/30433642",
  "id": 30433642,
  "jobs": [
    {
      "conclusion": "success",
      "html_url": "https://github.com/octocat/hello-world/actions/runs/30433642/job/1",
      "name": "deploy",
      "status": "completed"
    }
  ],
  "name": "Deploy",
  "run_number": 562,
  "status": "completed",
  "updated_at": "2026-11-26T17:09:42Z"
}

Invite to organization

Invite someone to a GitHub organization by email: GitHub emails them an invitation to join. Only an organization owner can invite. Needs the token's organization Members (read and write) permission, which tokens made before this step was added don't have.

Inputs

OrganizationorgtextRequired
The login (short name) of the organization, such as github.
EmailemailtextRequired
The email address to send the invitation to.
Roleroletext
What they join as. The default is member.One of: direct_member (Member), admin (Owner), billing_manager (Billing manager). Default: direct_member.

Outputs

created_attext
When it was sent.
emailtext
Who it was sent to.
idnumber
The invitation's ID.
invitertext
Who sent it.
roletext
direct_member, admin or billing_manager.
Example output
{
  "created_at": "2026-11-26T17:04:00Z",
  "email": "sam@example.com",
  "id": 1,
  "inviter": "octocat",
  "role": "direct_member"
}

List a user's repositories

List the repositories a GitHub user owns: their public ones, or, with the username left blank, your own.

Inputs

Usernameusernametext
The user's GitHub username. Leave blank for your own repositories.
Ordersorttext
How to order the repositories. The default is by name.One of: full_name (By name), created (Newest first), updated (Recently updated first), pushed (Recently pushed to first). Default: full_name.
How manylimitnumber
The most repositories to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
repositorieslist
The repositories.
Example output
{
  "count": 1,
  "repositories": [
    {
      "archived": false,
      "created_at": "2011-01-26T19:01:12Z",
      "default_branch": "main",
      "description": "My first repository on GitHub.",
      "fork": false,
      "full_name": "octocat/hello-world",
      "html_url": "https://github.com/octocat/hello-world",
      "id": 1296269,
      "language": "Python",
      "name": "hello-world",
      "private": false,
      "pushed_at": "2026-11-26T17:04:00Z",
      "stargazers_count": 80
    }
  ]
}

List files

List the files and folders in a folder of a repository, with each one's size and link. Leave the folder blank for the top of the repository.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Folderpathtext
The folder to list, such as docs. Leave blank for the top.
Branch, tag or commitreftext
Where to read from. Leave blank for the default branch.

Outputs

countnumber
How many were listed.
fileslist
What's in the folder.
Example output
{
  "count": 1,
  "files": [
    {
      "download_url": "https://raw.githubusercontent.com/octocat/hello-world/main/docs/README.md",
      "html_url": "https://github.com/octocat/hello-world/blob/main/docs/README.md",
      "name": "README.md",
      "path": "docs/README.md",
      "sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
      "size": 5362,
      "type": "file"
    }
  ]
}

List organization members

List the people in a GitHub organization. A member of the organization sees everyone; anyone else sees only those who show their membership publicly. Needs the token's organization Members (read) permission, which tokens made before this step was added don't have.

Inputs

OrganizationorgtextRequired
The login (short name) of the organization, such as github.
Roleroletext
Only owners, or only members. The default is everyone.One of: all (Everyone), admin (Owners), member (Members). Default: all.
How manylimitnumber
The most members to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
memberslist
The members.
Example output
{
  "count": 1,
  "members": [
    {
      "html_url": "https://github.com/octocat",
      "id": 583231,
      "login": "octocat",
      "site_admin": false,
      "type": "User"
    }
  ]
}

List organization repositories

List an organization's repositories that the token can see.

Inputs

OrganizationorgtextRequired
The login (short name) of the organization, such as github.
Whichrepo_typetext
Which repositories to list. The default is all of them.One of: all, public, private, forks, sources (Not forks), member (Ones you're a member of). Default: all.
Ordersorttext
How to order the repositories. The default is by name.One of: full_name (By name), created (Newest first), updated (Recently updated first), pushed (Recently pushed to first). Default: full_name.
How manylimitnumber
The most repositories to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
repositorieslist
The repositories.
Example output
{
  "count": 1,
  "repositories": [
    {
      "archived": false,
      "created_at": "2011-01-26T19:01:12Z",
      "default_branch": "main",
      "description": "My first repository on GitHub.",
      "fork": false,
      "full_name": "octocat/hello-world",
      "html_url": "https://github.com/octocat/hello-world",
      "id": 1296269,
      "language": "Python",
      "name": "hello-world",
      "private": false,
      "pushed_at": "2026-11-26T17:04:00Z",
      "stargazers_count": 80
    }
  ]
}

List the ten most viewed pages of a repository on GitHub over the last 14 days, with views and unique visitors. Needs the token's Administration (read) permission, which tokens made before this step was added don't have.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

countnumber
How many were returned.
pathslist
The pages, most viewed first.
Example output
{
  "count": 1,
  "paths": [
    {
      "path": "/octocat/hello-world",
      "title": "octocat/hello-world: My first repository",
      "unique_visitors": 2225,
      "views": 3542
    }
  ]
}

List reviews

List the reviews on a pull request, oldest first, with each one's verdict, comment and who wrote it.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The pull request's number.
How manylimitnumber
The most reviews to return, up to 100. The default is 30.Default: 30.

Outputs

countnumber
How many were returned.
reviewslist
The reviews, oldest first.
Example output
{
  "count": 1,
  "reviews": [
    {
      "body": "Looks good to me.",
      "commit_id": "7638417db6d59f3c431d3e1f261cc637155684cd",
      "html_url": "https://github.com/octocat/hello-world/pull/42#pullrequestreview-80",
      "id": 80,
      "number": 42,
      "state": "APPROVED",
      "submitted_at": "2026-11-26T17:04:00Z",
      "user": "octocat"
    }
  ]
}

List top referrers

List the ten sites that sent the most visitors to a repository over the last 14 days, such as google.com. Needs the token's Administration (read) permission, which tokens made before this step was added don't have.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

countnumber
How many were returned.
referrerslist
The sites, most visitors first.
Example output
{
  "count": 1,
  "referrers": [
    {
      "referrer": "google.com",
      "unique_visitors": 3,
      "views": 4
    }
  ]
}

List workflows

List a repository's GitHub Actions workflows and whether each is turned on. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').

Outputs

countnumber
How many there are.
workflowslist
The workflows.
Example output
{
  "count": 1,
  "workflows": [
    {
      "badge_url": "https://github.com/octocat/hello-world/workflows/Deploy/badge.svg",
      "created_at": "2026-01-08T23:48:37Z",
      "html_url": "https://github.com/octocat/hello-world/blob/main/.github/workflows/deploy.yml",
      "id": 161335,
      "name": "Deploy",
      "path": ".github/workflows/deploy.yml",
      "state": "active",
      "updated_at": "2026-11-26T17:04:00Z"
    }
  ]
}

Lock issue

Lock an issue's conversation so only repository collaborators can comment on it.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to act on.
Reasonlock_reasontext
Why the conversation is being locked. Optional.One of: off-topic (Off topic), too heated, resolved, spam.

Outputs

issue_numbernumber
lock_reasontext
lockedtrue/false
Example output
{
  "issue_number": 42,
  "lock_reason": "resolved",
  "locked": true
}

Merge pull request

Merge an open pull request into its target branch, as a merge commit, a squash or a rebase. GitHub refuses one that's a draft, has conflicts, or is still waiting for required checks or reviews, and the step says so.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The open pull request to act on.
How to mergemerge_methodtext
A merge commit (the default), one squashed commit, or the commits rebased onto the target branch. The repository's settings decide which are allowed.One of: merge (Merge commit), squash (Squash and merge), rebase (Rebase and merge).
Commit titlecommit_titletext
The title of the merge or squashed commit. Leave blank for GitHub's usual one.
Commit messagecommit_messagetext
More detail for the commit. Leave blank for GitHub's usual one.

Outputs

mergedtrue/false
messagetext
numbernumber
shatext
Example output
{
  "merged": true,
  "message": "Pull Request successfully merged",
  "number": 7,
  "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
}

Re-run workflow run

Run a finished GitHub Actions run again, all of it or only the jobs that failed. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Runrun_idnumberRequired
The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.
Only the failed jobsonly_failedtrue/false
Run again only the jobs that failed, and what depends on them.Default: false.

Outputs

html_urltext
only_failedtrue/false
run_idnumber
Example output
{
  "html_url": "https://github.com/octocat/hello-world/actions/runs/30433642",
  "only_failed": false,
  "run_id": 30433642
}

Remove label from issue

Remove one label from an issue, leaving its other labels alone.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to act on.
LabellabeltextRequired
The label to remove from the issue.

Outputs

issue_numbernumber
labelslist
removedtext
Example output
{
  "issue_number": 42,
  "labels": [
    "bug"
  ],
  "removed": "needs-triage"
}

Request reviewers

Ask people or teams to review a pull request. Each person must be able to work on the repository, and the pull request's author can't be asked.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The open pull request to act on.
Reviewersreviewerslist
The people to ask for a review.
Teamsteam_reviewerslist
Teams in the repository's organization to ask for a review, by the name in their address (e.g. 'design').

Outputs

basetext
drafttrue/false
headtext
html_urltext
idnumber
mergedtrue/false
numbernumber
requested_reviewerslist
requested_teamslist
statetext
titletext
Example output
{
  "base": "main",
  "draft": false,
  "head": "feature/new-widget",
  "html_url": "https://github.com/octocat/hello-world/pull/7",
  "id": 111,
  "merged": false,
  "number": 7,
  "requested_reviewers": [
    "hubot"
  ],
  "requested_teams": [],
  "state": "open",
  "title": "Add new widget"
}

Run workflow

Start a GitHub Actions workflow that can be run by hand (its file has a workflow_dispatch trigger), with any inputs it takes. Find workflow runs finds the run once it starts. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
WorkflowworkflowtextRequired
The workflow to start, or its file's name, such as deploy.yml.
Branchbranchtext
The branch (or tag) to run it on. Leave blank for the default branch.
Inputsinputsobject
The workflow's inputs by name, such as {"environment": "staging"}. Leave blank if it takes none.

Outputs

branchtext
html_urltext
The workflow's runs on GitHub
startedtrue/false
workflowtext
Example output
{
  "branch": "main",
  "html_url": "https://github.com/octocat/hello-world/actions/workflows/deploy.yml",
  "started": true,
  "workflow": "deploy.yml"
}

Submit review

Approve a pull request, request changes to it, or leave a review comment, posted at once under your name. GitHub doesn't let a pull request's author approve it or request changes.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The open pull request to act on.
RevieweventtextRequired
Whether to approve, request changes or only comment.One of: APPROVE, REQUEST_CHANGES (Request changes), COMMENT.
Commentbodytext
What the review says. Needed to request changes or to comment; optional when approving.

Outputs

bodytext
html_urltext
idnumber
numbernumber
statetext
APPROVED, CHANGES_REQUESTED or COMMENTED.
submitted_attext
usertext
Example output
{
  "body": "Looks good to me.",
  "html_url": "https://github.com/octocat/hello-world/pull/7#pullrequestreview-80",
  "id": 80,
  "number": 7,
  "state": "APPROVED",
  "submitted_at": "2026-11-09T10:00:00Z",
  "user": "octocat"
}

Turn off workflow

Turn a GitHub Actions workflow off: nothing starts it until it's turned on again. Runs already going carry on. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
WorkflowworkflowtextRequired
The GitHub Actions workflow, or its file's name, such as deploy.yml.

Outputs

statetext
active once turned on, disabled_manually once turned off.
workflowtext
The workflow changed.
Example output
{
  "state": "disabled_manually",
  "workflow": "deploy.yml"
}

Turn on workflow

Turn a GitHub Actions workflow back on, so pushes, schedules and its other triggers start it again. Needs the token's Actions permission.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
WorkflowworkflowtextRequired
The GitHub Actions workflow, or its file's name, such as deploy.yml.

Outputs

statetext
active once turned on, disabled_manually once turned off.
workflowtext
The workflow changed.
Example output
{
  "state": "active",
  "workflow": "deploy.yml"
}

Unlock issue

Unlock an issue's conversation so anyone can comment again.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to act on.

Outputs

issue_numbernumber
lockedtrue/false
Example output
{
  "issue_number": 42,
  "locked": false
}

Update issue

Update an existing issue. Only the fields you fill in are changed. Labels and assignees replace the issue's current lists; use 'Add label to issue' / 'Remove label from issue' to change one label at a time.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Issueissue_numbernumberRequired
The open issue to act on.
Titletitletext
A new title for the issue. Leave blank to keep the current one.
Descriptionbodytext
A new description for the issue. Leave blank to keep the current one.
Statestatetext
Reopen or close the issue. Leave blank to keep its current state.One of: open, closed.
Labelslabelslist
The complete set of labels the issue should end up with. Leave blank to keep its current labels.
Assigneesassigneeslist
The complete set of assignees the issue should end up with. Leave blank to keep its current assignees.

Outputs

assigneeslist
bodytext
html_urltext
idnumber
labelslist
lockedtrue/false
numbernumber
statetext
titletext
Example output
{
  "assignees": [
    "octocat"
  ],
  "body": "The widget stops responding after a resize.",
  "html_url": "https://github.com/octocat/hello-world/issues/42",
  "id": 1001,
  "labels": [
    "bug"
  ],
  "locked": false,
  "number": 42,
  "state": "open",
  "title": "Fix the widget"
}

Update pull request

Change a pull request's title, description or target branch, or close or reopen it. Only the fields you fill in change.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The pull request to change.
Titletitletext
A new title. Leave blank to keep the current one.
Descriptionbodytext
A new description, which replaces the current one. Leave blank to keep it.
Open or closedstatetext
Close the pull request, or reopen a closed one.One of: open, closed.
Target branchbasetext
Move the pull request to merge into another branch. Leave blank to keep the current one.

Outputs

basetext
bodytext
drafttrue/false
headtext
html_urltext
idnumber
mergedtrue/false
numbernumber
statetext
titletext
Example output
{
  "base": "main",
  "body": "Adds the widget the design team asked for.",
  "draft": false,
  "head": "feature/new-widget",
  "html_url": "https://github.com/octocat/hello-world/pull/7",
  "id": 111,
  "merged": false,
  "number": 7,
  "state": "open",
  "title": "Add new widget (ready for review)"
}

Update release

Change a release found by its tag: its title, notes or tag, or publish a draft or mark it a pre-release. Only the fields you fill in change.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
TagtagtextRequired
The tag's name, such as v1.3.0.
Titlenametext
The release's new title.
Notesnotestext
New release notes. They replace the old ones.
New tagnew_tagtext
Move the release to this tag. Leave blank to keep its tag.
Draftdrafttrue/false
Off to publish a draft; on to turn it back into a draft.
Pre-releaseprereleasetrue/false
Whether it's marked as a pre-release.

Outputs

authortext
created_attext
drafttrue/false
html_urltext
idnumber
nametext
notestext
prereleasetrue/false
published_attext
Empty for a draft
tagtext
Example output
{
  "author": "octocat",
  "created_at": "2026-11-26T17:04:00Z",
  "draft": false,
  "html_url": "https://github.com/octocat/hello-world/releases/tag/v1.3.0",
  "id": 1001,
  "name": "v1.3.0",
  "notes": "Widgets now redraw after a resize.",
  "prerelease": false,
  "published_at": "2026-11-26T17:05:00Z",
  "tag": "v1.3.0"
}

Update review

Change the comment of a review on a pull request. Its verdict (approved or changes requested) stays as it was.

Inputs

Repository ownerownertextRequired
The username or organization that owns the repository (the part before the '/' in 'owner/repo').
Repository namerepotextRequired
The name of the repository (the part after the '/' in 'owner/repo').
Pull requestpull_numbernumberRequired
The pull request's number.
Review IDreview_idnumberRequired
The review's ID, from List reviews or Submit review.
CommentbodytextRequired
The review's new comment.

Outputs

bodytext
The review's comment.
commit_idtext
The commit it reviewed.
html_urltext
The review on GitHub.
idnumber
The review's ID.
numbernumber
The pull request's number.
statetext
APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED or PENDING.
submitted_attext
When it was submitted.
usertext
Who wrote it.
Example output
{
  "body": "Looks good to me, thanks!",
  "commit_id": "7638417db6d59f3c431d3e1f261cc637155684cd",
  "html_url": "https://github.com/octocat/hello-world/pull/42#pullrequestreview-80",
  "id": 80,
  "number": 42,
  "state": "APPROVED",
  "submitted_at": "2026-11-26T17:04:00Z",
  "user": "octocat"
}

On this page