Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2024-02-25 00:04:27 +00:00
parent ab0cfdc6c1
commit 1f4beb8761
2 changed files with 106 additions and 0 deletions
@@ -1152,6 +1152,20 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
/**
* Get the pull request of the commit
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param sha SHA of the commit to get (required)
* @return Call<PullRequest>
*/
@GET("repos/{owner}/{repo}/commits/{sha}/pull")
Call<PullRequest> repoGetCommitPullRequest(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("sha") String sha);
/**
* Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if
* a dir