pub struct IssueOperations { /* private fields */ }Expand description
Issue Operations for tracking and updates
Implementations§
Source§impl IssueOperations
impl IssueOperations
Sourcepub fn create_comment(&self, body: String) -> IssueComment
pub fn create_comment(&self, body: String) -> IssueComment
Create a comment for posting to an issue
Sourcepub fn format_progress_comment(
&self,
current_step: &str,
total_steps: u32,
completed_steps: u32,
details: &str,
) -> IssueComment
pub fn format_progress_comment( &self, current_step: &str, total_steps: u32, completed_steps: u32, details: &str, ) -> IssueComment
Format a progress comment
Sourcepub fn format_status_change_comment(
&self,
old_status: IssueStatus,
new_status: IssueStatus,
) -> IssueComment
pub fn format_status_change_comment( &self, old_status: IssueStatus, new_status: IssueStatus, ) -> IssueComment
Format a status change comment
Sourcepub fn format_pr_link_comment(&self, pr_link: &PrLink) -> IssueComment
pub fn format_pr_link_comment(&self, pr_link: &PrLink) -> IssueComment
Format a PR linking comment
Sourcepub fn create_pr_closure_link(&self, pr_number: u32, pr_title: String) -> PrLink
pub fn create_pr_closure_link(&self, pr_number: u32, pr_title: String) -> PrLink
Create a PR closure link
Sourcepub fn create_pr_relation_link(
&self,
pr_number: u32,
pr_title: String,
) -> PrLink
pub fn create_pr_relation_link( &self, pr_number: u32, pr_title: String, ) -> PrLink
Create a PR relation link
Sourcepub fn format_closure_message(&self, issue_number: u32) -> String
pub fn format_closure_message(&self, issue_number: u32) -> String
Format a closure message for PR body
Sourcepub fn validate_comment(&self, comment: &IssueComment) -> Result<()>
pub fn validate_comment(&self, comment: &IssueComment) -> Result<()>
Validate a comment
Sourcepub fn extract_issue_number_from_closure(&self, message: &str) -> Result<u32>
pub fn extract_issue_number_from_closure(&self, message: &str) -> Result<u32>
Extract issue number from a closure message
Sourcepub async fn post_comment_to_issue(
&self,
issue_number: u32,
comment: &IssueComment,
) -> Result<u64>
pub async fn post_comment_to_issue( &self, issue_number: u32, comment: &IssueComment, ) -> Result<u64>
Post a comment to an issue using the GitHub API
Sourcepub async fn update_comment_on_issue(
&self,
comment_id: u64,
new_body: &str,
) -> Result<()>
pub async fn update_comment_on_issue( &self, comment_id: u64, new_body: &str, ) -> Result<()>
Update an existing comment on an issue
Sourcepub async fn link_pr_to_close_issue(
&self,
issue_number: u32,
pr_number: u32,
pr_title: &str,
) -> Result<u64>
pub async fn link_pr_to_close_issue( &self, issue_number: u32, pr_number: u32, pr_title: &str, ) -> Result<u64>
Link a PR to close an issue
Sourcepub async fn link_pr_to_relate_issue(
&self,
issue_number: u32,
pr_number: u32,
pr_title: &str,
) -> Result<u64>
pub async fn link_pr_to_relate_issue( &self, issue_number: u32, pr_number: u32, pr_title: &str, ) -> Result<u64>
Link a PR to relate to an issue
Sourcepub async fn post_progress_update(
&self,
issue_number: u32,
current_step: &str,
total_steps: u32,
completed_steps: u32,
details: &str,
) -> Result<u64>
pub async fn post_progress_update( &self, issue_number: u32, current_step: &str, total_steps: u32, completed_steps: u32, details: &str, ) -> Result<u64>
Post a progress update comment to an issue
Sourcepub async fn post_status_change(
&self,
issue_number: u32,
old_status: IssueStatus,
new_status: IssueStatus,
) -> Result<u64>
pub async fn post_status_change( &self, issue_number: u32, old_status: IssueStatus, new_status: IssueStatus, ) -> Result<u64>
Post a status change comment to an issue
Sourcepub async fn update_issue_status(
&self,
issue_number: u32,
new_status: IssueStatus,
) -> Result<()>
pub async fn update_issue_status( &self, issue_number: u32, new_status: IssueStatus, ) -> Result<()>
Update issue status (open, in progress, closed)
Trait Implementations§
Source§impl Clone for IssueOperations
impl Clone for IssueOperations
Source§fn clone(&self) -> IssueOperations
fn clone(&self) -> IssueOperations
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IssueOperations
impl RefUnwindSafe for IssueOperations
impl Send for IssueOperations
impl Sync for IssueOperations
impl Unpin for IssueOperations
impl UnwindSafe for IssueOperations
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