Skip to content

Commit

Permalink
Uncomment pr_commits function
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Aug 16, 2024
1 parent 70e9b9e commit 24575e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,9 @@ 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 24575e7

Please sign in to comment.