Skip to main content

azure_devops/pull_requests/methods/
get.rs

1use super::super::models::GitPullRequest;
2use super::super::PullRequestsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl PullRequestsClient<'_> {
7    pub async fn get(&self, repo: &str, id: i64) -> Result<GitPullRequest> {
8        self.http.get(&ApiPath::pr(repo, id), &[]).await
9    }
10}