pub struct MergeInfo {
pub pr_id: String,
pub number: u64,
pub url: String,
pub is_draft: bool,
pub head_oid: String,
pub merge_state: Option<String>,
pub already_queued: bool,
pub checks: PrCheckState,
}Expand description
What the merge-queue op needs to know about a branch’s open PR.
Resolved fresh at enqueue time — never from the badge cache, which carries
neither the PR node id the mutation needs nor the current merge state.
Fields§
§pr_id: StringThe PR’s GraphQL global node id — the enqueuePullRequest input.
number: u64The PR number, for display.
url: StringThe PR’s web URL.
is_draft: boolWhether the PR is a draft (GitHub refuses to queue a draft).
head_oid: StringThe remote PR head commit — compared to the local head to catch a stale UI.
merge_state: Option<String>GitHub’s mergeability verdict, upper-cased (CLEAN, BLOCKED, DIRTY,
UNKNOWN, …); None when the field was absent from the reply.
already_queued: boolWhether the PR is already in the merge queue — an enqueue is then a no-op (idempotent success, not a failure).
checks: PrCheckStateThe rolled-up CI verdict on the PR head.
Trait Implementations§
impl Eq for MergeInfo
impl StructuralPartialEq for MergeInfo
Auto Trait Implementations§
impl Freeze for MergeInfo
impl RefUnwindSafe for MergeInfo
impl Send for MergeInfo
impl Sync for MergeInfo
impl Unpin for MergeInfo
impl UnsafeUnpin for MergeInfo
impl UnwindSafe for MergeInfo
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
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.