diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md index 72ec1eb..4fcf49e 100644 --- a/docs/RepositoryApi.md +++ b/docs/RepositoryApi.md @@ -11350,7 +11350,7 @@ 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) +String ref = "ref_example"; // String | The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. try { Void result = apiInstance.repoTestHook(owner, repo, id, ref); System.out.println(result); @@ -11367,7 +11367,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] + **ref** | **String**| The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. | [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 25607b1..7238786 100644 --- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java +++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java @@ -1954,8 +1954,8 @@ 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) + * @param ref The name of the commit/branch/tag, indicates which commit will be loaded to the + * webhook payload. (optional) * @return Call<Void> */ @POST("repos/{owner}/{repo}/hooks/{id}/tests")