pub struct GithubProvider { /* private fields */ }Trait Implementations§
Source§impl AppliedSourceRequirementsProvider for GithubProvider
impl AppliedSourceRequirementsProvider for GithubProvider
Source§fn applied_requirements<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
target_branch: &'life2 str,
commit_range: &'life3 CommitRange,
) -> Pin<Box<dyn Future<Output = Result<AppliedSourceRequirements>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn applied_requirements<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
target_branch: &'life2 str,
commit_range: &'life3 CommitRange,
) -> Pin<Box<dyn Future<Output = Result<AppliedSourceRequirements>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Reads the requirements applied to the exact requested revisions. Read more
Source§impl BranchUpdatesProvider for GithubProvider
impl BranchUpdatesProvider for GithubProvider
Source§fn branch_update<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
) -> Pin<Box<dyn Future<Output = Result<BranchUpdateObservation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn branch_update<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
) -> Pin<Box<dyn Future<Output = Result<BranchUpdateObservation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads current branch freshness for the change request’s exact revisions. Read more
Source§fn update_change_request_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
expected_head_sha: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), BranchUpdateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_change_request_branch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
expected_head_sha: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), BranchUpdateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Requests the provider’s native branch update only if the change
request still has
expected_head_sha. Read moreSource§impl ChangeRequestCommentsProvider for GithubProvider
impl ChangeRequestCommentsProvider for GithubProvider
Source§fn create_unanchored_comment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewCommentId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_unanchored_comment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewCommentId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Creates exactly one unanchored comment with
body and returns the
provider identifier assigned to that comment. Read moreSource§impl Clone for GithubProvider
impl Clone for GithubProvider
Source§fn clone(&self) -> GithubProvider
fn clone(&self) -> GithubProvider
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 CodeHostingProvider for GithubProvider
impl CodeHostingProvider for GithubProvider
fn repository<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
) -> Pin<Box<dyn Future<Output = Result<RepositoryFacts>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn settings<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
) -> Pin<Box<dyn Future<Output = Result<RepositorySettings>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply_settings<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
settings: &'life2 RepositorySettings,
) -> Pin<Box<dyn Future<Output = Result<RepositorySettings>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
name: &'life2 str,
value: SecretString,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl CodeReviewsProvider for GithubProvider
impl CodeReviewsProvider for GithubProvider
Source§fn change_request<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
) -> Pin<Box<dyn Future<Output = Result<ChangeRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn change_request<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
) -> Pin<Box<dyn Future<Output = Result<ChangeRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads one complete observation of the change request. Read more
Source§fn open_change_requests<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
head: &'life2 ChangeRequestHead,
) -> Pin<Box<dyn Future<Output = Result<Vec<ChangeRequestNumber>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn open_change_requests<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
head: &'life2 ChangeRequestHead,
) -> Pin<Box<dyn Future<Output = Result<Vec<ChangeRequestNumber>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_thread<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_repository: &'life1 Repository,
_number: ChangeRequestNumber,
thread_id: &'life2 ReviewThreadId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn resolve_finding<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
thread_id: &'life2 ReviewThreadId,
resolution: FindingResolution,
reply: &'life3 FindingResolutionReply,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve_finding<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
thread_id: &'life2 ReviewThreadId,
resolution: FindingResolution,
reply: &'life3 FindingResolutionReply,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Records why a finding is complete, records its assessed severity and
marks its platform thread resolved. Read more
Source§fn request_reviewers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewers: &'life2 [ReviewRequestTarget],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn request_reviewers<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewers: &'life2 [ReviewRequestTarget],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Asks the platform to add each target to the outstanding reviewer set. Read more
fn mark_ready<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn checks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
head_sha: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<CheckRun>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn checks<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
head_sha: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<CheckRun>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reads the current checks on one commit, completely paginated. Read more
fn publish_check<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
app_name: &'life2 str,
outcome: &'life3 CheckOutcome,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§impl Debug for GithubProvider
impl Debug for GithubProvider
Source§impl IssuesProvider for GithubProvider
impl IssuesProvider for GithubProvider
fn issue<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: IssueNumber,
) -> Pin<Box<dyn Future<Output = Result<Issue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn labels<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_label<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
label: &'life2 Label,
) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl JobsProvider for GithubProvider
impl JobsProvider for GithubProvider
fn dispatch<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
workflow: &'life2 str,
git_ref: &'life3 str,
inputs: &'life4 DispatchInputs,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = Result<WorkflowRun>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_run<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
run_id: RunId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ReleasesProvider for GithubProvider
impl ReleasesProvider for GithubProvider
fn release_by_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release: &'life2 NewRelease,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn upload_asset<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release_id: ReleaseId,
name: &'life2 str,
label: Option<&'life3 str>,
upload: AssetUpload,
) -> Pin<Box<dyn Future<Output = Result<ReleaseAsset>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§fn download_asset<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
asset_id: AssetId,
) -> Pin<Box<dyn Future<Output = Result<AssetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_asset<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
asset_id: AssetId,
) -> Pin<Box<dyn Future<Output = Result<AssetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a chunk stream without buffering the complete asset.
Source§impl ReviewPublishingProvider for GithubProvider
impl ReviewPublishingProvider for GithubProvider
Source§fn publish_review<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewer: &'life2 ReviewerApplication,
submission: &'life3 ReviewSubmission,
) -> Pin<Box<dyn Future<Output = Result<ReviewId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn publish_review<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewer: &'life2 ReviewerApplication,
submission: &'life3 ReviewSubmission,
) -> Pin<Box<dyn Future<Output = Result<ReviewId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Source§fn resume_review_publication<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewer: &'life2 ReviewerApplication,
key: &'life3 ReviewPublicationKey,
) -> Pin<Box<dyn Future<Output = Result<Option<ReviewId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resume_review_publication<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
number: ChangeRequestNumber,
reviewer: &'life2 ReviewerApplication,
key: &'life3 ReviewPublicationKey,
) -> Pin<Box<dyn Future<Output = Result<Option<ReviewId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Recovers a complete review publication using only its retained key. Read more
Source§impl ReviewTargetsProvider for GithubProvider
impl ReviewTargetsProvider for GithubProvider
Source§fn inspect_review_request_target<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
target: &'life2 ReviewRequestTarget,
) -> Pin<Box<dyn Future<Output = Result<ReviewRequestTargetInspection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn inspect_review_request_target<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
target: &'life2 ReviewRequestTarget,
) -> Pin<Box<dyn Future<Output = Result<ReviewRequestTargetInspection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Inspects one target using the credentials and provider context for
repository. Read moreSource§impl ReviewerApplicationsProvider for GithubProvider
impl ReviewerApplicationsProvider for GithubProvider
Source§fn resolve_reviewer_application<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
slug: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewerApplication>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_reviewer_application<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
slug: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ReviewerApplication>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves
slug, using the credentials selected for repository, to
the application and bot actor the provider observes. Read moreSource§impl SourceCodeConfigurationProvider for GithubProvider
impl SourceCodeConfigurationProvider for GithubProvider
Source§fn read_rulesets<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Ruleset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_rulesets<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Ruleset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns rulesets ordered by source type, source identity, and numeric GitHub ruleset ID. This order makes repeated inventory reads stable; it does not describe GitHub’s ruleset evaluation priority.
type Ruleset = GithubRuleset
Source§fn apply_ruleset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
ruleset: &'life2 Self::Ruleset,
) -> Pin<Box<dyn Future<Output = Result<Self::Ruleset>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply_ruleset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
ruleset: &'life2 Self::Ruleset,
) -> Pin<Box<dyn Future<Output = Result<Self::Ruleset>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Creates or replaces the native ruleset identified by
ruleset. Read moreSource§impl TextRecordsProvider for GithubProvider
impl TextRecordsProvider for GithubProvider
Source§fn embed_record(&self, text: &str, record: &ProviderTextRecord) -> String
fn embed_record(&self, text: &str, record: &ProviderTextRecord) -> String
Source§fn extract_records(&self, text: &str) -> Vec<ProviderTextRecord>
fn extract_records(&self, text: &str) -> Vec<ProviderTextRecord>
Extracts valid records from
text in source order. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GithubProvider
impl !UnwindSafe for GithubProvider
impl Freeze for GithubProvider
impl Send for GithubProvider
impl Sync for GithubProvider
impl Unpin for GithubProvider
impl UnsafeUnpin for GithubProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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