mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-16 14:40:37 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -4647,10 +4647,12 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="repoCompareDiff"></a>
|
||||
# **repoCompareDiff**
|
||||
> Compare repoCompareDiff(owner, repo, basehead)
|
||||
> Compare repoCompareDiff(owner, repo, basehead, output)
|
||||
|
||||
Get commit comparison information
|
||||
|
||||
By default returns JSON commit comparison information. The raw diff or patch can be requested with the `output` query parameter set to `diff` or `patch` respectively.
|
||||
|
||||
### Example
|
||||
```java
|
||||
// Import classes:
|
||||
@@ -4705,9 +4707,10 @@ Token.setApiKey("YOUR API KEY");
|
||||
RepositoryApi apiInstance = new RepositoryApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
String basehead = "basehead_example"; // String | compare two branches or commits
|
||||
String basehead = "basehead_example"; // String | compare two refs as `base...head` (or `base..head`); refs may be branches, tags, full or short SHAs, including branch names that contain slashes.
|
||||
String output = "output_example"; // String | return the raw comparison as `diff` or `patch` instead of JSON
|
||||
try {
|
||||
Compare result = apiInstance.repoCompareDiff(owner, repo, basehead);
|
||||
Compare result = apiInstance.repoCompareDiff(owner, repo, basehead, output);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#repoCompareDiff");
|
||||
@@ -4721,7 +4724,8 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**basehead** | **String**| compare two branches or commits |
|
||||
**basehead** | **String**| compare two refs as `base...head` (or `base..head`); refs may be branches, tags, full or short SHAs, including branch names that contain slashes. |
|
||||
**output** | **String**| return the raw comparison as `diff` or `patch` instead of JSON | [optional] [enum: diff, patch]
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -4734,7 +4738,7 @@ Name | Type | Description | Notes
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
- **Accept**: application/json, text/plain
|
||||
|
||||
<a name="repoCreateBranch"></a>
|
||||
# **repoCreateBranch**
|
||||
|
||||
@@ -883,18 +883,25 @@ public interface RepositoryApi {
|
||||
@retrofit2.http.Path("team") String team);
|
||||
|
||||
/**
|
||||
* Get commit comparison information
|
||||
* Get commit comparison information By default returns JSON commit comparison information. The
|
||||
* raw diff or patch can be requested with the `output` query parameter set to
|
||||
* `diff` or `patch` respectively.
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param basehead compare two branches or commits (required)
|
||||
* @param basehead compare two refs as `base...head` (or `base..head`); refs
|
||||
* may be branches, tags, full or short SHAs, including branch names that contain slashes.
|
||||
* (required)
|
||||
* @param output return the raw comparison as `diff` or `patch` instead of
|
||||
* JSON (optional)
|
||||
* @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);
|
||||
@retrofit2.http.Path("basehead") String basehead,
|
||||
@retrofit2.http.Query("output") String output);
|
||||
|
||||
/**
|
||||
* Create a branch
|
||||
|
||||
Reference in New Issue
Block a user