merge pull request activity and call

This commit is contained in:
M M Arif
2019-11-27 20:09:26 +05:00
parent 5b4cb3ff8e
commit 51dc31ef15
8 changed files with 427 additions and 6 deletions

View File

@@ -258,5 +258,5 @@ public interface ApiInterface {
Call<ResponseBody> getFileDiffContents(@Path("owner") String owner, @Path("repo") String repo, @Path("filename") String fileName);
@POST("repos/{owner}/{repo}/pulls/{index}/merge") // merge a pull request
Call<MergePullRequest> mergePullRequest(@Header("Authorization") String token, @Path("owner") String ownerName, @Path("repo") String repoName, @Path("index") String index, @Body MergePullRequest jsonStr);
Call<ResponseBody> mergePullRequest(@Header("Authorization") String token, @Path("owner") String ownerName, @Path("repo") String repoName, @Path("index") int index, @Body MergePullRequest jsonStr);
}