pub struct GhCli { /* private fields */ }Expand description
GitHub implementation backed by the gh CLI.
Trait Implementations§
Source§impl ForgeClient for GhCli
impl ForgeClient for GhCli
Source§fn auth_status(&self) -> Result<(), ForgeError>
fn auth_status(&self) -> Result<(), ForgeError>
Fail with a message naming the forge credential or login remedy.
Source§fn list_prs_for_head(
&self,
dir: &Path,
head_branch: &str,
) -> Result<Vec<PrRecord>, ForgeError>
fn list_prs_for_head( &self, dir: &Path, head_branch: &str, ) -> Result<Vec<PrRecord>, ForgeError>
Every pull request whose head is
head_branch, in any state.fn create_pr( &self, dir: &Path, head_branch: &str, base_branch: &str, title: &str, body: &str, draft: bool, ) -> Result<PrRecord, ForgeError>
Source§fn set_pr_body(
&self,
dir: &Path,
number: u64,
body: &str,
) -> Result<(), ForgeError>
fn set_pr_body( &self, dir: &Path, number: u64, body: &str, ) -> Result<(), ForgeError>
Replace a pull request’s body wholesale.
Source§fn reopen_pr(&self, dir: &Path, number: u64) -> Result<(), ForgeError>
fn reopen_pr(&self, dir: &Path, number: u64) -> Result<(), ForgeError>
Reopen a closed pull request when the caller has separately established
that doing so is authorized. Current delivery policy deliberately never
calls this: a human close parks the round.
Source§fn ci_for_sha(
&self,
dir: &Path,
number: u64,
head_sha: &str,
) -> Result<CiSummary, ForgeError>
fn ci_for_sha( &self, dir: &Path, number: u64, head_sha: &str, ) -> Result<CiSummary, ForgeError>
Check runs, policies, and commit statuses for one exact PR head.
Auto Trait Implementations§
impl !RefUnwindSafe for GhCli
impl !UnwindSafe for GhCli
impl Freeze for GhCli
impl Send for GhCli
impl Sync for GhCli
impl Unpin for GhCli
impl UnsafeUnpin for GhCli
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
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