Skip to main content

close_pr

Function close_pr 

Source
pub fn close_pr(
    token: &str,
    repo: &Repo,
    number: u64,
    comment: &str,
) -> Result<String>
Expand description

Posts comment on pull request number, closes it, and returns its URL.

ยงErrors

Returns an error when the GitHub client cannot be built, the comment or close request fails, or the closed pull request response carries no URL.