pull_request_review_comment

This page was generated based on Github’s Documentation. See our welcome page for context and details.

Github Event pull_request_review_comment #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
pull_request_review_commentcreated
edited
deleted
Last merge commit on the GITHUB_REF branchPR merge branch refs/pull/PULL_REQUEST_NUMBER/merge

Note: More than one activity type triggers this event. For information about each activity type, see “Webhook events and payloads.” By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see “Workflow syntax for GitHub Actions.”

Runs your workflow when a pull request review comment is modified. A pull request review comment is a comment on a pull request’s diff. For activity related to pull request reviews or pull request comments, use the pull_request_review or issue_comment events instead. For information about the pull request review comment APIs, see “Objects” in the GraphQL API documentation or “Pulls” in the REST API documentation.

For example, you can run a workflow when a pull request review comment has been created or deleted.

on:
  pull_request_review_comment:
    types: [created, deleted]

Workflows in forked repositories #

Workflows don’t run in forked repositories by default. You must enable GitHub Actions in the Actions tab of the forked repository.

With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository. The GITHUB_TOKEN has read-only permissions in pull requests from forked repositories. For more information, see “Automatic token authentication.”

Pull request events for forked repositories #

For pull requests from a forked repository to the base repository, GitHub sends the pull_requestissue_commentpull_request_review_commentpull_request_review, and pull_request_target events to the base repository. No pull request events occur on the forked repository.

When a first-time contributor submits a pull request to a public repository, a maintainer with write access may need to approve running workflows on the pull request. For more information, see “Approving workflow runs from public forks.”

For pull requests from a forked repository to a private repository, workflows only run when they are enabled, see “Managing GitHub Actions settings for a repository.”

Note: Workflows triggered by Dependabot pull requests are treated as though they are from a forked repository, and are also subject to these restrictions.

Event Payload #

source

Activities: created, deleted, edited

Common Fields #

These fields are common to every event types available with this trigger.
fieldtyperequireddescription
github.event.commentobjectrequired

The comment itself.

github.event.comment._linksobjectrequired
github.event.comment._links.htmlobjectrequired
github.event.comment._links.html.hrefstringrequired
github.event.comment._links.pull_requestobjectrequired
github.event.comment._links.pull_request.hrefstringrequired
github.event.comment._links.selfobjectrequired
github.event.comment._links.self.hrefstringrequired
github.event.comment.author_associationCOLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNERrequired

How the author is associated with the repository.

github.event.comment.bodystringrequired

The text of the comment.

github.event.comment.commit_idstringrequired

The SHA of the commit to which the comment applies.

github.event.comment.created_atstringrequired
github.event.comment.diff_hunkstringrequired

The diff of the line that the comment refers to.

github.event.comment.html_urlstringrequired

HTML URL for the pull request review comment.

github.event.comment.idintegerrequired

The ID of the pull request review comment.

github.event.comment.in_reply_to_idintegeroptional

The comment ID to reply to.

github.event.comment.lineinteger or nullrequired

The line of the blob to which the comment applies. The last line of the range for a multi-line comment

github.event.comment.node_idstringrequired

The node ID of the pull request review comment.

github.event.comment.original_commit_idstringrequired

The SHA of the original commit to which the comment applies.

github.event.comment.original_positionintegerrequired

The index of the original line in the diff to which the comment applies.

github.event.comment.original_start_lineinteger or nullrequired

The first line of the range for a multi-line comment.

github.event.comment.pathstringrequired

The relative path of the file to which the comment applies.

github.event.comment.positioninteger or nullrequired

The line index in the diff to which the comment applies.

github.event.comment.pull_request_review_idinteger or nullrequired

The ID of the pull request review to which the comment belongs.

github.event.comment.pull_request_urlstringrequired

URL for the pull request that the review comment belongs to.

github.event.comment.reactionsobjectrequired
github.event.comment.reactions.+1integerrequired
github.event.comment.reactions.-1integerrequired
github.event.comment.reactions.confusedintegerrequired
github.event.comment.reactions.eyesintegerrequired
github.event.comment.reactions.heartintegerrequired
github.event.comment.reactions.hoorayintegerrequired
github.event.comment.reactions.laughintegerrequired
github.event.comment.reactions.rocketintegerrequired
github.event.comment.reactions.total_countintegerrequired
github.event.comment.reactions.urlstringrequired
github.event.comment.sideLEFT, RIGHTrequired

The side of the first line of the range for a multi-line comment.

github.event.comment.start_lineinteger or nullrequired

The first line of the range for a multi-line comment.

github.event.comment.start_sideLEFT, RIGHT, Nonerequired

The side of the first line of the range for a multi-line comment.

github.event.comment.subject_typeline, fileoptional

The level at which the comment is targeted, can be a diff line or a file.

github.event.comment.updated_atstringrequired
github.event.comment.urlstringrequired

URL for the pull request review comment

github.event.comment.userobject or nullrequired
github.event.comment.user.avatar_urlstringoptional
github.event.comment.user.deletedbooleanoptional
github.event.comment.user.emailstring or nulloptional
github.event.comment.user.events_urlstringoptional
github.event.comment.user.followers_urlstringoptional
github.event.comment.user.following_urlstringoptional
github.event.comment.user.gists_urlstringoptional
github.event.comment.user.gravatar_idstringoptional
github.event.comment.user.html_urlstringoptional
github.event.comment.user.idintegerrequired
github.event.comment.user.loginstringrequired
github.event.comment.user.namestringoptional
github.event.comment.user.node_idstringoptional
github.event.comment.user.organizations_urlstringoptional
github.event.comment.user.received_events_urlstringoptional
github.event.comment.user.repos_urlstringoptional
github.event.comment.user.site_adminbooleanoptional
github.event.comment.user.starred_urlstringoptional
github.event.comment.user.subscriptions_urlstringoptional
github.event.comment.user.typeBot, User, Organizationoptional
github.event.comment.user.urlstringoptional
github.event.enterpriseobjectoptional

An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured on an enterprise account or an organization that’s part of an enterprise account. For more information, see “About enterprise accounts."

github.event.installationobjectoptional

The GitHub App installation. Webhook payloads contain the installation property when the event is configured for and sent to a GitHub App. For more information, see “Using webhooks with GitHub Apps."

github.event.organizationobjectoptional

A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization.

github.event.pull_requestobjectrequired
github.event.pull_request._linksobjectrequired
github.event.pull_request._links.commentsobjectrequired
github.event.pull_request._links.comments.hrefstringrequired
github.event.pull_request._links.commitsobjectrequired
github.event.pull_request._links.commits.hrefstringrequired
github.event.pull_request._links.htmlobjectrequired
github.event.pull_request._links.html.hrefstringrequired
github.event.pull_request._links.issueobjectrequired
github.event.pull_request._links.issue.hrefstringrequired
github.event.pull_request._links.review_commentobjectrequired
github.event.pull_request._links.review_comment.hrefstringrequired
github.event.pull_request._links.review_commentsobjectrequired
github.event.pull_request._links.review_comments.hrefstringrequired
github.event.pull_request._links.selfobjectrequired
github.event.pull_request._links.self.hrefstringrequired
github.event.pull_request._links.statusesobjectrequired
github.event.pull_request._links.statuses.hrefstringrequired
github.event.pull_request.active_lock_reasonresolved, off-topic, too heated, spam, Nonerequired
github.event.pull_request.assigneeobject or nullrequired
github.event.pull_request.assignee.avatar_urlstringoptional
github.event.pull_request.assignee.deletedbooleanoptional
github.event.pull_request.assignee.emailstring or nulloptional
github.event.pull_request.assignee.events_urlstringoptional
github.event.pull_request.assignee.followers_urlstringoptional
github.event.pull_request.assignee.following_urlstringoptional
github.event.pull_request.assignee.gists_urlstringoptional
github.event.pull_request.assignee.gravatar_idstringoptional
github.event.pull_request.assignee.html_urlstringoptional
github.event.pull_request.assignee.idintegerrequired
github.event.pull_request.assignee.loginstringrequired
github.event.pull_request.assignee.namestringoptional
github.event.pull_request.assignee.node_idstringoptional
github.event.pull_request.assignee.organizations_urlstringoptional
github.event.pull_request.assignee.received_events_urlstringoptional
github.event.pull_request.assignee.repos_urlstringoptional
github.event.pull_request.assignee.site_adminbooleanoptional
github.event.pull_request.assignee.starred_urlstringoptional
github.event.pull_request.assignee.subscriptions_urlstringoptional
github.event.pull_request.assignee.urlstringoptional
github.event.pull_request.assigneesarray of object,nullsrequired
github.event.pull_request.author_associationCOLLABORATOR, CONTRIBUTOR, FIRST_TIMER, FIRST_TIME_CONTRIBUTOR, MANNEQUIN, MEMBER, NONE, OWNERrequired

How the author is associated with the repository.

github.event.pull_request.auto_mergeobject or nulloptional

The status of auto merging a pull request.

github.event.pull_request.auto_merge.commit_messagestring or nullrequired

Commit message for the merge commit.

github.event.pull_request.auto_merge.commit_titlestring or nullrequired

Title for the merge commit message.

github.event.pull_request.auto_merge.enabled_byobject or nullrequired
github.event.pull_request.auto_merge.enabled_by.avatar_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.deletedbooleanoptional
github.event.pull_request.auto_merge.enabled_by.emailstring or nulloptional
github.event.pull_request.auto_merge.enabled_by.events_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.followers_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.following_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.gists_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.gravatar_idstringoptional
github.event.pull_request.auto_merge.enabled_by.html_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.idintegerrequired
github.event.pull_request.auto_merge.enabled_by.loginstringrequired
github.event.pull_request.auto_merge.enabled_by.namestringoptional
github.event.pull_request.auto_merge.enabled_by.node_idstringoptional
github.event.pull_request.auto_merge.enabled_by.organizations_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.received_events_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.repos_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.site_adminbooleanoptional
github.event.pull_request.auto_merge.enabled_by.starred_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.subscriptions_urlstringoptional
github.event.pull_request.auto_merge.enabled_by.typeBot, User, Organizationoptional
github.event.pull_request.auto_merge.enabled_by.urlstringoptional
github.event.pull_request.auto_merge.merge_methodmerge, squash, rebaserequired

The merge method to use.

github.event.pull_request.baseobjectrequired
github.event.pull_request.base.labelstringrequired
github.event.pull_request.base.refstringrequired
github.event.pull_request.base.repoobjectrequired

A git repository

github.event.pull_request.base.repo.allow_auto_mergebooleanoptional

Whether to allow auto-merge for pull requests.

github.event.pull_request.base.repo.allow_forkingbooleanoptional

Whether to allow private forks

github.event.pull_request.base.repo.allow_merge_commitbooleanoptional

Whether to allow merge commits for pull requests.

github.event.pull_request.base.repo.allow_rebase_mergebooleanoptional

Whether to allow rebase merges for pull requests.

github.event.pull_request.base.repo.allow_squash_mergebooleanoptional

Whether to allow squash merges for pull requests.

github.event.pull_request.base.repo.allow_update_branchbooleanoptional
github.event.pull_request.base.repo.archive_urlstringrequired
github.event.pull_request.base.repo.archivedbooleanrequired

Whether the repository is archived.

github.event.pull_request.base.repo.assignees_urlstringrequired
github.event.pull_request.base.repo.blobs_urlstringrequired
github.event.pull_request.base.repo.branches_urlstringrequired
github.event.pull_request.base.repo.clone_urlstringrequired
github.event.pull_request.base.repo.collaborators_urlstringrequired
github.event.pull_request.base.repo.comments_urlstringrequired
github.event.pull_request.base.repo.commits_urlstringrequired
github.event.pull_request.base.repo.compare_urlstringrequired
github.event.pull_request.base.repo.contents_urlstringrequired
github.event.pull_request.base.repo.contributors_urlstringrequired
github.event.pull_request.base.repo.created_atinteger or stringrequired
github.event.pull_request.base.repo.default_branchstringrequired

The default branch of the repository.

github.event.pull_request.base.repo.delete_branch_on_mergebooleanoptional

Whether to delete head branches when pull requests are merged

github.event.pull_request.base.repo.deployments_urlstringrequired
github.event.pull_request.base.repo.descriptionstring or nullrequired
github.event.pull_request.base.repo.disabledbooleanoptional

Returns whether or not this repository is disabled.

github.event.pull_request.base.repo.downloads_urlstringrequired
github.event.pull_request.base.repo.events_urlstringrequired
github.event.pull_request.base.repo.forkbooleanrequired
github.event.pull_request.base.repo.forksintegerrequired
github.event.pull_request.base.repo.forks_countintegerrequired
github.event.pull_request.base.repo.forks_urlstringrequired
github.event.pull_request.base.repo.full_namestringrequired
github.event.pull_request.base.repo.git_commits_urlstringrequired
github.event.pull_request.base.repo.git_refs_urlstringrequired
github.event.pull_request.base.repo.git_tags_urlstringrequired
github.event.pull_request.base.repo.git_urlstringrequired
github.event.pull_request.base.repo.has_downloadsbooleanrequired

Whether downloads are enabled.

github.event.pull_request.base.repo.has_issuesbooleanrequired

Whether issues are enabled.

github.event.pull_request.base.repo.has_pagesbooleanrequired
github.event.pull_request.base.repo.has_projectsbooleanrequired

Whether projects are enabled.

github.event.pull_request.base.repo.has_wikibooleanrequired

Whether the wiki is enabled.

github.event.pull_request.base.repo.has_discussionsbooleanrequired

Whether discussions are enabled.

github.event.pull_request.base.repo.homepagestring or nullrequired
github.event.pull_request.base.repo.hooks_urlstringrequired
github.event.pull_request.base.repo.html_urlstringrequired
github.event.pull_request.base.repo.idintegerrequired

Unique identifier of the repository

github.event.pull_request.base.repo.is_templatebooleanoptional
github.event.pull_request.base.repo.issue_comment_urlstringrequired
github.event.pull_request.base.repo.issue_events_urlstringrequired
github.event.pull_request.base.repo.issues_urlstringrequired
github.event.pull_request.base.repo.keys_urlstringrequired
github.event.pull_request.base.repo.labels_urlstringrequired
github.event.pull_request.base.repo.languagestring or nullrequired
github.event.pull_request.base.repo.languages_urlstringrequired
github.event.pull_request.base.repo.licenseobject or nullrequired
github.event.pull_request.base.repo.license.keystringrequired
github.event.pull_request.base.repo.license.namestringrequired
github.event.pull_request.base.repo.license.node_idstringrequired
github.event.pull_request.base.repo.license.spdx_idstringrequired
github.event.pull_request.base.repo.license.urlstring or nullrequired
github.event.pull_request.base.repo.master_branchstringoptional
github.event.pull_request.base.repo.merge_commit_messagePR_BODY, PR_TITLE, BLANKoptional

The default value for a merge commit message.

  • PR_TITLE - default to the pull request’s title.
  • PR_BODY - default to the pull request’s body.
  • BLANK - default to a blank commit message.
github.event.pull_request.base.repo.merge_commit_titlePR_TITLE, MERGE_MESSAGEoptional

The default value for a merge commit title.

  • PR_TITLE - default to the pull request’s title.
  • MERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
github.event.pull_request.base.repo.merges_urlstringrequired
github.event.pull_request.base.repo.milestones_urlstringrequired
github.event.pull_request.base.repo.mirror_urlstring or nullrequired
github.event.pull_request.base.repo.namestringrequired

The name of the repository.

github.event.pull_request.base.repo.node_idstringrequired
github.event.pull_request.base.repo.notifications_urlstringrequired
github.event.pull_request.base.repo.open_issuesintegerrequired
github.event.pull_request.base.repo.open_issues_countintegerrequired
github.event.pull_request.base.repo.organizationstringoptional
github.event.pull_request.base.repo.ownerobject or nullrequired
github.event.pull_request.base.repo.owner.avatar_urlstringoptional
github.event.pull_request.base.repo.owner.deletedbooleanoptional
github.event.pull_request.base.repo.owner.emailstring or nulloptional
github.event.pull_request.base.repo.owner.events_urlstringoptional
github.event.pull_request.base.repo.owner.followers_urlstringoptional
github.event.pull_request.base.repo.owner.following_urlstringoptional
github.event.pull_request.base.repo.owner.gists_urlstringoptional
github.event.pull_request.base.repo.owner.gravatar_idstringoptional
github.event.pull_request.base.repo.owner.html_urlstringoptional
github.event.pull_request.base.repo.owner.idintegerrequired
github.event.pull_request.base.repo.owner.loginstringrequired
github.event.pull_request.base.repo.owner.namestringoptional
github.event.pull_request.base.repo.owner.node_idstringoptional
github.event.pull_request.base.repo.owner.organizations_urlstringoptional
github.event.pull_request.base.repo.owner.received_events_urlstringoptional
github.event.pull_request.base.repo.owner.repos_urlstringoptional
github.event.pull_request.base.repo.owner.site_adminbooleanoptional
github.event.pull_request.base.repo.owner.starred_urlstringoptional
github.event.pull_request.base.repo.owner.subscriptions_urlstringoptional
github.event.pull_request.base.repo.owner.typeBot, User, Organizationoptional
github.event.pull_request.base.repo.owner.urlstringoptional
github.event.pull_request.base.repo.permissionsobjectoptional
github.event.pull_request.base.repo.permissions.adminbooleanrequired
github.event.pull_request.base.repo.permissions.maintainbooleanoptional
github.event.pull_request.base.repo.permissions.pullbooleanrequired
github.event.pull_request.base.repo.permissions.pushbooleanrequired
github.event.pull_request.base.repo.permissions.triagebooleanoptional
github.event.pull_request.base.repo.privatebooleanrequired

Whether the repository is private or public.

github.event.pull_request.base.repo.publicbooleanoptional
github.event.pull_request.base.repo.pulls_urlstringrequired
github.event.pull_request.base.repo.pushed_atnull or integer or stringrequired
github.event.pull_request.base.repo.releases_urlstringrequired
github.event.pull_request.base.repo.role_namestring or nulloptional
github.event.pull_request.base.repo.sizeintegerrequired
github.event.pull_request.base.repo.squash_merge_commit_messagePR_BODY, COMMIT_MESSAGES, BLANKoptional

The default value for a squash merge commit message:

  • PR_BODY - default to the pull request’s body.
  • COMMIT_MESSAGES - default to the branch’s commit messages.
  • BLANK - default to a blank commit message.
github.event.pull_request.base.repo.squash_merge_commit_titlePR_TITLE, COMMIT_OR_PR_TITLEoptional

The default value for a squash merge commit title:

  • PR_TITLE - default to the pull request’s title.
  • COMMIT_OR_PR_TITLE - default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
github.event.pull_request.base.repo.ssh_urlstringrequired
github.event.pull_request.base.repo.stargazersintegeroptional
github.event.pull_request.base.repo.stargazers_countintegerrequired
github.event.pull_request.base.repo.stargazers_urlstringrequired
github.event.pull_request.base.repo.statuses_urlstringrequired
github.event.pull_request.base.repo.subscribers_urlstringrequired
github.event.pull_request.base.repo.subscription_urlstringrequired
github.event.pull_request.base.repo.svn_urlstringrequired
github.event.pull_request.base.repo.tags_urlstringrequired
github.event.pull_request.base.repo.teams_urlstringrequired
github.event.pull_request.base.repo.topicsarray of stringsrequired
github.event.pull_request.base.repo.trees_urlstringrequired
github.event.pull_request.base.repo.updated_atstringrequired
github.event.pull_request.base.repo.urlstringrequired
github.event.pull_request.base.repo.use_squash_pr_title_as_defaultbooleanoptional

Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use squash_merge_commit_title instead.

github.event.pull_request.base.repo.visibilitypublic, private, internalrequired
github.event.pull_request.base.repo.watchersintegerrequired
github.event.pull_request.base.repo.watchers_countintegerrequired
github.event.pull_request.base.repo.web_commit_signoff_requiredbooleanoptional

Whether to require contributors to sign off on web-based commits

github.event.pull_request.base.shastringrequired
github.event.pull_request.base.userobject or nullrequired
github.event.pull_request.base.user.avatar_urlstringoptional
github.event.pull_request.base.user.deletedbooleanoptional
github.event.pull_request.base.user.emailstring or nulloptional
github.event.pull_request.base.user.events_urlstringoptional
github.event.pull_request.base.user.followers_urlstringoptional
github.event.pull_request.base.user.following_urlstringoptional
github.event.pull_request.base.user.gists_urlstringoptional
github.event.pull_request.base.user.gravatar_idstringoptional
github.event.pull_request.base.user.html_urlstringoptional
github.event.pull_request.base.user.idintegerrequired
github.event.pull_request.base.user.loginstringrequired
github.event.pull_request.base.user.namestringoptional
github.event.pull_request.base.user.node_idstringoptional
github.event.pull_request.base.user.organizations_urlstringoptional
github.event.pull_request.base.user.received_events_urlstringoptional
github.event.pull_request.base.user.repos_urlstringoptional
github.event.pull_request.base.user.site_adminbooleanoptional
github.event.pull_request.base.user.starred_urlstringoptional
github.event.pull_request.base.user.subscriptions_urlstringoptional
github.event.pull_request.base.user.typeBot, User, Organizationoptional
github.event.pull_request.base.user.urlstringoptional
github.event.pull_request.bodystring or nullrequired
github.event.pull_request.closed_atstring or nullrequired
github.event.pull_request.comments_urlstringrequired
github.event.pull_request.commits_urlstringrequired
github.event.pull_request.created_atstringrequired
github.event.pull_request.diff_urlstringrequired
github.event.pull_request.draftbooleanoptional
github.event.pull_request.headobjectrequired
github.event.pull_request.head.labelstringrequired
github.event.pull_request.head.refstringrequired
github.event.pull_request.head.repoobject or nullrequired

A git repository

github.event.pull_request.head.repo.allow_auto_mergebooleanoptional

Whether to allow auto-merge for pull requests.

github.event.pull_request.head.repo.allow_forkingbooleanoptional

Whether to allow private forks

github.event.pull_request.head.repo.allow_merge_commitbooleanoptional

Whether to allow merge commits for pull requests.

github.event.pull_request.head.repo.allow_rebase_mergebooleanoptional

Whether to allow rebase merges for pull requests.

github.event.pull_request.head.repo.allow_squash_mergebooleanoptional

Whether to allow squash merges for pull requests.

github.event.pull_request.head.repo.allow_update_branchbooleanoptional
github.event.pull_request.head.repo.archive_urlstringrequired
github.event.pull_request.head.repo.archivedbooleanrequired

Whether the repository is archived.

github.event.pull_request.head.repo.assignees_urlstringrequired
github.event.pull_request.head.repo.blobs_urlstringrequired
github.event.pull_request.head.repo.branches_urlstringrequired
github.event.pull_request.head.repo.clone_urlstringrequired
github.event.pull_request.head.repo.collaborators_urlstringrequired
github.event.pull_request.head.repo.comments_urlstringrequired
github.event.pull_request.head.repo.commits_urlstringrequired
github.event.pull_request.head.repo.compare_urlstringrequired
github.event.pull_request.head.repo.contents_urlstringrequired
github.event.pull_request.head.repo.contributors_urlstringrequired
github.event.pull_request.head.repo.created_atinteger or stringrequired
github.event.pull_request.head.repo.default_branchstringrequired

The default branch of the repository.

github.event.pull_request.head.repo.delete_branch_on_mergebooleanoptional

Whether to delete head branches when pull requests are merged

github.event.pull_request.head.repo.deployments_urlstringrequired
github.event.pull_request.head.repo.descriptionstring or nullrequired
github.event.pull_request.head.repo.disabledbooleanoptional

Returns whether or not this repository is disabled.

github.event.pull_request.head.repo.downloads_urlstringrequired
github.event.pull_request.head.repo.events_urlstringrequired
github.event.pull_request.head.repo.forkbooleanrequired
github.event.pull_request.head.repo.forksintegerrequired
github.event.pull_request.head.repo.forks_countintegerrequired
github.event.pull_request.head.repo.forks_urlstringrequired
github.event.pull_request.head.repo.full_namestringrequired
github.event.pull_request.head.repo.git_commits_urlstringrequired
github.event.pull_request.head.repo.git_refs_urlstringrequired
github.event.pull_request.head.repo.git_tags_urlstringrequired
github.event.pull_request.head.repo.git_urlstringrequired
github.event.pull_request.head.repo.has_downloadsbooleanrequired

Whether downloads are enabled.

github.event.pull_request.head.repo.has_issuesbooleanrequired

Whether issues are enabled.

github.event.pull_request.head.repo.has_pagesbooleanrequired
github.event.pull_request.head.repo.has_projectsbooleanrequired

Whether projects are enabled.

github.event.pull_request.head.repo.has_wikibooleanrequired

Whether the wiki is enabled.

github.event.pull_request.head.repo.homepagestring or nullrequired
github.event.pull_request.head.repo.hooks_urlstringrequired
github.event.pull_request.head.repo.html_urlstringrequired
github.event.pull_request.head.repo.idintegerrequired

Unique identifier of the repository

github.event.pull_request.head.repo.is_templatebooleanoptional
github.event.pull_request.head.repo.issue_comment_urlstringrequired
github.event.pull_request.head.repo.issue_events_urlstringrequired
github.event.pull_request.head.repo.issues_urlstringrequired
github.event.pull_request.head.repo.keys_urlstringrequired
github.event.pull_request.head.repo.labels_urlstringrequired
github.event.pull_request.head.repo.languagestring or nullrequired
github.event.pull_request.head.repo.languages_urlstringrequired
github.event.pull_request.head.repo.licenseobject or nullrequired
github.event.pull_request.head.repo.license.keystringrequired
github.event.pull_request.head.repo.license.namestringrequired
github.event.pull_request.head.repo.license.node_idstringrequired
github.event.pull_request.head.repo.license.spdx_idstringrequired
github.event.pull_request.head.repo.license.urlstring or nullrequired
github.event.pull_request.head.repo.master_branchstringoptional
github.event.pull_request.head.repo.merge_commit_messagePR_BODY, PR_TITLE, BLANKoptional

The default value for a merge commit message.

  • PR_TITLE - default to the pull request’s title.
  • PR_BODY - default to the pull request’s body.
  • BLANK - default to a blank commit message.
github.event.pull_request.head.repo.merge_commit_titlePR_TITLE, MERGE_MESSAGEoptional

The default value for a merge commit title.

  • PR_TITLE - default to the pull request’s title.
  • MERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
github.event.pull_request.head.repo.merges_urlstringrequired
github.event.pull_request.head.repo.milestones_urlstringrequired
github.event.pull_request.head.repo.mirror_urlstring or nullrequired
github.event.pull_request.head.repo.namestringrequired

The name of the repository.

github.event.pull_request.head.repo.node_idstringrequired
github.event.pull_request.head.repo.notifications_urlstringrequired
github.event.pull_request.head.repo.open_issuesintegerrequired
github.event.pull_request.head.repo.open_issues_countintegerrequired
github.event.pull_request.head.repo.organizationstringoptional
github.event.pull_request.head.repo.ownerobject or nullrequired
github.event.pull_request.head.repo.owner.avatar_urlstringoptional
github.event.pull_request.head.repo.owner.deletedbooleanoptional
github.event.pull_request.head.repo.owner.emailstring or nulloptional
github.event.pull_request.head.repo.owner.events_urlstringoptional
github.event.pull_request.head.repo.owner.followers_urlstringoptional
github.event.pull_request.head.repo.owner.following_urlstringoptional
github.event.pull_request.head.repo.owner.gists_urlstringoptional
github.event.pull_request.head.repo.owner.gravatar_idstringoptional
github.event.pull_request.head.repo.owner.html_urlstringoptional
github.event.pull_request.head.repo.owner.idintegerrequired
github.event.pull_request.head.repo.owner.loginstringrequired
github.event.pull_request.head.repo.owner.namestringoptional
github.event.pull_request.head.repo.owner.node_idstringoptional
github.event.pull_request.head.repo.owner.organizations_urlstringoptional
github.event.pull_request.head.repo.owner.received_events_urlstringoptional
github.event.pull_request.head.repo.owner.repos_urlstringoptional
github.event.pull_request.head.repo.owner.site_adminbooleanoptional
github.event.pull_request.head.repo.owner.starred_urlstringoptional
github.event.pull_request.head.repo.owner.subscriptions_urlstringoptional
github.event.pull_request.head.repo.owner.typeBot, User, Organizationoptional
github.event.pull_request.head.repo.owner.urlstringoptional
github.event.pull_request.head.repo.permissionsobjectoptional
github.event.pull_request.head.repo.permissions.adminbooleanrequired
github.event.pull_request.head.repo.permissions.maintainbooleanoptional
github.event.pull_request.head.repo.permissions.pullbooleanrequired
github.event.pull_request.head.repo.permissions.pushbooleanrequired
github.event.pull_request.head.repo.permissions.triagebooleanoptional
github.event.pull_request.head.repo.privatebooleanrequired

Whether the repository is private or public.

github.event.pull_request.head.repo.publicbooleanoptional
github.event.pull_request.head.repo.pulls_urlstringrequired
github.event.pull_request.head.repo.pushed_atnull or integer or stringrequired
github.event.pull_request.head.repo.releases_urlstringrequired
github.event.pull_request.head.repo.role_namestring or nulloptional
github.event.pull_request.head.repo.sizeintegerrequired
github.event.pull_request.head.repo.squash_merge_commit_messagePR_BODY, COMMIT_MESSAGES, BLANKoptional

The default value for a squash merge commit message:

  • PR_BODY - default to the pull request’s body.
  • COMMIT_MESSAGES - default to the branch’s commit messages.
  • BLANK - default to a blank commit message.
github.event.pull_request.head.repo.squash_merge_commit_titlePR_TITLE, COMMIT_OR_PR_TITLEoptional

The default value for a squash merge commit title:

  • PR_TITLE - default to the pull request’s title.
  • COMMIT_OR_PR_TITLE - default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
github.event.pull_request.head.repo.ssh_urlstringrequired
github.event.pull_request.head.repo.stargazersintegeroptional
github.event.pull_request.head.repo.stargazers_countintegerrequired
github.event.pull_request.head.repo.stargazers_urlstringrequired
github.event.pull_request.head.repo.statuses_urlstringrequired
github.event.pull_request.head.repo.subscribers_urlstringrequired
github.event.pull_request.head.repo.subscription_urlstringrequired
github.event.pull_request.head.repo.svn_urlstringrequired
github.event.pull_request.head.repo.tags_urlstringrequired
github.event.pull_request.head.repo.teams_urlstringrequired
github.event.pull_request.head.repo.topicsarray of stringsrequired
github.event.pull_request.head.repo.trees_urlstringrequired
github.event.pull_request.head.repo.updated_atstringrequired
github.event.pull_request.head.repo.urlstringrequired
github.event.pull_request.head.repo.use_squash_pr_title_as_defaultbooleanoptional

Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use squash_merge_commit_title instead.

github.event.pull_request.head.repo.visibilitypublic, private, internalrequired
github.event.pull_request.head.repo.watchersintegerrequired
github.event.pull_request.head.repo.watchers_countintegerrequired
github.event.pull_request.head.repo.web_commit_signoff_requiredbooleanoptional

Whether to require contributors to sign off on web-based commits

github.event.pull_request.head.shastringrequired
github.event.pull_request.head.userobject or nullrequired
github.event.pull_request.head.user.avatar_urlstringoptional
github.event.pull_request.head.user.deletedbooleanoptional
github.event.pull_request.head.user.emailstring or nulloptional
github.event.pull_request.head.user.events_urlstringoptional
github.event.pull_request.head.user.followers_urlstringoptional
github.event.pull_request.head.user.following_urlstringoptional
github.event.pull_request.head.user.gists_urlstringoptional
github.event.pull_request.head.user.gravatar_idstringoptional
github.event.pull_request.head.user.html_urlstringoptional
github.event.pull_request.head.user.idintegerrequired
github.event.pull_request.head.user.loginstringrequired
github.event.pull_request.head.user.namestringoptional
github.event.pull_request.head.user.node_idstringoptional
github.event.pull_request.head.user.organizations_urlstringoptional
github.event.pull_request.head.user.received_events_urlstringoptional
github.event.pull_request.head.user.repos_urlstringoptional
github.event.pull_request.head.user.site_adminbooleanoptional
github.event.pull_request.head.user.starred_urlstringoptional
github.event.pull_request.head.user.subscriptions_urlstringoptional
github.event.pull_request.head.user.typeBot, User, Organizationoptional
github.event.pull_request.head.user.urlstringoptional
github.event.pull_request.html_urlstringrequired
github.event.pull_request.idintegerrequired
github.event.pull_request.issue_urlstringrequired
github.event.pull_request.labelsarray of objectsrequired
github.event.pull_request.labels.colorstringrequired

6-character hex code, without the leading #, identifying the color

github.event.pull_request.labels.defaultbooleanrequired
github.event.pull_request.labels.descriptionstring or nullrequired
github.event.pull_request.labels.idintegerrequired
github.event.pull_request.labels.namestringrequired

The name of the label.

github.event.pull_request.labels.node_idstringrequired
github.event.pull_request.labels.urlstringrequired

URL for the label

github.event.pull_request.lockedbooleanrequired
github.event.pull_request.merge_commit_shastring or nullrequired
github.event.pull_request.merged_atstring or nullrequired
github.event.pull_request.milestoneobject or nullrequired

A collection of related issues and pull requests.

github.event.pull_request.milestone.closed_atstring or nullrequired
github.event.pull_request.milestone.closed_issuesintegerrequired
github.event.pull_request.milestone.created_atstringrequired
github.event.pull_request.milestone.creatorobject or nullrequired
github.event.pull_request.milestone.creator.avatar_urlstringoptional
github.event.pull_request.milestone.creator.deletedbooleanoptional
github.event.pull_request.milestone.creator.emailstring or nulloptional
github.event.pull_request.milestone.creator.events_urlstringoptional
github.event.pull_request.milestone.creator.followers_urlstringoptional
github.event.pull_request.milestone.creator.following_urlstringoptional
github.event.pull_request.milestone.creator.gists_urlstringoptional
github.event.pull_request.milestone.creator.gravatar_idstringoptional
github.event.pull_request.milestone.creator.html_urlstringoptional
github.event.pull_request.milestone.creator.idintegerrequired
github.event.pull_request.milestone.creator.loginstringrequired
github.event.pull_request.milestone.creator.namestringoptional
github.event.pull_request.milestone.creator.node_idstringoptional
github.event.pull_request.milestone.creator.organizations_urlstringoptional
github.event.pull_request.milestone.creator.received_events_urlstringoptional
github.event.pull_request.milestone.creator.repos_urlstringoptional
github.event.pull_request.milestone.creator.site_adminbooleanoptional
github.event.pull_request.milestone.creator.starred_urlstringoptional
github.event.pull_request.milestone.creator.subscriptions_urlstringoptional
github.event.pull_request.milestone.creator.urlstringoptional
github.event.pull_request.milestone.descriptionstring or nullrequired
github.event.pull_request.milestone.due_onstring or nullrequired
github.event.pull_request.milestone.html_urlstringrequired
github.event.pull_request.milestone.idintegerrequired
github.event.pull_request.milestone.labels_urlstringrequired
github.event.pull_request.milestone.node_idstringrequired
github.event.pull_request.milestone.numberintegerrequired

The number of the milestone.

github.event.pull_request.milestone.open_issuesintegerrequired
github.event.pull_request.milestone.stateopen, closedrequired

The state of the milestone.

github.event.pull_request.milestone.titlestringrequired

The title of the milestone.

github.event.pull_request.milestone.updated_atstringrequired
github.event.pull_request.milestone.urlstringrequired
github.event.pull_request.node_idstringrequired
github.event.pull_request.numberintegerrequired
github.event.pull_request.patch_urlstringrequired
github.event.pull_request.requested_reviewersarrayrequired
github.event.pull_request.requested_teamsarray of objectsrequired
github.event.pull_request.requested_teams.deletedbooleanoptional
github.event.pull_request.requested_teams.descriptionstring or nulloptional

Description of the team

github.event.pull_request.requested_teams.html_urlstringoptional
github.event.pull_request.requested_teams.idintegerrequired

Unique identifier of the team

github.event.pull_request.requested_teams.members_urlstringoptional
github.event.pull_request.requested_teams.namestringrequired

Name of the team

github.event.pull_request.requested_teams.node_idstringoptional
github.event.pull_request.requested_teams.parentobject or nulloptional
github.event.pull_request.requested_teams.parent.descriptionstring or nullrequired

Description of the team

github.event.pull_request.requested_teams.parent.html_urlstringrequired
github.event.pull_request.requested_teams.parent.idintegerrequired

Unique identifier of the team

github.event.pull_request.requested_teams.parent.members_urlstringrequired
github.event.pull_request.requested_teams.parent.namestringrequired

Name of the team

github.event.pull_request.requested_teams.parent.node_idstringrequired
github.event.pull_request.requested_teams.parent.permissionstringrequired

Permission that the team will have for its repositories

github.event.pull_request.requested_teams.parent.privacyopen, closed, secretrequired
github.event.pull_request.requested_teams.parent.repositories_urlstringrequired
github.event.pull_request.requested_teams.parent.slugstringrequired
github.event.pull_request.requested_teams.parent.urlstringrequired

URL for the team

github.event.pull_request.requested_teams.permissionstringoptional

Permission that the team will have for its repositories

github.event.pull_request.requested_teams.privacyopen, closed, secretoptional
github.event.pull_request.requested_teams.repositories_urlstringoptional
github.event.pull_request.requested_teams.slugstringoptional
github.event.pull_request.requested_teams.urlstringoptional

URL for the team

github.event.pull_request.review_comment_urlstringrequired
github.event.pull_request.review_comments_urlstringrequired
github.event.pull_request.stateopen, closedrequired
github.event.pull_request.statuses_urlstringrequired
github.event.pull_request.titlestringrequired
github.event.pull_request.updated_atstringrequired
github.event.pull_request.urlstringrequired
github.event.pull_request.userobject or nullrequired
github.event.pull_request.user.avatar_urlstringoptional
github.event.pull_request.user.deletedbooleanoptional
github.event.pull_request.user.emailstring or nulloptional
github.event.pull_request.user.events_urlstringoptional
github.event.pull_request.user.followers_urlstringoptional
github.event.pull_request.user.following_urlstringoptional
github.event.pull_request.user.gists_urlstringoptional
github.event.pull_request.user.gravatar_idstringoptional
github.event.pull_request.user.html_urlstringoptional
github.event.pull_request.user.idintegerrequired
github.event.pull_request.user.loginstringrequired
github.event.pull_request.user.namestringoptional
github.event.pull_request.user.node_idstringoptional
github.event.pull_request.user.organizations_urlstringoptional
github.event.pull_request.user.received_events_urlstringoptional
github.event.pull_request.user.repos_urlstringoptional
github.event.pull_request.user.site_adminbooleanoptional
github.event.pull_request.user.starred_urlstringoptional
github.event.pull_request.user.subscriptions_urlstringoptional
github.event.pull_request.user.typeBot, User, Organization, Mannequinoptional
github.event.pull_request.user.urlstringoptional
github.event.repositoryobjectrequired

The repository on GitHub where the event occurred. Webhook payloads contain the repository property when the event occurs from activity in a repository.

github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

created #

This event occurs when there is activity relating to a pull request review comment. A pull request review comment is a comment on a pull request's diff. For more information, see "Commenting on a pull request." For information about the APIs to manage pull request review comments, see the GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request reviews, pull request comments, or pull request review threads, use the pull_request_review, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

fieldtyperequireddescription
github.event.actioncreatedrequired
github.event.comment.original_lineinteger or nullrequired

The line of the blob to which the comment applies. The last line of the range for a multi-line comment

github.event.pull_request.assignee.typeBot, User, Organization, Mannequinoptional
github.event.pull_request.head.repo.has_discussionsbooleanoptional

Whether discussions are enabled.

github.event.pull_request.milestone.creator.typeBot, User, Organization, Mannequinoptional

deleted #

This event occurs when there is activity relating to a pull request review comment. A pull request review comment is a comment on a pull request's diff. For more information, see "Commenting on a pull request." For information about the APIs to manage pull request review comments, see the GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request reviews, pull request comments, or pull request review threads, use the pull_request_review, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

fieldtyperequireddescription
github.event.actiondeletedrequired
github.event.comment.original_lineintegerrequired

The line of the blob to which the comment applies. The last line of the range for a multi-line comment

github.event.pull_request.assignee.typeBot, User, Organizationoptional
github.event.pull_request.head.repo.has_discussionsbooleanrequired

Whether discussions are enabled.

github.event.pull_request.milestone.creator.typeBot, User, Organizationoptional

edited #

This event occurs when there is activity relating to a pull request review comment. A pull request review comment is a comment on a pull request's diff. For more information, see "Commenting on a pull request." For information about the APIs to manage pull request review comments, see the GraphQL API documentation or "Pull request review comments" in the REST API documentation.

For activity related to pull request reviews, pull request comments, or pull request review threads, use the pull_request_review, issue_comment, or pull_request_review_thread events instead.

To subscribe to this event, a GitHub App must have at least read-level access for the "Pull requests" repository permission.

fieldtyperequireddescription
github.event.actioneditedrequired
github.event.changesobjectrequired

The changes to the comment.

github.event.changes.bodyobjectoptional
github.event.changes.body.fromstringrequired

The previous version of the body.

github.event.comment.original_lineintegerrequired

The line of the blob to which the comment applies. The last line of the range for a multi-line comment

github.event.pull_request.assignee.typeBot, User, Organizationoptional
github.event.pull_request.head.repo.has_discussionsbooleanrequired

Whether discussions are enabled.

github.event.pull_request.milestone.creator.typeBot, User, Organization, Mannequinoptional