Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2024-04-24 00:04:44 +00:00
parent a03f04e4b0
commit 4294999428
2 changed files with 107 additions and 0 deletions
@@ -17,6 +17,7 @@ import org.gitnex.tea4j.v2.models.ChangedFile;
import org.gitnex.tea4j.v2.models.CombinedStatus;
import org.gitnex.tea4j.v2.models.Commit;
import org.gitnex.tea4j.v2.models.CommitStatus;
import org.gitnex.tea4j.v2.models.Compare;
import org.gitnex.tea4j.v2.models.ContentsResponse;
import org.gitnex.tea4j.v2.models.CreateBranchProtectionOption;
import org.gitnex.tea4j.v2.models.CreateBranchRepoOption;
@@ -426,6 +427,20 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("team") String team);
/**
* Get commit comparison information
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param basehead compare two branches or commits (required)
* @return Call<Compare>
*/
@GET("repos/{owner}/{repo}/compare/{basehead}")
Call<Compare> repoCompareDiff(
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("basehead") String basehead);
/**
* Create a branch
*