mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-05-31 07:01:55 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -6188,7 +6188,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="repoGetEditorConfig"></a>
|
||||
# **repoGetEditorConfig**
|
||||
> Void repoGetEditorConfig(owner, repo, filepath)
|
||||
> Void repoGetEditorConfig(owner, repo, filepath, ref)
|
||||
|
||||
Get the EditorConfig definitions of a file in a repository
|
||||
|
||||
@@ -6247,8 +6247,9 @@ RepositoryApi apiInstance = new RepositoryApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
String filepath = "filepath_example"; // String | filepath of file to get
|
||||
String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
||||
try {
|
||||
Void result = apiInstance.repoGetEditorConfig(owner, repo, filepath);
|
||||
Void result = apiInstance.repoGetEditorConfig(owner, repo, filepath, ref);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#repoGetEditorConfig");
|
||||
@@ -6263,6 +6264,7 @@ Name | Type | Description | Notes
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**filepath** | **String**| filepath of file to get |
|
||||
**ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -10551,7 +10553,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="repoTestHook"></a>
|
||||
# **repoTestHook**
|
||||
> Void repoTestHook(owner, repo, id)
|
||||
> Void repoTestHook(owner, repo, id, ref)
|
||||
|
||||
Test a push webhook
|
||||
|
||||
@@ -10610,8 +10612,9 @@ RepositoryApi apiInstance = new RepositoryApi();
|
||||
String owner = "owner_example"; // String | owner of the repo
|
||||
String repo = "repo_example"; // String | name of the repo
|
||||
Long id = 789L; // Long | id of the hook to test
|
||||
String ref = "ref_example"; // String | The name of the commit/branch/tag. Default the repository’s default branch (usually master)
|
||||
try {
|
||||
Void result = apiInstance.repoTestHook(owner, repo, id);
|
||||
Void result = apiInstance.repoTestHook(owner, repo, id, ref);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling RepositoryApi#repoTestHook");
|
||||
@@ -10626,6 +10629,7 @@ Name | Type | Description | Notes
|
||||
**owner** | **String**| owner of the repo |
|
||||
**repo** | **String**| name of the repo |
|
||||
**id** | **Long**| id of the hook to test |
|
||||
**ref** | **String**| The name of the commit/branch/tag. Default the repository’s default branch (usually master) | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -1084,13 +1084,16 @@ public interface RepositoryApi {
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param filepath filepath of file to get (required)
|
||||
* @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually
|
||||
* master) (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("repos/{owner}/{repo}/editorconfig/{filepath}")
|
||||
Call<Void> repoGetEditorConfig(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("filepath") String filepath);
|
||||
@retrofit2.http.Path("filepath") String filepath,
|
||||
@retrofit2.http.Query("ref") String ref);
|
||||
|
||||
/**
|
||||
* Get a Git hook
|
||||
@@ -1833,13 +1836,16 @@ public interface RepositoryApi {
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @param id id of the hook to test (required)
|
||||
* @param ref The name of the commit/branch/tag. Default the repository’s default branch (usually
|
||||
* master) (optional)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@POST("repos/{owner}/{repo}/hooks/{id}/tests")
|
||||
Call<Void> repoTestHook(
|
||||
@retrofit2.http.Path("owner") String owner,
|
||||
@retrofit2.http.Path("repo") String repo,
|
||||
@retrofit2.http.Path("id") Long id);
|
||||
@retrofit2.http.Path("id") Long id,
|
||||
@retrofit2.http.Query("ref") String ref);
|
||||
|
||||
/**
|
||||
* List a repo's tracked times
|
||||
|
||||
Reference in New Issue
Block a user