Skip to main content

azure_devops/pull_requests/methods/
create.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 create(&self, repo: &str, pr: &GitPullRequest) -> Result<GitPullRequest> {
8        self.http.post(&ApiPath::prs(repo), &[], Some(pr)).await
9    }
10}