pub struct GitContext {
pub repo: Option<String>,
pub pr_number: Option<u32>,
pub branch: Option<String>,
pub commit: Option<String>,
pub ci_run_id: Option<String>,
}Expand description
PR + repo metadata passed from CI so uploaded sessions can be tied back to the PR that produced them. All fields optional so partial context still helps (e.g. baseline runs on main have a branch + commit but no PR number).
Fields§
§repo: Option<String>Full repo identifier — “owner/repo” style (e.g. “kpwithcode/lobe”).
pr_number: Option<u32>GitHub PR number, when the session was captured in a PR CI job.
branch: Option<String>Branch the CI ran against.
commit: Option<String>Full git SHA of the commit under test.
ci_run_id: Option<String>GitHub Actions run identifier for linking back from PR comments.
Trait Implementations§
Source§impl Clone for GitContext
impl Clone for GitContext
Source§fn clone(&self) -> GitContext
fn clone(&self) -> GitContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitContext
impl Debug for GitContext
Source§impl Default for GitContext
impl Default for GitContext
Source§fn default() -> GitContext
fn default() -> GitContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitContext
impl<'de> Deserialize<'de> for GitContext
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitContext
impl RefUnwindSafe for GitContext
impl Send for GitContext
impl Sync for GitContext
impl Unpin for GitContext
impl UnsafeUnpin for GitContext
impl UnwindSafe for GitContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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