pub struct PrRecord {
pub number: u64,
pub state: PrState,
pub url: String,
pub is_draft: bool,
pub base: String,
}Expand description
One pull request as GitHub reports it for a head branch.
Fields§
§number: u64§state: PrState§url: String§is_draft: bool§base: StringThe branch this pull request merges INTO, as gh reports baseRefName.
Carried because GitHub’s one-open-pull-request constraint is per (head,
base) PAIR, not per head — two open pull requests from the same branch
into different bases are entirely legal. Reconciliation without this
field picked the highest-numbered open pull request for the head and
rewrote its body, so a second pull request opened from the same branch
into release/2.1 (by a human, or by a round invoked with a different
--pr-base) captured every later round: its description — which this run
did not author — was replaced wholesale, and the pull request the
orchestrator actually tracks kept a stale body forever.
Trait Implementations§
impl StructuralPartialEq for PrRecord
Auto Trait Implementations§
impl Freeze for PrRecord
impl RefUnwindSafe for PrRecord
impl Send for PrRecord
impl Sync for PrRecord
impl Unpin for PrRecord
impl UnsafeUnpin for PrRecord
impl UnwindSafe for PrRecord
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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