pub struct GitLab { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Host for GitLab
impl Host for GitLab
Source§fn merge_base(&mut self, pr: &PrThreads) -> Result<String, String>
fn merge_base(&mut self, pr: &PrThreads) -> Result<String, String>
GitLab’s diff is taken against the base_sha of the MR’s diff refs,
which is the merge base.
fn forge(&self) -> Forge
Source§fn lacks(&mut self, feature: Feature) -> Option<String>
fn lacks(&mut self, feature: Feature) -> Option<String>
Why the forge cannot do
feature, or None when it can.Source§fn fetch(&mut self, lookups: Vec<Lookup>) -> Result<FetchResult, String>
fn fetch(&mut self, lookups: Vec<Lookup>) -> Result<FetchResult, String>
The PRs the lookups name, in the order named, as
pr status
reports them before attention codes are derived.Source§fn threads(
&mut self,
target: &Target,
extra: bool,
bots: &[String],
) -> Result<Option<PrThreads>, String>
fn threads( &mut self, target: &Target, extra: bool, bots: &[String], ) -> Result<Option<PrThreads>, String>
A PR’s review threads, and with
extra its reviews and conversation
comments. None when there is no such PR.Source§fn pushed_at(&mut self, pr: &PrThreads, sha: &str) -> Result<Pushed, Lookup>
fn pushed_at(&mut self, pr: &PrThreads, sha: &str) -> Result<Pushed, Lookup>
When
sha (a prefix) was pushed to the PR.Source§fn files(
&mut self,
pr: &PrThreads,
oid: &str,
paths: &[String],
) -> Result<Vec<(String, String)>, String>
fn files( &mut self, pr: &PrThreads, oid: &str, paths: &[String], ) -> Result<Vec<(String, String)>, String>
Files at commit
oid, as (path, text); a file that cannot be read
is left out.Source§fn on_branch(&mut self, pr: &PrThreads, head: &str) -> Result<bool, String>
fn on_branch(&mut self, pr: &PrThreads, head: &str) -> Result<bool, String>
Whether
head is on the PR’s branch, for a head this clone cannot
place.Auto Trait Implementations§
impl !RefUnwindSafe for GitLab
impl !UnwindSafe for GitLab
impl Forget for GitLab
impl Freeze for GitLab
impl Send for GitLab
impl Sync for GitLab
impl Unpin for GitLab
impl UnsafeUnpin for GitLab
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