mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-06 18:02:16 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user