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.
ownerRequiredrepoRequiredbase
Event fields
What a run starts with. Later steps read each field with an @ reference.
numbernumbertitletextstatetexthtml_urltextheadtextbasetextdrafttrue/falseusertextcreated_attextupdated_attext
Updated pull request
Runs when a pull request in a GitHub repository is updated.
Filters
Narrow which events start a run.
ownerRequiredrepoRequiredbase
Event fields
What a run starts with. Later steps read each field with an @ reference.
numbernumbertitletextstatetexthtml_urltextheadtextbasetextdrafttrue/falseusertextcreated_attextupdated_attext
New issue
Runs when an issue is opened in a GitHub repository.
Filters
Narrow which events start a run.
ownerRequiredrepoRequiredlabel
Event fields
What a run starts with. Later steps read each field with an @ reference.
numbernumbertitletextstatetexthtml_urltextbodytextusertextlabelslistassigneeslistcreated_attextupdated_attext
Updated issue
Runs when an issue in a GitHub repository is updated.
Filters
Narrow which events start a run.
ownerRequiredrepoRequiredlabel
Event fields
What a run starts with. Later steps read each field with an @ reference.
numbernumbertitletextstatetexthtml_urltextbodytextusertextlabelslistassigneeslistcreated_attextupdated_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.
ownerRequiredrepoRequiredbranch
Event fields
What a run starts with. Later steps read each field with an @ reference.
shatextmessagetextauthortextbranchtexthtml_urltextcommitted_attext
New release
Runs when a release is created in a GitHub repository.
Filters
Narrow which events start a run.
ownerRequiredrepoRequired
Event fields
What a run starts with. Later steps read each field with an @ reference.
idnumbertag_nametextnametextbodytextdrafttrue/falseprereleasetrue/falsehtml_urltextauthortextpublished_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.
ownerRequiredrepoRequiredreviewer
Event fields
What a run starts with. Later steps read each field with an @ reference.
numbernumbertitletextstatetexthtml_urltextheadtextbasetextdrafttrue/falseusertextcreated_attextupdated_attextreviewertext
Actions
| Action | What it does |
|---|---|
| Add label to issue | Add one or more labels to an issue, keeping the labels it already has. |
| Cancel workflow run | Stop a GitHub Actions run that's waiting or running. |
| Close pull request | Close a pull request without merging it. |
| 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. |
| Create branch | Create a new branch in a repository. |
| Create comment | Add a comment to an issue or pull request. |
| Create issue | Create a new issue in a repository. |
| 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. |
| Create pull request | Open a new pull request to merge one branch into another. |
| Create release | Publish a release on GitHub from a tag, with a title and notes. |
| Create tag | Tag a commit, as git tag and git push would. |
| Delete branch | Delete a branch from a repository. |
| Delete file | Delete a file from a repository in one commit, with the commit message you give. |
| Delete issue | Permanently delete an issue. |
| Delete release | Delete the release made from a tag. |
| Delete tag | Delete a tag. |
| 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. |
| 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). |
| 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. |
| Find pull requests | List a repository's pull requests, newest activity first: the open ones, the closed ones, or only those that were merged. |
| Find releases | List a repository's releases, newest first, drafts and pre-releases included, with each one's tag, notes and link. |
| Find tags | List a repository's tags, newest first, with the commit each one points at. |
| Find workflow runs | List GitHub Actions runs, newest first, with whether they have all finished and all passed. |
| Get branch | Get details of a specific branch, including its latest commit SHA. |
| 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). |
| 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. |
| Get file contents | Read a file in a repository: its text, size and link. |
| Get issue | Get details of a specific issue. |
| Get organization | Get the public profile details of a GitHub organization. |
| Get pull request | Get details of a specific pull request. |
| Get release | Get a release: its title, notes, link and when it was published. |
| 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. |
| Get repository license | Get the license a repository is published under, such as MIT, with the license file's text. |
| Get review | Get one review on a pull request: its verdict, comment and who wrote it. |
| Get user | Get the public profile details of a GitHub user. |
| Get workflow | Get one GitHub Actions workflow: its name, file and whether it's turned on. |
| Get workflow run | Get one GitHub Actions run and its jobs, so a failed run says which job failed. |
| Invite to organization | Invite someone to a GitHub organization by email: GitHub emails them an invitation to join. |
| List a user's repositories | List the repositories a GitHub user owns: their public ones, or, with the username left blank, your own. |
| List files | List the files and folders in a folder of a repository, with each one's size and link. |
| List organization members | List the people in a GitHub organization. |
| List organization repositories | List an organization's repositories that the token can see. |
| List popular pages | List the ten most viewed pages of a repository on GitHub over the last 14 days, with views and unique visitors. |
| List reviews | List the reviews on a pull request, oldest first, with each one's verdict, comment and who wrote it. |
| List top referrers | List the ten sites that sent the most visitors to a repository over the last 14 days, such as google.com. |
| List workflows | List a repository's GitHub Actions workflows and whether each is turned on. |
| Lock issue | Lock an issue's conversation so only repository collaborators can comment on it. |
| Merge pull request | Merge an open pull request into its target branch, as a merge commit, a squash or a rebase. |
| Re-run workflow run | Run a finished GitHub Actions run again, all of it or only the jobs that failed. |
| Remove label from issue | Remove one label from an issue, leaving its other labels alone. |
| Request reviewers | Ask people or teams to review a pull request. |
| 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. |
| Submit review | Approve a pull request, request changes to it, or leave a review comment, posted at once under your name. |
| Turn off workflow | Turn a GitHub Actions workflow off: nothing starts it until it's turned on again. |
| Turn on workflow | Turn a GitHub Actions workflow back on, so pushes, schedules and its other triggers start it again. |
| Unlock issue | Unlock an issue's conversation so anyone can comment again. |
| Update issue | Update an existing issue. |
| Update pull request | Change a pull request's title, description or target branch, or close or reopen it. |
| Update release | Change a release found by its tag: its title, notes or tag, or publish a draft or mark it a pre-release. |
| Update review | Change 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to act on.
- Labels
labelstextRequired - The labels to add. Pick one, or enter several separated by commas.
Outputs
addedlistissue_numbernumberlabelslist
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Run
run_idnumberRequired - The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.
Outputs
cancelledtrue/falsehtml_urltextrun_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The open pull request to act on.
Outputs
html_urltextidnumbernumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- From
basetextRequired - The older branch, tag or commit, such as the last release's tag.
- To
headtextRequired - The newer branch, tag or commit, such as main.
Outputs
additionsnumberahead_bynumberbehind_bynumbercommitslist- Newest first, at most 250
commits_truncatedtrue/false- Whether there are more commits than the 250 listed
deletionsnumberfiles_changednumberhtml_urltextstatustext- 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- New branch name
branchtextRequired - The name for the new branch (without the 'refs/heads/' prefix).
- Source branch
from_branchtext - The existing branch to base the new one on. Defaults to the repository's default branch when not set.
- Source commit SHA
shatext - A specific commit SHA to point the new branch at. Takes precedence over the source branch when provided.
Outputs
nametextreftextshatext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to comment on. To comment on a pull request, reference its number from an earlier step.
- Comment
bodytextRequired - The text of the comment.
Outputs
bodytexthtml_urltextidnumberuserobject
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Title
titletextRequired - The title of the new issue.
- Description
bodytext - The main text of the issue.
- Labels
labelslist - Labels to add to the issue.
- Assignees
assigneeslist - The people to assign to the issue.
Outputs
html_urltextidnumbernumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- File path
pathtextRequired - Where to save it in the repository, such as docs/CHANGELOG.md.
- Text
contenttextRequired - The file's whole text. It replaces what's there.
- Commit message
messagetextRequired - What the change is, as it shows in the history.
- Branch
branchtext - The branch to commit to. Leave blank for the repository's default branch.
Outputs
commit_shatextcommit_urltextcreatedtrue/false- Whether the file was new.
html_urltextnametextpathtextshatextsizenumber
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Title
titletextRequired - 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.
- Description
bodytext - The main text describing the pull request.
- Create as draft
drafttrue/false - Open the pull request as a draft that isn't ready to merge.Default:
false.
Outputs
basetextdrafttrue/falseheadtexthtml_urltextidnumbermergedtrue/falsenumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag
tagtextRequired - The tag to release, such as v1.3.0.
- Title
nametext - The release's title. Leave blank to use the tag.
- Notes
notestext - What's in the release, in Markdown.
- Have GitHub write the notes
generate_notestrue/false - List the pull requests merged since the last release. Any notes you give come first.Default:
false. - Make the tag at
targettext - Only used when the tag isn't there yet: the branch or commit to make it at. Leave blank for the default branch.
- Pre-release
prereleasetrue/false - Mark it as not ready for everyone yet.Default:
false. - Save as a draft
drafttrue/false - Save it unpublished, for a person to publish on GitHub.Default:
false.
Outputs
authortextcreated_attextdrafttrue/falsehtml_urltextidnumbernametextnotestextprereleasetrue/falsepublished_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag name
tagtextRequired - The new tag's name, such as v1.3.0. A tag that's already there isn't moved.
- Commit to tag
targettext - A branch, tag or commit SHA. Leave blank for the newest commit on the repository's default branch.
- Message
messagetext - A note kept with the tag. Leave blank to use the tag's name.
Outputs
html_urltextnametextshatext- 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Branch name
branchtextRequired - The name of the branch to delete (without the 'refs/heads/' prefix).
Outputs
branchtextdeletedtrue/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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- File path
pathtextRequired - The file to delete, such as docs/old-notes.md.
- Commit message
messagetextRequired - What the commit says, such as Remove old notes.
- Branch
branchtext - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to delete.
Outputs
deletedtrue/falseissue_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag
tagtextRequired - The tag's name, such as v1.3.0.
Outputs
deletedtrue/falsetagtext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag
tagtextRequired - The tag's name, such as v1.3.0.
Outputs
deletedtrue/falsetagtext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Branch
branchtext - The branch (or tag) to list. Leave blank for the repository's default branch.
- On or after
sincedate - Only commits made on or after this day.
- File or folder
pathtext - Only commits that changed this path, such as docs/.
- Author
authortext - Only commits by this GitHub username or email address.
- How many
limitnumber - The most commits to return, up to 100. The default is 30.Default:
30.
Outputs
commitslistcountnumber
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Which issues
statetext - Leave on Open to see issues still waiting.One of:
open,closed,all. Default:open. - Label
labeltext - Only issues with this label, such as bug. Leave blank for any.
- Created before
created_beforedate - Only issues created before this day. Leave blank for no date limit.
- How many
limitnumber - The most issues to return, up to 100. The default is 30.Default:
30.
Outputs
countnumberissueslist
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
- Issues
involvementtext - 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. - State
statetext - Open, closed or all issues. The default is open.One of:
open,closed,all. Default:open. - Labels
labelstext - Only issues with all of these labels, separated by commas, such as bug,urgent.
- How many
limitnumber - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Which pull requests
statetext - Leave on Open to see pull requests still waiting.One of:
open,merged,closed(Closed (merged or not)),all. Default:open. - On or after
sincedate - 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 days
since_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 many
limitnumber - The most pull requests to return, up to 100. The default is 30.Default:
30.
Outputs
countnumberpull_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- How many
limitnumber - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Name starts with
starts_withtext - Only tags whose name starts with this, such as prod-.
- How many
limitnumber - The most tags to return, up to 100. The default is 30.Default:
30.
Outputs
countnumbertagslist
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Workflow
workflowtext - Only this workflow's runs. Leave blank for every workflow.
- Commit or tag
committext - Only runs for this commit: a SHA, or a tag or branch to use the commit it points at.
- Branch
branchtext - Only runs started from this branch.
- Status
statustext - 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 many
limitnumber - 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)
countnumberrunslist
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Branch name
branchtextRequired - The name of the branch to look up.
Outputs
html_urltextnametextprotectedtrue/falseshatext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Commit
reftextRequired - A commit SHA, or a branch or tag to get the commit it points at.
Outputs
additionsnumberauthortext- The author's GitHub username, or their name without one
author_nametextdatetextdeletionsnumberfileslisthtml_urltextmessagetextpull_request_numbernumber- The squash-merged pull request it came from, if any
shatextshort_shatexttitletext- 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- File path
pathtextRequired - The file's path in the repository, such as docs/README.md.
- Branch
reftext - 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_urltextnametextpathtextshatext- 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to look up.
Outputs
bodytexthtml_urltextidnumbernumbernumberstatetexttitletext
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
- Organization
orgtextRequired - The login (short name) of the organization.
Outputs
descriptiontexthtml_urltextidnumberlogintextnametextpublic_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The open pull request to act on.
Outputs
basetextbodytextdrafttrue/falseheadtexthtml_urltextidnumberlabelslist- Beta. The names of the pull request's labels, such as bug.
mergedtrue/falsenumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag
tagtext - The release's tag, such as v1.3.0. Leave blank for the latest one that isn't a draft or pre-release.
Outputs
authortextcreated_attextdrafttrue/falsehtml_urltextidnumbernametextnotestextprereleasetrue/falsepublished_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
Outputs
archivedtrue/falsedefault_branchtextdescriptiontextforks_countnumberfull_nametexthtml_urltextidnumberlanguagetextlicensetextnametextopen_issues_countnumberprivatetrue/falsepushed_attextstargazers_countnumberwatchers_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The pull request's number.
- Review ID
review_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
- Username
usernametext - The GitHub username to look up. Leave blank for the connected (authenticated) account.
Outputs
html_urltextidnumberlogintextnametextpublic_reposnumbertypetext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Workflow
workflowtextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Run
run_idnumberRequired - The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.
Outputs
actortextbranchtextconclusiontext- Once finished: success, failure, cancelled, skipped or neutral
created_attexteventtext- What started it, such as push or workflow_dispatch
head_shatext- The commit it ran on
html_urltextidnumberjobslistnametext- The workflow's name
run_numbernumberstatustext- 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
- Organization
orgtextRequired - The login (short name) of the organization, such as github.
- Email
emailtextRequired - The email address to send the invitation to.
- Role
roletext - 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
- Username
usernametext - The user's GitHub username. Leave blank for your own repositories.
- Order
sorttext - 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 many
limitnumber - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Folder
pathtext - The folder to list, such as docs. Leave blank for the top.
- Branch, tag or commit
reftext - 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
- Organization
orgtextRequired - The login (short name) of the organization, such as github.
- Role
roletext - Only owners, or only members. The default is everyone.One of:
all(Everyone),admin(Owners),member(Members). Default:all. - How many
limitnumber - 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
- Organization
orgtextRequired - The login (short name) of the organization, such as github.
- Which
repo_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. - Order
sorttext - 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 many
limitnumber - 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 popular pages
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The pull request's number.
- How many
limitnumber - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to act on.
- Reason
lock_reasontext - Why the conversation is being locked. Optional.One of:
off-topic(Off topic),too heated,resolved,spam.
Outputs
issue_numbernumberlock_reasontextlockedtrue/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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The open pull request to act on.
- How to merge
merge_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 title
commit_titletext - The title of the merge or squashed commit. Leave blank for GitHub's usual one.
- Commit message
commit_messagetext - More detail for the commit. Leave blank for GitHub's usual one.
Outputs
mergedtrue/falsemessagetextnumbernumbershatext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Run
run_idnumberRequired - The run's id: the number after /runs/ in its link, or a Find workflow runs result's id.
- Only the failed jobs
only_failedtrue/false - Run again only the jobs that failed, and what depends on them.Default:
false.
Outputs
html_urltextonly_failedtrue/falserun_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to act on.
- Label
labeltextRequired - The label to remove from the issue.
Outputs
issue_numbernumberlabelslistremovedtext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The open pull request to act on.
- Reviewers
reviewerslist - The people to ask for a review.
- Teams
team_reviewerslist - Teams in the repository's organization to ask for a review, by the name in their address (e.g. 'design').
Outputs
basetextdrafttrue/falseheadtexthtml_urltextidnumbermergedtrue/falsenumbernumberrequested_reviewerslistrequested_teamsliststatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Workflow
workflowtextRequired - The workflow to start, or its file's name, such as deploy.yml.
- Branch
branchtext - The branch (or tag) to run it on. Leave blank for the default branch.
- Inputs
inputsobject - The workflow's inputs by name, such as {"environment": "staging"}. Leave blank if it takes none.
Outputs
branchtexthtml_urltext- The workflow's runs on GitHub
startedtrue/falseworkflowtext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The open pull request to act on.
- Review
eventtextRequired - Whether to approve, request changes or only comment.One of:
APPROVE,REQUEST_CHANGES(Request changes),COMMENT. - Comment
bodytext - What the review says. Needed to request changes or to comment; optional when approving.
Outputs
bodytexthtml_urltextidnumbernumbernumberstatetext- APPROVED, CHANGES_REQUESTED or COMMENTED.
submitted_attextusertext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Workflow
workflowtextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Workflow
workflowtextRequired - 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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to act on.
Outputs
issue_numbernumberlockedtrue/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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Issue
issue_numbernumberRequired - The open issue to act on.
- Title
titletext - A new title for the issue. Leave blank to keep the current one.
- Description
bodytext - A new description for the issue. Leave blank to keep the current one.
- State
statetext - Reopen or close the issue. Leave blank to keep its current state.One of:
open,closed. - Labels
labelslist - The complete set of labels the issue should end up with. Leave blank to keep its current labels.
- Assignees
assigneeslist - The complete set of assignees the issue should end up with. Leave blank to keep its current assignees.
Outputs
assigneeslistbodytexthtml_urltextidnumberlabelslistlockedtrue/falsenumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The pull request to change.
- Title
titletext - A new title. Leave blank to keep the current one.
- Description
bodytext - A new description, which replaces the current one. Leave blank to keep it.
- Open or closed
statetext - Close the pull request, or reopen a closed one.One of:
open,closed. - Target branch
basetext - Move the pull request to merge into another branch. Leave blank to keep the current one.
Outputs
basetextbodytextdrafttrue/falseheadtexthtml_urltextidnumbermergedtrue/falsenumbernumberstatetexttitletext
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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Tag
tagtextRequired - The tag's name, such as v1.3.0.
- Title
nametext - The release's new title.
- Notes
notestext - New release notes. They replace the old ones.
- New tag
new_tagtext - Move the release to this tag. Leave blank to keep its tag.
- Draft
drafttrue/false - Off to publish a draft; on to turn it back into a draft.
- Pre-release
prereleasetrue/false - Whether it's marked as a pre-release.
Outputs
authortextcreated_attextdrafttrue/falsehtml_urltextidnumbernametextnotestextprereleasetrue/falsepublished_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 owner
ownertextRequired - The username or organization that owns the repository (the part before the '/' in 'owner/repo').
- Repository name
repotextRequired - The name of the repository (the part after the '/' in 'owner/repo').
- Pull request
pull_numbernumberRequired - The pull request's number.
- Review ID
review_idnumberRequired - The review's ID, from List reviews or Submit review.
- Comment
bodytextRequired - 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"
}