[−][src]Enum github_types::EventType
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.
Methods
impl EventType
[src]
Trait Implementations
impl Copy for EventType
[src]
impl PartialEq<EventType> for EventType
[src]
fn eq(&self, other: &EventType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Ord for EventType
[src]
fn cmp(&self, other: &EventType) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Eq for EventType
[src]
impl PartialOrd<EventType> for EventType
[src]
fn partial_cmp(&self, other: &EventType) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Clone for EventType
[src]
fn clone(&self) -> EventType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EventType
[src]
impl Display for EventType
[src]
impl FromStr for EventType
[src]
type Err = &'static str
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for EventType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'de> Deserialize<'de> for EventType
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,