Skip to main content

Event

Enum Event 

Source
#[non_exhaustive]
pub enum Event {
Show 53 variants AddedToProject, Assigned, AutoMergeDisabled, AutoMergeEnabled, AutomaticBaseChangeFailed, AutomaticBaseChangeSucceeded, AutoRebaseEnabled, AutoSquashEnabled, BaseRefChanged, BaseRefForcePushed, Closed, Commented, CommentDeleted, Committed, Connected, ConvertToDraft, ConvertedNoteToIssue, ConvertedToDiscussion, CrossReferenced, Demilestoned, Deployed, DeploymentEnvironmentChanged, Disconnected, HeadRefDeleted, HeadRefForcePushed, HeadRefRestored, Labeled, LineCommented, Locked, Mentioned, MarkedAsDuplicate, Merged, Milestoned, MovedColumnsInProject, Pinned, ReadyForReview, Referenced, RemovedFromProject, Renamed, Reopened, ReviewDismissed, ReviewRequested, ReviewRequestRemoved, Reviewed, Subscribed, Transferred, Unassigned, Unlabeled, Unlocked, UnmarkedAsDuplicate, Unpinned, Unsubscribed, UserBlocked,
}
Expand description

Issue events are triggered by activity in issues and pull requests. https://docs.github.com/en/webhooks-and-events/events/issue-event-types

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AddedToProject

The issue or pull request was added to a project board.

§

Assigned

The issue or pull request was assigned to a user.

§

AutoMergeDisabled

Auto merge was disabled for a pull request.

§

AutoMergeEnabled

Auto merge was enabled for a pull request.

§

AutomaticBaseChangeFailed

GitHub unsuccessfully attempted to automatically change the base branch of the pull request.

§

AutomaticBaseChangeSucceeded

GitHub successfully attempted to automatically change the base branch of the pull request.

§

AutoRebaseEnabled

Auto Rebase Enable

§

AutoSquashEnabled

Auto Squash Enable

§

BaseRefChanged

The base reference branch of the pull request changed.

§

BaseRefForcePushed

Not documented in the Github issue events documentation.

§

Closed

The issue or pull request was closed. When the commit_id is present, it identifies the commit that closed the issue using “closes / fixes” syntax.

§

Commented

A comment was added to the issue or pull request.

§

CommentDeleted

A comment that was removed from the issue or pull request. This isn’t documented as part of the issues-event-types API but returned by the API.

§

Committed

A commit was added to the pull request’s HEAD branch.

§

Connected

The issue or pull request was linked to another issue or pull request.

§

ConvertToDraft

The pull request was converted to draft mode.

§

ConvertedNoteToIssue

The issue was created by converting a note in a project board to an issue.

§

ConvertedToDiscussion

The issue was closed and converted to a discussion.

§

CrossReferenced

The issue or pull request was referenced from another issue or pull request.

§

Demilestoned

The issue or pull request was removed from a milestone.

§

Deployed

The pull request was deployed.

§

DeploymentEnvironmentChanged

The pull request deployment environment was changed.

§

Disconnected

The issue or pull request was unlinked from another issue or pull request.

§

HeadRefDeleted

The pull request’s HEAD branch was deleted.

§

HeadRefForcePushed

The pull request’s HEAD branch was force pushed.

§

HeadRefRestored

The pull request’s HEAD branch was restored to the last known commit.

§

Labeled

A label was added to the issue or pull request.

§

LineCommented

A comment on a line of source in a pull request. Not documented in the issue and events documentation.

§

Locked

The issue or pull request was locked.

§

Mentioned

The actor was @mentioned in an issue or pull request body.

§

MarkedAsDuplicate

A user with write permissions marked an issue as a duplicate of another issue, or a pull request as a duplicate of another pull request.

§

Merged

The pull request was merged. The commit_id attribute is the SHA1 of the HEAD commit that was merged. The commit_repository is always the same as the main repository.

§

Milestoned

The issue or pull request was added to a milestone.

§

MovedColumnsInProject

The issue or pull request was moved between columns in a project board.

§

Pinned

The issue was pinned.

§

ReadyForReview

A draft pull request was marked as ready for review.

§

Referenced

The issue was referenced from a commit message. The commit_id attribute is the commit SHA1 of where that happened and the commit_repository is where that commit was pushed.

§

RemovedFromProject

The issue or pull request was removed from a project board.

§

Renamed

The issue or pull request title was changed.

§

Reopened

The issue or pull request was reopened.

§

ReviewDismissed

The pull request review was dismissed.

§

ReviewRequested

A pull request review was requested.

§

ReviewRequestRemoved

A pull request review request was removed.

§

Reviewed

The pull request was reviewed.

§

Subscribed

Someone subscribed to receive notifications for an issue or pull request.

§

Transferred

The issue was transferred to another repository.

§

Unassigned

A user was unassigned from the issue.

§

Unlabeled

A label was removed from the issue.

§

Unlocked

The issue was unlocked.

§

UnmarkedAsDuplicate

An issue that a user had previously marked as a duplicate of another issue is no longer considered a duplicate, or a pull request that a user had previously marked as a duplicate of another pull request is no longer considered a duplicate.

§

Unpinned

The issue was unpinned.

§

Unsubscribed

Someone unsubscribed from receiving notifications for an issue or pull request.

§

UserBlocked

An organization owner blocked a user from the organization.

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Event

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Event, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Event

Source§

impl Hash for Event

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Event) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Event

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnsafeUnpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> FromResponse for T

Source§

fn from_response<'async_trait, B>( response: Response<B>, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where B: Body<Data = Bytes, Error = Error> + Send + 'async_trait, T: 'async_trait,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more