pub enum EventType {
Show 44 variants
Wildcard,
Ping,
CheckRun,
CheckSuite,
CommitComment,
ContentReference,
Create,
Delete,
Deployment,
DeploymentStatus,
Fork,
GitHubAppAuthorization,
Gollum,
Installation,
IntegrationInstallation,
InstallationRepositories,
IntegrationInstallationRepositories,
IssueComment,
Issues,
Label,
MarketplacePurchase,
Member,
Membership,
Milestone,
Organization,
OrgBlock,
PageBuild,
ProjectCard,
ProjectColumn,
Project,
Public,
PullRequest,
PullRequestReviewComment,
PullRequestReview,
Push,
Release,
Repository,
RepositoryImport,
RepositoryVulnerabilityAlert,
SecurityAdvisory,
Status,
Team,
TeamAdd,
Watch,
}
Expand description
GitHub events that are specified in the X-Github-Event header.
Variants§
Wildcard
(Special event.) Any time any event is triggered (Wildcard Event).
Ping
(Special event.) Sent when a webhook is added.
CheckRun
Triggered when a check run is created
, rerequested
, completed
, or
has a requested_action
.
CheckSuite
Triggered when a check suite is completed
, requested
, or
rerequested
.
CommitComment
Any time a Commit is commented on.
ContentReference
Triggered when the body or comment of an issue or pull request includes a URL that matches a configured content reference domain. Only GitHub Apps can receive this event.
Create
Any time a Branch or Tag is created.
Delete
Any time a Branch or Tag is deleted.
Deployment
Any time a Repository has a new deployment created from the API.
DeploymentStatus
Any time a deployment for a Repository has a status update from the API.
Fork
Any time a Repository is forked.
GitHubAppAuthorization
Triggered when someone revokes their authorization of a GitHub App.
Gollum
Any time a Wiki page is updated.
Installation
Any time a GitHub App is installed or uninstalled.
IntegrationInstallation
Same as Installation
, but deprecated. This event is sent alongside
the Installation
event, but can always be ignored.
InstallationRepositories
Any time a repository is added or removed from an installation.
IntegrationInstallationRepositories
Same as InstallationRepositories
, but deprecated. This event is sent
alongside the InstallationRepositories
event, but can always be
ignored.
IssueComment
Any time a comment on an issue is created, edited, or deleted.
Issues
Any time an Issue is assigned, unassigned, labeled, unlabeled, opened, edited, milestoned, demilestoned, closed, or reopened.
Label
Any time a Label is created, edited, or deleted.
MarketplacePurchase
Any time a user purchases, cancels, or changes their GitHub Marketplace plan.
Member
Any time a User is added or removed as a collaborator to a Repository, or has their permissions modified.
Membership
Any time a User is added or removed from a team. Organization hooks only.
Milestone
Any time a Milestone is created, closed, opened, edited, or deleted.
Organization
Any time a user is added, removed, or invited to an Organization. Organization hooks only.
OrgBlock
Any time an organization blocks or unblocks a user. Organization hooks only.
PageBuild
Any time a Pages site is built or results in a failed build.
ProjectCard
Any time a Project Card is created, edited, moved, converted to an issue, or deleted.
ProjectColumn
Any time a Project Column is created, edited, moved, or deleted.
Project
Any time a Project is created, edited, closed, reopened, or deleted.
Public
Any time a Repository changes from private to public.
PullRequest
Any time a pull request is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, or synchronized (updated due to a new push in the branch that the pull request is tracking). Also any time a pull request review is requested, or a review request is removed.
PullRequestReviewComment
Any time a comment on a pull request’s unified diff is created, edited, or deleted (in the Files Changed tab).
PullRequestReview
Any time a pull request review is submitted, edited, or dismissed.
Push
Any Git push to a Repository, including editing tags or branches. Commits via API actions that update references are also counted. This is the default event.
Release
Any time a Release is published in a Repository.
Repository
Any time a Repository is created, deleted (organization hooks only), archived, unarchived, made public, or made private.
RepositoryImport
Triggered when a successful, cancelled, or failed repository import finishes for a GitHub organization or a personal repository. To receive this event for a personal repository, you must create an empty repository prior to the import. This event can be triggered using either the GitHub Importer or the Source imports API.
RepositoryVulnerabilityAlert
Triggered when a security alert is created, dismissed, or resolved.
SecurityAdvisory
Triggered when a new security advisory is published, updated, or withdrawn. A security advisory provides information about security-related vulnerabilities in software on GitHub. Security Advisory webhooks are available to GitHub Apps only.
Status
Any time a Repository has a status update from the API.
Team
Any time a team is created, deleted, modified, or added to or removed from a repository. Organization hooks only
TeamAdd
Any time a team is added or modified on a Repository.
Watch
Any time a User stars a Repository.