diff --git a/docs/ActionWorkflowJob.md b/docs/ActionWorkflowJob.md
new file mode 100644
index 0000000..611a393
--- /dev/null
+++ b/docs/ActionWorkflowJob.md
@@ -0,0 +1,23 @@
+# ActionWorkflowJob
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**completedAt** | [**Date**](Date.md) | | [optional]
+**conclusion** | **String** | | [optional]
+**createdAt** | [**Date**](Date.md) | | [optional]
+**headBranch** | **String** | | [optional]
+**headSha** | **String** | | [optional]
+**htmlUrl** | **String** | | [optional]
+**id** | **Long** | | [optional]
+**labels** | **List<String>** | | [optional]
+**name** | **String** | | [optional]
+**runAttempt** | **Long** | | [optional]
+**runId** | **Long** | | [optional]
+**runUrl** | **String** | | [optional]
+**runnerId** | **Long** | | [optional]
+**runnerName** | **String** | | [optional]
+**startedAt** | [**Date**](Date.md) | | [optional]
+**status** | **String** | | [optional]
+**steps** | [**List<ActionWorkflowStep>**](ActionWorkflowStep.md) | | [optional]
+**url** | **String** | | [optional]
diff --git a/docs/ActionWorkflowJobsResponse.md b/docs/ActionWorkflowJobsResponse.md
new file mode 100644
index 0000000..0cc83a0
--- /dev/null
+++ b/docs/ActionWorkflowJobsResponse.md
@@ -0,0 +1,7 @@
+# ActionWorkflowJobsResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**jobs** | [**List<ActionWorkflowJob>**](ActionWorkflowJob.md) | | [optional]
+**totalCount** | **Long** | | [optional]
diff --git a/docs/ActionWorkflowRun.md b/docs/ActionWorkflowRun.md
index 6c3fd2f..732c983 100644
--- a/docs/ActionWorkflowRun.md
+++ b/docs/ActionWorkflowRun.md
@@ -3,6 +3,22 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**actor** | [**User**](User.md) | | [optional]
+**completedAt** | [**Date**](Date.md) | | [optional]
+**conclusion** | **String** | | [optional]
+**displayTitle** | **String** | | [optional]
+**event** | **String** | | [optional]
+**headBranch** | **String** | | [optional]
+**headRepository** | [**Repository**](Repository.md) | | [optional]
**headSha** | **String** | | [optional]
+**htmlUrl** | **String** | | [optional]
**id** | **Long** | | [optional]
+**path** | **String** | | [optional]
+**repository** | [**Repository**](Repository.md) | | [optional]
**repositoryId** | **Long** | | [optional]
+**runAttempt** | **Long** | | [optional]
+**runNumber** | **Long** | | [optional]
+**startedAt** | [**Date**](Date.md) | | [optional]
+**status** | **String** | | [optional]
+**triggerActor** | [**User**](User.md) | | [optional]
+**url** | **String** | | [optional]
diff --git a/docs/ActionWorkflowRunsResponse.md b/docs/ActionWorkflowRunsResponse.md
new file mode 100644
index 0000000..6e06424
--- /dev/null
+++ b/docs/ActionWorkflowRunsResponse.md
@@ -0,0 +1,7 @@
+# ActionWorkflowRunsResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**totalCount** | **Long** | | [optional]
+**workflowRuns** | [**List<ActionWorkflowRun>**](ActionWorkflowRun.md) | | [optional]
diff --git a/docs/ActionWorkflowStep.md b/docs/ActionWorkflowStep.md
new file mode 100644
index 0000000..443b9a9
--- /dev/null
+++ b/docs/ActionWorkflowStep.md
@@ -0,0 +1,11 @@
+# ActionWorkflowStep
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**completedAt** | [**Date**](Date.md) | | [optional]
+**conclusion** | **String** | | [optional]
+**name** | **String** | | [optional]
+**number** | **Long** | | [optional]
+**startedAt** | [**Date**](Date.md) | | [optional]
+**status** | **String** | | [optional]
diff --git a/docs/AdminApi.md b/docs/AdminApi.md
index f28472b..cf3f883 100644
--- a/docs/AdminApi.md
+++ b/docs/AdminApi.md
@@ -34,6 +34,8 @@ Method | HTTP request | Description
[**deleteAdminRunner**](AdminApi.md#deleteAdminRunner) | **DELETE** admin/actions/runners/{runner_id} | Delete an global runner
[**getAdminRunner**](AdminApi.md#getAdminRunner) | **GET** admin/actions/runners/{runner_id} | Get an global runner
[**getAdminRunners**](AdminApi.md#getAdminRunners) | **GET** admin/actions/runners | Get all runners
+[**listAdminWorkflowJobs**](AdminApi.md#listAdminWorkflowJobs) | **GET** admin/actions/jobs | Lists all jobs
+[**listAdminWorkflowRuns**](AdminApi.md#listAdminWorkflowRuns) | **GET** admin/actions/runs | Lists all runs
# **adminAddUserBadges**
@@ -2681,3 +2683,193 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: Not defined
+
+# **listAdminWorkflowJobs**
+> ActionWorkflowJobsResponse listAdminWorkflowJobs(status, page, limit)
+
+Lists all jobs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.AdminApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+AdminApi apiInstance = new AdminApi();
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowJobsResponse result = apiInstance.listAdminWorkflowJobs(status, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AdminApi#listAdminWorkflowJobs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowJobsResponse**](ActionWorkflowJobsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **listAdminWorkflowRuns**
+> ActionWorkflowRunsResponse listAdminWorkflowRuns(event, branch, status, actor, headSha, page, limit)
+
+Lists all runs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.AdminApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+AdminApi apiInstance = new AdminApi();
+String event = "event_example"; // String | workflow event name
+String branch = "branch_example"; // String | workflow branch
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+String actor = "actor_example"; // String | triggered by user
+String headSha = "headSha_example"; // String | triggering sha of the workflow run
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowRunsResponse result = apiInstance.listAdminWorkflowRuns(event, branch, status, actor, headSha, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AdminApi#listAdminWorkflowRuns");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **event** | **String**| workflow event name | [optional]
+ **branch** | **String**| workflow branch | [optional]
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **actor** | **String**| triggered by user | [optional]
+ **headSha** | **String**| triggering sha of the workflow run | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowRunsResponse**](ActionWorkflowRunsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index daceba6..bd71848 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -14,6 +14,8 @@ Method | HTTP request | Description
[**getOrgRunners**](OrganizationApi.md#getOrgRunners) | **GET** orgs/{org}/actions/runners | Get org-level runners
[**getOrgVariable**](OrganizationApi.md#getOrgVariable) | **GET** orgs/{org}/actions/variables/{variablename} | Get an org-level variable
[**getOrgVariablesList**](OrganizationApi.md#getOrgVariablesList) | **GET** orgs/{org}/actions/variables | Get an org-level variables list
+[**getOrgWorkflowJobs**](OrganizationApi.md#getOrgWorkflowJobs) | **GET** orgs/{org}/actions/jobs | Get org-level workflow jobs
+[**getOrgWorkflowRuns**](OrganizationApi.md#getOrgWorkflowRuns) | **GET** orgs/{org}/actions/runs | Get org-level workflow runs
[**orgAddTeamMember**](OrganizationApi.md#orgAddTeamMember) | **PUT** teams/{id}/members/{username} | Add a team member
[**orgAddTeamRepository**](OrganizationApi.md#orgAddTeamRepository) | **PUT** teams/{id}/repos/{org}/{repo} | Add a repository to a team
[**orgConcealMember**](OrganizationApi.md#orgConcealMember) | **DELETE** orgs/{org}/public_members/{username} | Conceal a user's membership
@@ -956,6 +958,200 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getOrgWorkflowJobs**
+> ActionWorkflowJobsResponse getOrgWorkflowJobs(org, status, page, limit)
+
+Get org-level workflow jobs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowJobsResponse result = apiInstance.getOrgWorkflowJobs(org, status, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#getOrgWorkflowJobs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowJobsResponse**](ActionWorkflowJobsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getOrgWorkflowRuns**
+> ActionWorkflowRunsResponse getOrgWorkflowRuns(org, event, branch, status, actor, headSha, page, limit)
+
+Get org-level workflow runs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.OrganizationApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+OrganizationApi apiInstance = new OrganizationApi();
+String org = "org_example"; // String | name of the organization
+String event = "event_example"; // String | workflow event name
+String branch = "branch_example"; // String | workflow branch
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+String actor = "actor_example"; // String | triggered by user
+String headSha = "headSha_example"; // String | triggering sha of the workflow run
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowRunsResponse result = apiInstance.getOrgWorkflowRuns(org, event, branch, status, actor, headSha, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationApi#getOrgWorkflowRuns");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org** | **String**| name of the organization |
+ **event** | **String**| workflow event name | [optional]
+ **branch** | **String**| workflow branch | [optional]
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **actor** | **String**| triggered by user | [optional]
+ **headSha** | **String**| triggering sha of the workflow run | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowRunsResponse**](ActionWorkflowRunsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: Not defined
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index d390be6..adff4a1 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -31,8 +31,13 @@ Method | HTTP request | Description
[**getRepoVariable**](RepositoryApi.md#getRepoVariable) | **GET** repos/{owner}/{repo}/actions/variables/{variablename} | Get a repo-level variable
[**getRepoVariablesList**](RepositoryApi.md#getRepoVariablesList) | **GET** repos/{owner}/{repo}/actions/variables | Get repo-level variables list
[**getTree**](RepositoryApi.md#getTree) | **GET** repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.
+[**getWorkflowJob**](RepositoryApi.md#getWorkflowJob) | **GET** repos/{owner}/{repo}/actions/jobs/{job_id} | Gets a specific workflow job for a workflow run
+[**getWorkflowRun**](RepositoryApi.md#getWorkflowRun) | **GET** repos/{owner}/{repo}/actions/runs/{run} | Gets a specific workflow run
+[**getWorkflowRuns**](RepositoryApi.md#getWorkflowRuns) | **GET** repos/{owner}/{repo}/actions/runs | Lists all runs for a repository run
[**listActionTasks**](RepositoryApi.md#listActionTasks) | **GET** repos/{owner}/{repo}/actions/tasks | List a repository's action tasks
[**listForks**](RepositoryApi.md#listForks) | **GET** repos/{owner}/{repo}/forks | List a repository's forks
+[**listWorkflowJobs**](RepositoryApi.md#listWorkflowJobs) | **GET** repos/{owner}/{repo}/actions/jobs | Lists all jobs for a repository
+[**listWorkflowRunJobs**](RepositoryApi.md#listWorkflowRunJobs) | **GET** repos/{owner}/{repo}/actions/runs/{run}/jobs | Lists all jobs for a workflow run
[**rejectRepoTransfer**](RepositoryApi.md#rejectRepoTransfer) | **POST** repos/{owner}/{repo}/transfer/reject | Reject a repo transfer
[**repoAddCollaborator**](RepositoryApi.md#repoAddCollaborator) | **PUT** repos/{owner}/{repo}/collaborators/{collaborator} | Add or Update a collaborator to a repository
[**repoAddPushMirror**](RepositoryApi.md#repoAddPushMirror) | **POST** repos/{owner}/{repo}/push_mirrors | add a push mirror to the repository
@@ -2646,6 +2651,291 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getWorkflowJob**
+> ActionWorkflowJob getWorkflowJob(owner, repo, jobId)
+
+Gets a specific workflow job for a workflow run
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | name of the owner
+String repo = "repo_example"; // String | name of the repository
+String jobId = "jobId_example"; // String | id of the job
+try {
+ ActionWorkflowJob result = apiInstance.getWorkflowJob(owner, repo, jobId);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getWorkflowJob");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| name of the owner |
+ **repo** | **String**| name of the repository |
+ **jobId** | **String**| id of the job |
+
+### Return type
+
+[**ActionWorkflowJob**](ActionWorkflowJob.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getWorkflowRun**
+> ActionWorkflowRun getWorkflowRun(owner, repo, run)
+
+Gets a specific workflow run
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | name of the owner
+String repo = "repo_example"; // String | name of the repository
+String run = "run_example"; // String | id of the run
+try {
+ ActionWorkflowRun result = apiInstance.getWorkflowRun(owner, repo, run);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getWorkflowRun");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| name of the owner |
+ **repo** | **String**| name of the repository |
+ **run** | **String**| id of the run |
+
+### Return type
+
+[**ActionWorkflowRun**](ActionWorkflowRun.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getWorkflowRuns**
+> ActionArtifactsResponse getWorkflowRuns(owner, repo, event, branch, status, actor, headSha, page, limit)
+
+Lists all runs for a repository run
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | name of the owner
+String repo = "repo_example"; // String | name of the repository
+String event = "event_example"; // String | workflow event name
+String branch = "branch_example"; // String | workflow branch
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+String actor = "actor_example"; // String | triggered by user
+String headSha = "headSha_example"; // String | triggering sha of the workflow run
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionArtifactsResponse result = apiInstance.getWorkflowRuns(owner, repo, event, branch, status, actor, headSha, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#getWorkflowRuns");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| name of the owner |
+ **repo** | **String**| name of the repository |
+ **event** | **String**| workflow event name | [optional]
+ **branch** | **String**| workflow branch | [optional]
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **actor** | **String**| triggered by user | [optional]
+ **headSha** | **String**| triggering sha of the workflow run | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionArtifactsResponse**](ActionArtifactsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: Not defined
@@ -2832,6 +3122,198 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **listWorkflowJobs**
+> ActionWorkflowJobsResponse listWorkflowJobs(owner, repo, status, page, limit)
+
+Lists all jobs for a repository
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | name of the owner
+String repo = "repo_example"; // String | name of the repository
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowJobsResponse result = apiInstance.listWorkflowJobs(owner, repo, status, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#listWorkflowJobs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| name of the owner |
+ **repo** | **String**| name of the repository |
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowJobsResponse**](ActionWorkflowJobsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **listWorkflowRunJobs**
+> ActionWorkflowJobsResponse listWorkflowRunJobs(owner, repo, run, status, page, limit)
+
+Lists all jobs for a workflow run
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.RepositoryApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+RepositoryApi apiInstance = new RepositoryApi();
+String owner = "owner_example"; // String | name of the owner
+String repo = "repo_example"; // String | name of the repository
+Integer run = 56; // Integer | runid of the workflow run
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowJobsResponse result = apiInstance.listWorkflowRunJobs(owner, repo, run, status, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling RepositoryApi#listWorkflowRunJobs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| name of the owner |
+ **repo** | **String**| name of the repository |
+ **run** | **Integer**| runid of the workflow run |
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowJobsResponse**](ActionWorkflowJobsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: Not defined
diff --git a/docs/UserApi.md b/docs/UserApi.md
index b62b0d8..4ed6830 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -14,6 +14,8 @@ Method | HTTP request | Description
[**getUserSettings**](UserApi.md#getUserSettings) | **GET** user/settings | Get user settings
[**getUserVariable**](UserApi.md#getUserVariable) | **GET** user/actions/variables/{variablename} | Get a user-level variable which is created by current doer
[**getUserVariablesList**](UserApi.md#getUserVariablesList) | **GET** user/actions/variables | Get the user-level list of variables which is created by current doer
+[**getUserWorkflowJobs**](UserApi.md#getUserWorkflowJobs) | **GET** user/actions/jobs | Get workflow jobs
+[**getUserWorkflowRuns**](UserApi.md#getUserWorkflowRuns) | **GET** user/actions/runs | Get workflow runs
[**getVerificationToken**](UserApi.md#getVerificationToken) | **GET** user/gpg_key_token | Get a Token to verify
[**updateUserSecret**](UserApi.md#updateUserSecret) | **PUT** user/actions/secrets/{secretname} | Create or Update a secret value in a user scope
[**updateUserSettings**](UserApi.md#updateUserSettings) | **PATCH** user/settings | Update user settings
@@ -940,6 +942,196 @@ Name | Type | Description | Notes
[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getUserWorkflowJobs**
+> ActionWorkflowJobsResponse getUserWorkflowJobs(status, page, limit)
+
+Get workflow jobs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.UserApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+UserApi apiInstance = new UserApi();
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowJobsResponse result = apiInstance.getUserWorkflowJobs(status, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#getUserWorkflowJobs");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowJobsResponse**](ActionWorkflowJobsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getUserWorkflowRuns**
+> ActionWorkflowRunsResponse getUserWorkflowRuns(event, branch, status, actor, headSha, page, limit)
+
+Get workflow runs
+
+### Example
+```java
+// Import classes:
+//import org.gitnex.tea4j.v2.ApiClient;
+//import org.gitnex.tea4j.v2.ApiException;
+//import org.gitnex.tea4j.v2.Configuration;
+//import org.gitnex.tea4j.v2.auth.*;
+//import org.gitnex.tea4j.v2.apis.UserApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+// Configure API key authorization: AccessToken
+ApiKeyAuth AccessToken = (ApiKeyAuth) defaultClient.getAuthentication("AccessToken");
+AccessToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AccessToken.setApiKeyPrefix("Token");
+
+// Configure API key authorization: AuthorizationHeaderToken
+ApiKeyAuth AuthorizationHeaderToken = (ApiKeyAuth) defaultClient.getAuthentication("AuthorizationHeaderToken");
+AuthorizationHeaderToken.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//AuthorizationHeaderToken.setApiKeyPrefix("Token");
+// Configure HTTP basic authorization: BasicAuth
+HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
+BasicAuth.setUsername("YOUR USERNAME");
+BasicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: SudoHeader
+ApiKeyAuth SudoHeader = (ApiKeyAuth) defaultClient.getAuthentication("SudoHeader");
+SudoHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: SudoParam
+ApiKeyAuth SudoParam = (ApiKeyAuth) defaultClient.getAuthentication("SudoParam");
+SudoParam.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//SudoParam.setApiKeyPrefix("Token");
+
+// Configure API key authorization: TOTPHeader
+ApiKeyAuth TOTPHeader = (ApiKeyAuth) defaultClient.getAuthentication("TOTPHeader");
+TOTPHeader.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//TOTPHeader.setApiKeyPrefix("Token");
+
+// Configure API key authorization: Token
+ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
+Token.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//Token.setApiKeyPrefix("Token");
+
+UserApi apiInstance = new UserApi();
+String event = "event_example"; // String | workflow event name
+String branch = "branch_example"; // String | workflow branch
+String status = "status_example"; // String | workflow status (pending, queued, in_progress, failure, success, skipped)
+String actor = "actor_example"; // String | triggered by user
+String headSha = "headSha_example"; // String | triggering sha of the workflow run
+Integer page = 56; // Integer | page number of results to return (1-based)
+Integer limit = 56; // Integer | page size of results
+try {
+ ActionWorkflowRunsResponse result = apiInstance.getUserWorkflowRuns(event, branch, status, actor, headSha, page, limit);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling UserApi#getUserWorkflowRuns");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **event** | **String**| workflow event name | [optional]
+ **branch** | **String**| workflow branch | [optional]
+ **status** | **String**| workflow status (pending, queued, in_progress, failure, success, skipped) | [optional]
+ **actor** | **String**| triggered by user | [optional]
+ **headSha** | **String**| triggering sha of the workflow run | [optional]
+ **page** | **Integer**| page number of results to return (1-based) | [optional]
+ **limit** | **Integer**| page size of results | [optional]
+
+### Return type
+
+[**ActionWorkflowRunsResponse**](ActionWorkflowRunsResponse.md)
+
+### Authorization
+
+[AccessToken](../README.md#AccessToken)[AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken)[BasicAuth](../README.md#BasicAuth)[SudoHeader](../README.md#SudoHeader)[SudoParam](../README.md#SudoParam)[TOTPHeader](../README.md#TOTPHeader)[Token](../README.md#Token)
+
### HTTP request headers
- **Content-Type**: Not defined
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
index 9e136d9..d48f003 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/AdminApi.java
@@ -2,6 +2,8 @@ package org.gitnex.tea4j.v2.apis;
import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
+import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
+import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Badge;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateKeyOption;
@@ -352,4 +354,42 @@ public interface AdminApi {
*/
@GET("admin/actions/runners")
Call getAdminRunners();
+
+ /**
+ * Lists all jobs
+ *
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowJobsResponse>
+ */
+ @GET("admin/actions/jobs")
+ Call listAdminWorkflowJobs(
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Lists all runs
+ *
+ * @param event workflow event name (optional)
+ * @param branch workflow branch (optional)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param actor triggered by user (optional)
+ * @param headSha triggering sha of the workflow run (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowRunsResponse>
+ */
+ @GET("admin/actions/runs")
+ Call listAdminWorkflowRuns(
+ @retrofit2.http.Query("event") String event,
+ @retrofit2.http.Query("branch") String branch,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("actor") String actor,
+ @retrofit2.http.Query("head_sha") String headSha,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
index c576f4e..3f7543a 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/OrganizationApi.java
@@ -4,6 +4,8 @@ import java.util.Date;
import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.ActionVariable;
+import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
+import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateLabelOption;
@@ -151,6 +153,48 @@ public interface OrganizationApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Get org-level workflow jobs
+ *
+ * @param org name of the organization (required)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowJobsResponse>
+ */
+ @GET("orgs/{org}/actions/jobs")
+ Call getOrgWorkflowJobs(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Get org-level workflow runs
+ *
+ * @param org name of the organization (required)
+ * @param event workflow event name (optional)
+ * @param branch workflow branch (optional)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param actor triggered by user (optional)
+ * @param headSha triggering sha of the workflow run (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowRunsResponse>
+ */
+ @GET("orgs/{org}/actions/runs")
+ Call getOrgWorkflowRuns(
+ @retrofit2.http.Path("org") String org,
+ @retrofit2.http.Query("event") String event,
+ @retrofit2.http.Query("branch") String branch,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("actor") String actor,
+ @retrofit2.http.Query("head_sha") String headSha,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
/**
* Add a team member
*
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 4a89794..ea64ba9 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
@@ -11,6 +11,9 @@ import org.gitnex.tea4j.v2.models.ActionArtifactsResponse;
import org.gitnex.tea4j.v2.models.ActionTaskResponse;
import org.gitnex.tea4j.v2.models.ActionVariable;
import org.gitnex.tea4j.v2.models.ActionWorkflow;
+import org.gitnex.tea4j.v2.models.ActionWorkflowJob;
+import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
+import org.gitnex.tea4j.v2.models.ActionWorkflowRun;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
import org.gitnex.tea4j.v2.models.AnnotatedTag;
@@ -492,6 +495,61 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("per_page") Integer perPage);
+ /**
+ * Gets a specific workflow job for a workflow run
+ *
+ * @param owner name of the owner (required)
+ * @param repo name of the repository (required)
+ * @param jobId id of the job (required)
+ * @return Call<ActionWorkflowJob>
+ */
+ @GET("repos/{owner}/{repo}/actions/jobs/{job_id}")
+ Call getWorkflowJob(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("job_id") String jobId);
+
+ /**
+ * Gets a specific workflow run
+ *
+ * @param owner name of the owner (required)
+ * @param repo name of the repository (required)
+ * @param run id of the run (required)
+ * @return Call<ActionWorkflowRun>
+ */
+ @GET("repos/{owner}/{repo}/actions/runs/{run}")
+ Call getWorkflowRun(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("run") String run);
+
+ /**
+ * Lists all runs for a repository run
+ *
+ * @param owner name of the owner (required)
+ * @param repo name of the repository (required)
+ * @param event workflow event name (optional)
+ * @param branch workflow branch (optional)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param actor triggered by user (optional)
+ * @param headSha triggering sha of the workflow run (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionArtifactsResponse>
+ */
+ @GET("repos/{owner}/{repo}/actions/runs")
+ Call getWorkflowRuns(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Query("event") String event,
+ @retrofit2.http.Query("branch") String branch,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("actor") String actor,
+ @retrofit2.http.Query("head_sha") String headSha,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
/**
* List a repository's action tasks
*
@@ -524,6 +582,46 @@ public interface RepositoryApi {
@retrofit2.http.Query("page") Integer page,
@retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Lists all jobs for a repository
+ *
+ * @param owner name of the owner (required)
+ * @param repo name of the repository (required)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowJobsResponse>
+ */
+ @GET("repos/{owner}/{repo}/actions/jobs")
+ Call listWorkflowJobs(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Lists all jobs for a workflow run
+ *
+ * @param owner name of the owner (required)
+ * @param repo name of the repository (required)
+ * @param run runid of the workflow run (required)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowJobsResponse>
+ */
+ @GET("repos/{owner}/{repo}/actions/runs/{run}/jobs")
+ Call listWorkflowRunJobs(
+ @retrofit2.http.Path("owner") String owner,
+ @retrofit2.http.Path("repo") String repo,
+ @retrofit2.http.Path("run") Integer run,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
/**
* Reject a repo transfer
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
index a0f90fc..e97d9c9 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/UserApi.java
@@ -5,6 +5,8 @@ import java.util.List;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.AccessToken;
import org.gitnex.tea4j.v2.models.ActionVariable;
+import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
+import org.gitnex.tea4j.v2.models.ActionWorkflowRunsResponse;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.CreateAccessTokenOption;
import org.gitnex.tea4j.v2.models.CreateEmailOption;
@@ -132,6 +134,44 @@ public interface UserApi {
Call> getUserVariablesList(
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
+ /**
+ * Get workflow jobs
+ *
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowJobsResponse>
+ */
+ @GET("user/actions/jobs")
+ Call getUserWorkflowJobs(
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
+ /**
+ * Get workflow runs
+ *
+ * @param event workflow event name (optional)
+ * @param branch workflow branch (optional)
+ * @param status workflow status (pending, queued, in_progress, failure, success, skipped)
+ * (optional)
+ * @param actor triggered by user (optional)
+ * @param headSha triggering sha of the workflow run (optional)
+ * @param page page number of results to return (1-based) (optional)
+ * @param limit page size of results (optional)
+ * @return Call<ActionWorkflowRunsResponse>
+ */
+ @GET("user/actions/runs")
+ Call getUserWorkflowRuns(
+ @retrofit2.http.Query("event") String event,
+ @retrofit2.http.Query("branch") String branch,
+ @retrofit2.http.Query("status") String status,
+ @retrofit2.http.Query("actor") String actor,
+ @retrofit2.http.Query("head_sha") String headSha,
+ @retrofit2.http.Query("page") Integer page,
+ @retrofit2.http.Query("limit") Integer limit);
+
/**
* Get a Token to verify
*
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJob.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJob.java
new file mode 100644
index 0000000..24415eb
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJob.java
@@ -0,0 +1,528 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+
+/** ActionWorkflowJob represents a WorkflowJob */
+@Schema(description = "ActionWorkflowJob represents a WorkflowJob")
+public class ActionWorkflowJob implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("completed_at")
+ private Date completedAt = null;
+
+ @SerializedName("conclusion")
+ private String conclusion = null;
+
+ @SerializedName("created_at")
+ private Date createdAt = null;
+
+ @SerializedName("head_branch")
+ private String headBranch = null;
+
+ @SerializedName("head_sha")
+ private String headSha = null;
+
+ @SerializedName("html_url")
+ private String htmlUrl = null;
+
+ @SerializedName("id")
+ private Long id = null;
+
+ @SerializedName("labels")
+ private List labels = null;
+
+ @SerializedName("name")
+ private String name = null;
+
+ @SerializedName("run_attempt")
+ private Long runAttempt = null;
+
+ @SerializedName("run_id")
+ private Long runId = null;
+
+ @SerializedName("run_url")
+ private String runUrl = null;
+
+ @SerializedName("runner_id")
+ private Long runnerId = null;
+
+ @SerializedName("runner_name")
+ private String runnerName = null;
+
+ @SerializedName("started_at")
+ private Date startedAt = null;
+
+ @SerializedName("status")
+ private String status = null;
+
+ @SerializedName("steps")
+ private List steps = null;
+
+ @SerializedName("url")
+ private String url = null;
+
+ public ActionWorkflowJob completedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ return this;
+ }
+
+ /**
+ * Get completedAt
+ *
+ * @return completedAt
+ */
+ @Schema(description = "")
+ public Date getCompletedAt() {
+ return completedAt;
+ }
+
+ public void setCompletedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ }
+
+ public ActionWorkflowJob conclusion(String conclusion) {
+ this.conclusion = conclusion;
+ return this;
+ }
+
+ /**
+ * Get conclusion
+ *
+ * @return conclusion
+ */
+ @Schema(description = "")
+ public String getConclusion() {
+ return conclusion;
+ }
+
+ public void setConclusion(String conclusion) {
+ this.conclusion = conclusion;
+ }
+
+ public ActionWorkflowJob createdAt(Date createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get createdAt
+ *
+ * @return createdAt
+ */
+ @Schema(description = "")
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public ActionWorkflowJob headBranch(String headBranch) {
+ this.headBranch = headBranch;
+ return this;
+ }
+
+ /**
+ * Get headBranch
+ *
+ * @return headBranch
+ */
+ @Schema(description = "")
+ public String getHeadBranch() {
+ return headBranch;
+ }
+
+ public void setHeadBranch(String headBranch) {
+ this.headBranch = headBranch;
+ }
+
+ public ActionWorkflowJob headSha(String headSha) {
+ this.headSha = headSha;
+ return this;
+ }
+
+ /**
+ * Get headSha
+ *
+ * @return headSha
+ */
+ @Schema(description = "")
+ public String getHeadSha() {
+ return headSha;
+ }
+
+ public void setHeadSha(String headSha) {
+ this.headSha = headSha;
+ }
+
+ public ActionWorkflowJob htmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ return this;
+ }
+
+ /**
+ * Get htmlUrl
+ *
+ * @return htmlUrl
+ */
+ @Schema(description = "")
+ public String getHtmlUrl() {
+ return htmlUrl;
+ }
+
+ public void setHtmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ }
+
+ public ActionWorkflowJob id(Long id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id
+ */
+ @Schema(description = "")
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public ActionWorkflowJob labels(List labels) {
+ this.labels = labels;
+ return this;
+ }
+
+ public ActionWorkflowJob addLabelsItem(String labelsItem) {
+ if (this.labels == null) {
+ this.labels = new ArrayList<>();
+ }
+ this.labels.add(labelsItem);
+ return this;
+ }
+
+ /**
+ * Get labels
+ *
+ * @return labels
+ */
+ @Schema(description = "")
+ public List getLabels() {
+ return labels;
+ }
+
+ public void setLabels(List labels) {
+ this.labels = labels;
+ }
+
+ public ActionWorkflowJob name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get name
+ *
+ * @return name
+ */
+ @Schema(description = "")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ActionWorkflowJob runAttempt(Long runAttempt) {
+ this.runAttempt = runAttempt;
+ return this;
+ }
+
+ /**
+ * Get runAttempt
+ *
+ * @return runAttempt
+ */
+ @Schema(description = "")
+ public Long getRunAttempt() {
+ return runAttempt;
+ }
+
+ public void setRunAttempt(Long runAttempt) {
+ this.runAttempt = runAttempt;
+ }
+
+ public ActionWorkflowJob runId(Long runId) {
+ this.runId = runId;
+ return this;
+ }
+
+ /**
+ * Get runId
+ *
+ * @return runId
+ */
+ @Schema(description = "")
+ public Long getRunId() {
+ return runId;
+ }
+
+ public void setRunId(Long runId) {
+ this.runId = runId;
+ }
+
+ public ActionWorkflowJob runUrl(String runUrl) {
+ this.runUrl = runUrl;
+ return this;
+ }
+
+ /**
+ * Get runUrl
+ *
+ * @return runUrl
+ */
+ @Schema(description = "")
+ public String getRunUrl() {
+ return runUrl;
+ }
+
+ public void setRunUrl(String runUrl) {
+ this.runUrl = runUrl;
+ }
+
+ public ActionWorkflowJob runnerId(Long runnerId) {
+ this.runnerId = runnerId;
+ return this;
+ }
+
+ /**
+ * Get runnerId
+ *
+ * @return runnerId
+ */
+ @Schema(description = "")
+ public Long getRunnerId() {
+ return runnerId;
+ }
+
+ public void setRunnerId(Long runnerId) {
+ this.runnerId = runnerId;
+ }
+
+ public ActionWorkflowJob runnerName(String runnerName) {
+ this.runnerName = runnerName;
+ return this;
+ }
+
+ /**
+ * Get runnerName
+ *
+ * @return runnerName
+ */
+ @Schema(description = "")
+ public String getRunnerName() {
+ return runnerName;
+ }
+
+ public void setRunnerName(String runnerName) {
+ this.runnerName = runnerName;
+ }
+
+ public ActionWorkflowJob startedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ return this;
+ }
+
+ /**
+ * Get startedAt
+ *
+ * @return startedAt
+ */
+ @Schema(description = "")
+ public Date getStartedAt() {
+ return startedAt;
+ }
+
+ public void setStartedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ }
+
+ public ActionWorkflowJob status(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status
+ */
+ @Schema(description = "")
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public ActionWorkflowJob steps(List steps) {
+ this.steps = steps;
+ return this;
+ }
+
+ public ActionWorkflowJob addStepsItem(ActionWorkflowStep stepsItem) {
+ if (this.steps == null) {
+ this.steps = new ArrayList<>();
+ }
+ this.steps.add(stepsItem);
+ return this;
+ }
+
+ /**
+ * Get steps
+ *
+ * @return steps
+ */
+ @Schema(description = "")
+ public List getSteps() {
+ return steps;
+ }
+
+ public void setSteps(List steps) {
+ this.steps = steps;
+ }
+
+ public ActionWorkflowJob url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Get url
+ *
+ * @return url
+ */
+ @Schema(description = "")
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ActionWorkflowJob actionWorkflowJob = (ActionWorkflowJob) o;
+ return Objects.equals(this.completedAt, actionWorkflowJob.completedAt)
+ && Objects.equals(this.conclusion, actionWorkflowJob.conclusion)
+ && Objects.equals(this.createdAt, actionWorkflowJob.createdAt)
+ && Objects.equals(this.headBranch, actionWorkflowJob.headBranch)
+ && Objects.equals(this.headSha, actionWorkflowJob.headSha)
+ && Objects.equals(this.htmlUrl, actionWorkflowJob.htmlUrl)
+ && Objects.equals(this.id, actionWorkflowJob.id)
+ && Objects.equals(this.labels, actionWorkflowJob.labels)
+ && Objects.equals(this.name, actionWorkflowJob.name)
+ && Objects.equals(this.runAttempt, actionWorkflowJob.runAttempt)
+ && Objects.equals(this.runId, actionWorkflowJob.runId)
+ && Objects.equals(this.runUrl, actionWorkflowJob.runUrl)
+ && Objects.equals(this.runnerId, actionWorkflowJob.runnerId)
+ && Objects.equals(this.runnerName, actionWorkflowJob.runnerName)
+ && Objects.equals(this.startedAt, actionWorkflowJob.startedAt)
+ && Objects.equals(this.status, actionWorkflowJob.status)
+ && Objects.equals(this.steps, actionWorkflowJob.steps)
+ && Objects.equals(this.url, actionWorkflowJob.url);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ completedAt,
+ conclusion,
+ createdAt,
+ headBranch,
+ headSha,
+ htmlUrl,
+ id,
+ labels,
+ name,
+ runAttempt,
+ runId,
+ runUrl,
+ runnerId,
+ runnerName,
+ startedAt,
+ status,
+ steps,
+ url);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ActionWorkflowJob {\n");
+
+ sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
+ sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" headBranch: ").append(toIndentedString(headBranch)).append("\n");
+ sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
+ sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" runAttempt: ").append(toIndentedString(runAttempt)).append("\n");
+ sb.append(" runId: ").append(toIndentedString(runId)).append("\n");
+ sb.append(" runUrl: ").append(toIndentedString(runUrl)).append("\n");
+ sb.append(" runnerId: ").append(toIndentedString(runnerId)).append("\n");
+ sb.append(" runnerName: ").append(toIndentedString(runnerName)).append("\n");
+ sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" steps: ").append(toIndentedString(steps)).append("\n");
+ sb.append(" url: ").append(toIndentedString(url)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJobsResponse.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJobsResponse.java
new file mode 100644
index 0000000..7686653
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowJobsResponse.java
@@ -0,0 +1,117 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** ActionWorkflowJobsResponse returns ActionWorkflowJobs */
+@Schema(description = "ActionWorkflowJobsResponse returns ActionWorkflowJobs")
+public class ActionWorkflowJobsResponse implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("jobs")
+ private List jobs = null;
+
+ @SerializedName("total_count")
+ private Long totalCount = null;
+
+ public ActionWorkflowJobsResponse jobs(List jobs) {
+ this.jobs = jobs;
+ return this;
+ }
+
+ public ActionWorkflowJobsResponse addJobsItem(ActionWorkflowJob jobsItem) {
+ if (this.jobs == null) {
+ this.jobs = new ArrayList<>();
+ }
+ this.jobs.add(jobsItem);
+ return this;
+ }
+
+ /**
+ * Get jobs
+ *
+ * @return jobs
+ */
+ @Schema(description = "")
+ public List getJobs() {
+ return jobs;
+ }
+
+ public void setJobs(List jobs) {
+ this.jobs = jobs;
+ }
+
+ public ActionWorkflowJobsResponse totalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ return this;
+ }
+
+ /**
+ * Get totalCount
+ *
+ * @return totalCount
+ */
+ @Schema(description = "")
+ public Long getTotalCount() {
+ return totalCount;
+ }
+
+ public void setTotalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ActionWorkflowJobsResponse actionWorkflowJobsResponse = (ActionWorkflowJobsResponse) o;
+ return Objects.equals(this.jobs, actionWorkflowJobsResponse.jobs)
+ && Objects.equals(this.totalCount, actionWorkflowJobsResponse.totalCount);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(jobs, totalCount);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ActionWorkflowJobsResponse {\n");
+
+ sb.append(" jobs: ").append(toIndentedString(jobs)).append("\n");
+ sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRun.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRun.java
index af8e682..41d357b 100644
--- a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRun.java
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRun.java
@@ -15,6 +15,7 @@ package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
+import java.util.Date;
import java.util.Objects;
/** ActionWorkflowRun represents a WorkflowRun */
@@ -22,15 +23,196 @@ import java.util.Objects;
public class ActionWorkflowRun implements Serializable {
private static final long serialVersionUID = 1L;
+ @SerializedName("actor")
+ private User actor = null;
+
+ @SerializedName("completed_at")
+ private Date completedAt = null;
+
+ @SerializedName("conclusion")
+ private String conclusion = null;
+
+ @SerializedName("display_title")
+ private String displayTitle = null;
+
+ @SerializedName("event")
+ private String event = null;
+
+ @SerializedName("head_branch")
+ private String headBranch = null;
+
+ @SerializedName("head_repository")
+ private Repository headRepository = null;
+
@SerializedName("head_sha")
private String headSha = null;
+ @SerializedName("html_url")
+ private String htmlUrl = null;
+
@SerializedName("id")
private Long id = null;
+ @SerializedName("path")
+ private String path = null;
+
+ @SerializedName("repository")
+ private Repository repository = null;
+
@SerializedName("repository_id")
private Long repositoryId = null;
+ @SerializedName("run_attempt")
+ private Long runAttempt = null;
+
+ @SerializedName("run_number")
+ private Long runNumber = null;
+
+ @SerializedName("started_at")
+ private Date startedAt = null;
+
+ @SerializedName("status")
+ private String status = null;
+
+ @SerializedName("trigger_actor")
+ private User triggerActor = null;
+
+ @SerializedName("url")
+ private String url = null;
+
+ public ActionWorkflowRun actor(User actor) {
+ this.actor = actor;
+ return this;
+ }
+
+ /**
+ * Get actor
+ *
+ * @return actor
+ */
+ @Schema(description = "")
+ public User getActor() {
+ return actor;
+ }
+
+ public void setActor(User actor) {
+ this.actor = actor;
+ }
+
+ public ActionWorkflowRun completedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ return this;
+ }
+
+ /**
+ * Get completedAt
+ *
+ * @return completedAt
+ */
+ @Schema(description = "")
+ public Date getCompletedAt() {
+ return completedAt;
+ }
+
+ public void setCompletedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ }
+
+ public ActionWorkflowRun conclusion(String conclusion) {
+ this.conclusion = conclusion;
+ return this;
+ }
+
+ /**
+ * Get conclusion
+ *
+ * @return conclusion
+ */
+ @Schema(description = "")
+ public String getConclusion() {
+ return conclusion;
+ }
+
+ public void setConclusion(String conclusion) {
+ this.conclusion = conclusion;
+ }
+
+ public ActionWorkflowRun displayTitle(String displayTitle) {
+ this.displayTitle = displayTitle;
+ return this;
+ }
+
+ /**
+ * Get displayTitle
+ *
+ * @return displayTitle
+ */
+ @Schema(description = "")
+ public String getDisplayTitle() {
+ return displayTitle;
+ }
+
+ public void setDisplayTitle(String displayTitle) {
+ this.displayTitle = displayTitle;
+ }
+
+ public ActionWorkflowRun event(String event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ *
+ * @return event
+ */
+ @Schema(description = "")
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public ActionWorkflowRun headBranch(String headBranch) {
+ this.headBranch = headBranch;
+ return this;
+ }
+
+ /**
+ * Get headBranch
+ *
+ * @return headBranch
+ */
+ @Schema(description = "")
+ public String getHeadBranch() {
+ return headBranch;
+ }
+
+ public void setHeadBranch(String headBranch) {
+ this.headBranch = headBranch;
+ }
+
+ public ActionWorkflowRun headRepository(Repository headRepository) {
+ this.headRepository = headRepository;
+ return this;
+ }
+
+ /**
+ * Get headRepository
+ *
+ * @return headRepository
+ */
+ @Schema(description = "")
+ public Repository getHeadRepository() {
+ return headRepository;
+ }
+
+ public void setHeadRepository(Repository headRepository) {
+ this.headRepository = headRepository;
+ }
+
public ActionWorkflowRun headSha(String headSha) {
this.headSha = headSha;
return this;
@@ -50,6 +232,25 @@ public class ActionWorkflowRun implements Serializable {
this.headSha = headSha;
}
+ public ActionWorkflowRun htmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ return this;
+ }
+
+ /**
+ * Get htmlUrl
+ *
+ * @return htmlUrl
+ */
+ @Schema(description = "")
+ public String getHtmlUrl() {
+ return htmlUrl;
+ }
+
+ public void setHtmlUrl(String htmlUrl) {
+ this.htmlUrl = htmlUrl;
+ }
+
public ActionWorkflowRun id(Long id) {
this.id = id;
return this;
@@ -69,6 +270,44 @@ public class ActionWorkflowRun implements Serializable {
this.id = id;
}
+ public ActionWorkflowRun path(String path) {
+ this.path = path;
+ return this;
+ }
+
+ /**
+ * Get path
+ *
+ * @return path
+ */
+ @Schema(description = "")
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ public ActionWorkflowRun repository(Repository repository) {
+ this.repository = repository;
+ return this;
+ }
+
+ /**
+ * Get repository
+ *
+ * @return repository
+ */
+ @Schema(description = "")
+ public Repository getRepository() {
+ return repository;
+ }
+
+ public void setRepository(Repository repository) {
+ this.repository = repository;
+ }
+
public ActionWorkflowRun repositoryId(Long repositoryId) {
this.repositoryId = repositoryId;
return this;
@@ -88,6 +327,120 @@ public class ActionWorkflowRun implements Serializable {
this.repositoryId = repositoryId;
}
+ public ActionWorkflowRun runAttempt(Long runAttempt) {
+ this.runAttempt = runAttempt;
+ return this;
+ }
+
+ /**
+ * Get runAttempt
+ *
+ * @return runAttempt
+ */
+ @Schema(description = "")
+ public Long getRunAttempt() {
+ return runAttempt;
+ }
+
+ public void setRunAttempt(Long runAttempt) {
+ this.runAttempt = runAttempt;
+ }
+
+ public ActionWorkflowRun runNumber(Long runNumber) {
+ this.runNumber = runNumber;
+ return this;
+ }
+
+ /**
+ * Get runNumber
+ *
+ * @return runNumber
+ */
+ @Schema(description = "")
+ public Long getRunNumber() {
+ return runNumber;
+ }
+
+ public void setRunNumber(Long runNumber) {
+ this.runNumber = runNumber;
+ }
+
+ public ActionWorkflowRun startedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ return this;
+ }
+
+ /**
+ * Get startedAt
+ *
+ * @return startedAt
+ */
+ @Schema(description = "")
+ public Date getStartedAt() {
+ return startedAt;
+ }
+
+ public void setStartedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ }
+
+ public ActionWorkflowRun status(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status
+ */
+ @Schema(description = "")
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public ActionWorkflowRun triggerActor(User triggerActor) {
+ this.triggerActor = triggerActor;
+ return this;
+ }
+
+ /**
+ * Get triggerActor
+ *
+ * @return triggerActor
+ */
+ @Schema(description = "")
+ public User getTriggerActor() {
+ return triggerActor;
+ }
+
+ public void setTriggerActor(User triggerActor) {
+ this.triggerActor = triggerActor;
+ }
+
+ public ActionWorkflowRun url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Get url
+ *
+ * @return url
+ */
+ @Schema(description = "")
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -97,14 +450,49 @@ public class ActionWorkflowRun implements Serializable {
return false;
}
ActionWorkflowRun actionWorkflowRun = (ActionWorkflowRun) o;
- return Objects.equals(this.headSha, actionWorkflowRun.headSha)
+ return Objects.equals(this.actor, actionWorkflowRun.actor)
+ && Objects.equals(this.completedAt, actionWorkflowRun.completedAt)
+ && Objects.equals(this.conclusion, actionWorkflowRun.conclusion)
+ && Objects.equals(this.displayTitle, actionWorkflowRun.displayTitle)
+ && Objects.equals(this.event, actionWorkflowRun.event)
+ && Objects.equals(this.headBranch, actionWorkflowRun.headBranch)
+ && Objects.equals(this.headRepository, actionWorkflowRun.headRepository)
+ && Objects.equals(this.headSha, actionWorkflowRun.headSha)
+ && Objects.equals(this.htmlUrl, actionWorkflowRun.htmlUrl)
&& Objects.equals(this.id, actionWorkflowRun.id)
- && Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId);
+ && Objects.equals(this.path, actionWorkflowRun.path)
+ && Objects.equals(this.repository, actionWorkflowRun.repository)
+ && Objects.equals(this.repositoryId, actionWorkflowRun.repositoryId)
+ && Objects.equals(this.runAttempt, actionWorkflowRun.runAttempt)
+ && Objects.equals(this.runNumber, actionWorkflowRun.runNumber)
+ && Objects.equals(this.startedAt, actionWorkflowRun.startedAt)
+ && Objects.equals(this.status, actionWorkflowRun.status)
+ && Objects.equals(this.triggerActor, actionWorkflowRun.triggerActor)
+ && Objects.equals(this.url, actionWorkflowRun.url);
}
@Override
public int hashCode() {
- return Objects.hash(headSha, id, repositoryId);
+ return Objects.hash(
+ actor,
+ completedAt,
+ conclusion,
+ displayTitle,
+ event,
+ headBranch,
+ headRepository,
+ headSha,
+ htmlUrl,
+ id,
+ path,
+ repository,
+ repositoryId,
+ runAttempt,
+ runNumber,
+ startedAt,
+ status,
+ triggerActor,
+ url);
}
@Override
@@ -112,9 +500,25 @@ public class ActionWorkflowRun implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class ActionWorkflowRun {\n");
+ sb.append(" actor: ").append(toIndentedString(actor)).append("\n");
+ sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
+ sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
+ sb.append(" displayTitle: ").append(toIndentedString(displayTitle)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append(" headBranch: ").append(toIndentedString(headBranch)).append("\n");
+ sb.append(" headRepository: ").append(toIndentedString(headRepository)).append("\n");
sb.append(" headSha: ").append(toIndentedString(headSha)).append("\n");
+ sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" path: ").append(toIndentedString(path)).append("\n");
+ sb.append(" repository: ").append(toIndentedString(repository)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).append("\n");
+ sb.append(" runAttempt: ").append(toIndentedString(runAttempt)).append("\n");
+ sb.append(" runNumber: ").append(toIndentedString(runNumber)).append("\n");
+ sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" triggerActor: ").append(toIndentedString(triggerActor)).append("\n");
+ sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRunsResponse.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRunsResponse.java
new file mode 100644
index 0000000..f7404d2
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowRunsResponse.java
@@ -0,0 +1,117 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** ActionWorkflowRunsResponse returns ActionWorkflowRuns */
+@Schema(description = "ActionWorkflowRunsResponse returns ActionWorkflowRuns")
+public class ActionWorkflowRunsResponse implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("total_count")
+ private Long totalCount = null;
+
+ @SerializedName("workflow_runs")
+ private List workflowRuns = null;
+
+ public ActionWorkflowRunsResponse totalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ return this;
+ }
+
+ /**
+ * Get totalCount
+ *
+ * @return totalCount
+ */
+ @Schema(description = "")
+ public Long getTotalCount() {
+ return totalCount;
+ }
+
+ public void setTotalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ public ActionWorkflowRunsResponse workflowRuns(List workflowRuns) {
+ this.workflowRuns = workflowRuns;
+ return this;
+ }
+
+ public ActionWorkflowRunsResponse addWorkflowRunsItem(ActionWorkflowRun workflowRunsItem) {
+ if (this.workflowRuns == null) {
+ this.workflowRuns = new ArrayList<>();
+ }
+ this.workflowRuns.add(workflowRunsItem);
+ return this;
+ }
+
+ /**
+ * Get workflowRuns
+ *
+ * @return workflowRuns
+ */
+ @Schema(description = "")
+ public List getWorkflowRuns() {
+ return workflowRuns;
+ }
+
+ public void setWorkflowRuns(List workflowRuns) {
+ this.workflowRuns = workflowRuns;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ActionWorkflowRunsResponse actionWorkflowRunsResponse = (ActionWorkflowRunsResponse) o;
+ return Objects.equals(this.totalCount, actionWorkflowRunsResponse.totalCount)
+ && Objects.equals(this.workflowRuns, actionWorkflowRunsResponse.workflowRuns);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(totalCount, workflowRuns);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ActionWorkflowRunsResponse {\n");
+
+ sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
+ sb.append(" workflowRuns: ").append(toIndentedString(workflowRuns)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowStep.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowStep.java
new file mode 100644
index 0000000..a80bb01
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowStep.java
@@ -0,0 +1,204 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{AppVer | JSEscape}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.Objects;
+
+/** ActionWorkflowStep represents a step of a WorkflowJob */
+@Schema(description = "ActionWorkflowStep represents a step of a WorkflowJob")
+public class ActionWorkflowStep implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("completed_at")
+ private Date completedAt = null;
+
+ @SerializedName("conclusion")
+ private String conclusion = null;
+
+ @SerializedName("name")
+ private String name = null;
+
+ @SerializedName("number")
+ private Long number = null;
+
+ @SerializedName("started_at")
+ private Date startedAt = null;
+
+ @SerializedName("status")
+ private String status = null;
+
+ public ActionWorkflowStep completedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ return this;
+ }
+
+ /**
+ * Get completedAt
+ *
+ * @return completedAt
+ */
+ @Schema(description = "")
+ public Date getCompletedAt() {
+ return completedAt;
+ }
+
+ public void setCompletedAt(Date completedAt) {
+ this.completedAt = completedAt;
+ }
+
+ public ActionWorkflowStep conclusion(String conclusion) {
+ this.conclusion = conclusion;
+ return this;
+ }
+
+ /**
+ * Get conclusion
+ *
+ * @return conclusion
+ */
+ @Schema(description = "")
+ public String getConclusion() {
+ return conclusion;
+ }
+
+ public void setConclusion(String conclusion) {
+ this.conclusion = conclusion;
+ }
+
+ public ActionWorkflowStep name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get name
+ *
+ * @return name
+ */
+ @Schema(description = "")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ActionWorkflowStep number(Long number) {
+ this.number = number;
+ return this;
+ }
+
+ /**
+ * Get number
+ *
+ * @return number
+ */
+ @Schema(description = "")
+ public Long getNumber() {
+ return number;
+ }
+
+ public void setNumber(Long number) {
+ this.number = number;
+ }
+
+ public ActionWorkflowStep startedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ return this;
+ }
+
+ /**
+ * Get startedAt
+ *
+ * @return startedAt
+ */
+ @Schema(description = "")
+ public Date getStartedAt() {
+ return startedAt;
+ }
+
+ public void setStartedAt(Date startedAt) {
+ this.startedAt = startedAt;
+ }
+
+ public ActionWorkflowStep status(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status
+ */
+ @Schema(description = "")
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ActionWorkflowStep actionWorkflowStep = (ActionWorkflowStep) o;
+ return Objects.equals(this.completedAt, actionWorkflowStep.completedAt)
+ && Objects.equals(this.conclusion, actionWorkflowStep.conclusion)
+ && Objects.equals(this.name, actionWorkflowStep.name)
+ && Objects.equals(this.number, actionWorkflowStep.number)
+ && Objects.equals(this.startedAt, actionWorkflowStep.startedAt)
+ && Objects.equals(this.status, actionWorkflowStep.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(completedAt, conclusion, name, number, startedAt, status);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ActionWorkflowStep {\n");
+
+ sb.append(" completedAt: ").append(toIndentedString(completedAt)).append("\n");
+ sb.append(" conclusion: ").append(toIndentedString(conclusion)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" number: ").append(toIndentedString(number)).append("\n");
+ sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}