Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2024-02-27 00:05:17 +00:00
parent 1f4beb8761
commit 379e3a228b
2 changed files with 110 additions and 0 deletions
@@ -1336,6 +1336,22 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index);
/**
* Get a pull request by base and head
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param base base of the pull request to get (required)
* @param head head of the pull request to get (required)
* @return Call<PullRequest>
*/
@GET("repos/{owner}/{repo}/pulls/{base}/{head}")
Call<PullRequest> repoGetPullRequestByBaseHead(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("base") String base,
@retrofit2.http.Path("head") String head);
/**
* Get commits for a pull request
*