Skip to content

Commit

Permalink
Uncomment pr_commits function (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Aug 30, 2024
1 parent 0459e31 commit 807cc75
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/api/pulls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<'octo> PullRequestHandler<'octo> {
///
#[deprecated(
since = "0.34.4",
note = "specific PR builder transitioned to pr_review_actions, reply_to_comment, reply_to_comment"
note = "specific PR builder transitioned to pr_review_actions, pr_commits, reply_to_comment"
)]
//FIXME: remove?
pub fn pull_number(&self, pull_nr: u64) -> SpecificPullRequestBuilder {
Expand All @@ -426,9 +426,14 @@ impl<'octo> PullRequestHandler<'octo> {
}

/// /repos/{owner}/{repo}/pulls/{pull_number}/commits
// pub fn pr_commits(&self, pull_nr: u64) -> SpecificPullRequestCommentBuilder<'octo, '_> {
// SpecificPullRequestCommentBuilder::new(self, pull_nr, 0)
// }
pub async fn pr_commits(
&self,
pull_nr: u64,
) -> crate::Result<crate::Page<crate::models::repos::RepoCommit>> {
SpecificPullRequestBuilder::new(self, pull_nr)
.commits()
.await
}

// /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies
/// Creates a reply to a specific comment of a pull request specified in the first argument
Expand Down

0 comments on commit 807cc75

Please sign in to comment.