pub struct Github { /* private fields */ }Expand description
GitHub issues as an AI6 Source and Tracker.
Implementations§
Trait Implementations§
Source§impl ProviderDecl for Github
impl ProviderDecl for Github
Source§impl Source for Github
impl Source for Github
Source§fn issue_templates(&self) -> Result<Vec<String>, ProviderError>
fn issue_templates(&self) -> Result<Vec<String>, ProviderError>
The text of the project’s issue templates, read through the tracker: a hidden comment an
item carries from one of them is the template’s own, and vetting does not hold it.
Empty when the provider has no templates or the project has none.
Source§fn poll(&self, request: SourcePoll) -> Result<SourceBatch, ProviderError>
fn poll(&self, request: SourcePoll) -> Result<SourceBatch, ProviderError>
Returns the items that changed since
request.cursor and match the filters the
provider was configured with. Blocks for the duration of the network exchange.Source§fn board_url(&self) -> Result<Option<String>, ProviderError>
fn board_url(&self) -> Result<Option<String>, ProviderError>
The page where people read this instance’s issues as a board, from its own settings and
with no request to the tracker;
None when the provider names none.Source§fn facts(&self) -> Result<SourceFacts, ProviderError>
fn facts(&self) -> Result<SourceFacts, ProviderError>
What this instance’s settings say of its web page, intake labels, hosts and credential
variables, with no request to the tracker. The default says nothing.
Source§impl Tracker for Github
impl Tracker for Github
Source§fn capabilities(
&self,
item: Option<String>,
) -> Result<TrackerCapabilities, ProviderError>
fn capabilities( &self, item: Option<String>, ) -> Result<TrackerCapabilities, ProviderError>
Returns what the instance can do;
item adds the answers that depend on one issue.Source§fn replies(&self, request: ReplyPoll) -> Result<ReplyBatch, ProviderError>
fn replies(&self, request: ReplyPoll) -> Result<ReplyBatch, ProviderError>
Lists the comments made after
request.since on the issues it names.Source§fn pull_for_branch(
&self,
branch: String,
) -> Result<Option<String>, ProviderError>
fn pull_for_branch( &self, branch: String, ) -> Result<Option<String>, ProviderError>
The open pull request whose head is
branch in this instance’s repository, as its
item ID; None when there is none or the instance has no pull requests.Source§fn post(&self, post: TrackerPost) -> Result<PostedComment, ProviderError>
fn post(&self, post: TrackerPost) -> Result<PostedComment, ProviderError>
Posts a comment, or edits the one
post.edit names.Source§fn update(&self, update: TrackerUpdate) -> Result<(), ProviderError>
fn update(&self, update: TrackerUpdate) -> Result<(), ProviderError>
Changes labels, workflow state or assignees.
Auto Trait Implementations§
impl !Freeze for Github
impl !RefUnwindSafe for Github
impl !UnwindSafe for Github
impl Send for Github
impl Sync for Github
impl Unpin for Github
impl UnsafeUnpin for Github
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.