pub struct PullRequest {
pub action: PrAction,
pub raw_action: String,
pub number: u64,
pub head_sha: Option<String>,
pub head_ref: String,
pub base_ref: String,
pub fork: bool,
pub title: String,
}Expand description
A pull request event (GitHub and Gitea/Forgejo pull_request, GitLab
Merge Request Hook).
Fields§
§action: PrAction§raw_action: StringThe action as the sender named it (synchronize, update, …).
number: u64GitHub/Gitea number, GitLab iid.
head_sha: Option<String>§head_ref: StringThe branch the changes are on (in the head repository).
base_ref: StringThe branch it would merge into.
fork: boolThe head is in another repository than the base: a fork, whose code nobody with push access wrote.
title: StringImplementations§
Source§impl PullRequest
impl PullRequest
Sourcepub fn head_ref_in_base(provider: Provider, number: u64) -> String
pub fn head_ref_in_base(provider: Provider, number: u64) -> String
The ref the forge keeps the request’s head under, in the base repository (so a fork’s commits are fetched from the base).
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§impl Debug for PullRequest
impl Debug for PullRequest
impl Eq for PullRequest
Source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
impl StructuralPartialEq for PullRequest
Auto Trait Implementations§
impl Freeze for PullRequest
impl RefUnwindSafe for PullRequest
impl Send for PullRequest
impl Sync for PullRequest
impl Unpin for PullRequest
impl UnsafeUnpin for PullRequest
impl UnwindSafe for PullRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.