use super::super::models::GitPullRequest;
use super::super::PullRequestsClient;
use crate::constants::ApiPath;
use crate::error::Result;
impl PullRequestsClient<'_> {
pub async fn create(&self, repo: &str, pr: &GitPullRequest) -> Result<GitPullRequest> {
self.http.post(&ApiPath::prs(repo), &[], Some(pr)).await
}
}