diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 14ab5da..d4bfb95 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -6188,7 +6188,7 @@ Name | Type | Description | Notes # **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 # **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 diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java index a93cd50..b4a481e 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java @@ -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 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 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