pub enum CheckSource {
StatusChecks,
Actions,
BranchRules,
}Expand description
One place a host’s answer about a change request’s checks was read from.
A credential decides which of these can be reached, so which were consulted is
part of the answer rather than a property of the build: a fine-grained personal
access token cannot read check runs at all — GitHub offers no Checks
permission for one, and the permission it briefly had was withdrawn — so for
such a token the rollup is unreadable and Actions is everything it can see.
Variants§
StatusChecks
The host’s own rollup of every check on the change request: workflow jobs, check runs a third-party integration posted, and commit statuses alike, each carrying whether it blocks the merge. Complete, and the one source a fine-grained token cannot read.
Actions
GitHub Actions’ own view of the head commit: the jobs of the workflow runs on it and nothing else. A check that ran no workflow — anything a third-party integration posted as a check run or a commit status — is not in it and cannot be seen from it.
BranchRules
The repository’s rulesets, for which checks block a merge into the base. Narrower than the rollup’s own answer: it reports rulesets and not classic branch protection, so a repository protected the classic way reports nothing blocking here — which the publication path fails closed on, waiting for a required check that never arrives rather than merging without one.
Trait Implementations§
Source§impl Clone for CheckSource
impl Clone for CheckSource
impl Copy for CheckSource
Source§impl Debug for CheckSource
impl Debug for CheckSource
Source§impl<'de> Deserialize<'de> for CheckSource
impl<'de> Deserialize<'de> for CheckSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CheckSource
Source§impl Hash for CheckSource
impl Hash for CheckSource
Source§impl Ord for CheckSource
impl Ord for CheckSource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CheckSource
impl PartialEq for CheckSource
Source§impl PartialOrd for CheckSource
impl PartialOrd for CheckSource
Source§impl Serialize for CheckSource
impl Serialize for CheckSource
impl StructuralPartialEq for CheckSource
Auto Trait Implementations§
impl Freeze for CheckSource
impl RefUnwindSafe for CheckSource
impl Send for CheckSource
impl Sync for CheckSource
impl Unpin for CheckSource
impl UnsafeUnpin for CheckSource
impl UnwindSafe for CheckSource
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.