[][src]Enum github_types::EventType

pub enum EventType {
    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,
}

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]

pub fn name(self) -> &'static str[src]

Returns a static string for the event name.

Trait Implementations

impl Eq for EventType[src]

impl Copy for EventType[src]

impl PartialOrd<EventType> for EventType[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 PartialEq<EventType> for EventType[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for EventType[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for EventType[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]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Display for EventType[src]

impl Debug for EventType[src]

impl Hash for EventType[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for EventType[src]

type Err = &'static str

The associated error which can be returned from parsing.

impl<'de> Deserialize<'de> for EventType[src]

Auto Trait Implementations

impl Send for EventType

impl Sync for EventType

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]