Skip to content

Update API from gitea.com #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ hs_err_pid*
target
.gradle
build

# IntelliJ IDEA files
*.iml
/.idea/
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.8
2.4.19
2 changes: 2 additions & 0 deletions docs/AddTimeOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**time** | **Long** | time in seconds |
**userName** | **String** | User who spent the time (optional) | [optional]



544 changes: 528 additions & 16 deletions docs/AdminApi.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional]
**effectiveBranchProtectionName** | **String** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**name** | **String** | | [optional]
**_protected** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]
**userCanMerge** | **Boolean** | | [optional]
**userCanPush** | **Boolean** | | [optional]



32 changes: 32 additions & 0 deletions docs/BranchProtection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# BranchProtection

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvalsWhitelistTeams** | **List<String>** | | [optional]
**approvalsWhitelistUsername** | **List<String>** | | [optional]
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
**blockOnOutdatedBranch** | **Boolean** | | [optional]
**blockOnRejectedReviews** | **Boolean** | | [optional]
**branchName** | **String** | | [optional]
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**dismissStaleApprovals** | **Boolean** | | [optional]
**enableApprovalsWhitelist** | **Boolean** | | [optional]
**enableMergeWhitelist** | **Boolean** | | [optional]
**enablePush** | **Boolean** | | [optional]
**enablePushWhitelist** | **Boolean** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**mergeWhitelistTeams** | **List<String>** | | [optional]
**mergeWhitelistUsernames** | **List<String>** | | [optional]
**protectedFilePatterns** | **String** | | [optional]
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
**pushWhitelistTeams** | **List<String>** | | [optional]
**pushWhitelistUsernames** | **List<String>** | | [optional]
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]



16 changes: 16 additions & 0 deletions docs/CombinedStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# CombinedStatus

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commitUrl** | **String** | | [optional]
**repository** | [**Repository**](Repository.md) | | [optional]
**sha** | **String** | | [optional]
**state** | **String** | | [optional]
**statuses** | [**List<CommitStatus>**](CommitStatus.md) | | [optional]
**totalCount** | **Long** | | [optional]
**url** | **String** | | [optional]



2 changes: 2 additions & 0 deletions docs/Commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Type | Description | Notes
**author** | [**User**](User.md) | | [optional]
**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
**committer** | [**User**](User.md) | | [optional]
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**files** | [**List<CommitAffectedFiles>**](CommitAffectedFiles.md) | | [optional]
**htmlUrl** | **String** | | [optional]
**parents** | [**List<CommitMeta>**](CommitMeta.md) | | [optional]
**sha** | **String** | | [optional]
Expand Down
10 changes: 10 additions & 0 deletions docs/CommitAffectedFiles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# CommitAffectedFiles

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**filename** | **String** | | [optional]



11 changes: 11 additions & 0 deletions docs/CommitDateOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# CommitDateOptions

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**committer** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]



1 change: 1 addition & 0 deletions docs/CommitMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**sha** | **String** | | [optional]
**url** | **String** | | [optional]

Expand Down
18 changes: 18 additions & 0 deletions docs/CommitStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# CommitStatus

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**context** | **String** | | [optional]
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**creator** | [**User**](User.md) | | [optional]
**description** | **String** | | [optional]
**id** | **Long** | | [optional]
**status** | **String** | | [optional]
**targetUrl** | **String** | | [optional]
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**url** | **String** | | [optional]



30 changes: 30 additions & 0 deletions docs/CreateBranchProtectionOption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

# CreateBranchProtectionOption

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvalsWhitelistTeams** | **List<String>** | | [optional]
**approvalsWhitelistUsername** | **List<String>** | | [optional]
**blockOnOfficialReviewRequests** | **Boolean** | | [optional]
**blockOnOutdatedBranch** | **Boolean** | | [optional]
**blockOnRejectedReviews** | **Boolean** | | [optional]
**branchName** | **String** | | [optional]
**dismissStaleApprovals** | **Boolean** | | [optional]
**enableApprovalsWhitelist** | **Boolean** | | [optional]
**enableMergeWhitelist** | **Boolean** | | [optional]
**enablePush** | **Boolean** | | [optional]
**enablePushWhitelist** | **Boolean** | | [optional]
**enableStatusCheck** | **Boolean** | | [optional]
**mergeWhitelistTeams** | **List<String>** | | [optional]
**mergeWhitelistUsernames** | **List<String>** | | [optional]
**protectedFilePatterns** | **String** | | [optional]
**pushWhitelistDeployKeys** | **Boolean** | | [optional]
**pushWhitelistTeams** | **List<String>** | | [optional]
**pushWhitelistUsernames** | **List<String>** | | [optional]
**requireSignedCommits** | **Boolean** | | [optional]
**requiredApprovals** | **Long** | | [optional]
**statusCheckContexts** | **List<String>** | | [optional]



11 changes: 11 additions & 0 deletions docs/CreateBranchRepoOption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# CreateBranchRepoOption

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**newBranchName** | **String** | Name of the branch to create |
**oldBranchName** | **String** | Name of the old branch to create from | [optional]



2 changes: 2 additions & 0 deletions docs/CreateFileOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ Name | Type | Description | Notes
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**content** | **String** | content must be base64 encoded |
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**newBranch** | **String** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]



8 changes: 6 additions & 2 deletions docs/CreateHookOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **Boolean** | | [optional]
**branchFilter** | **String** | | [optional]
**config** | **Map<String, String>** | |
**config** | [**CreateHookOptionConfig**](CreateHookOptionConfig.md) | |
**events** | **List<String>** | | [optional]
**type** | [**TypeEnum**](#TypeEnum) | |

Expand All @@ -15,10 +15,14 @@ Name | Type | Description | Notes
## Enum: TypeEnum
Name | Value
---- | -----
DINGTALK | "dingtalk"
DISCORD | "discord"
GITEA | "gitea"
GOGS | "gogs"
MSTEAMS | "msteams"
SLACK | "slack"
DISCORD | "discord"
TELEGRAM | "telegram"
FEISHU | "feishu"



9 changes: 9 additions & 0 deletions docs/CreateHookOptionConfig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# CreateHookOptionConfig

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------



3 changes: 2 additions & 1 deletion docs/CreateIssueOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assignee** | **String** | username of assignee | [optional]
**assignee** | **String** | deprecated | [optional]
**assignees** | **List<String>** | | [optional]
**body** | **String** | | [optional]
**closed** | **Boolean** | | [optional]
**dueDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**labels** | **List<Long>** | list of label ids | [optional]
**milestone** | **Long** | milestone id | [optional]
**ref** | **String** | | [optional]
**title** | **String** | |


Expand Down
9 changes: 9 additions & 0 deletions docs/CreateMilestoneOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **String** | | [optional]
**dueOn** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**state** | [**StateEnum**](#StateEnum) | | [optional]
**title** | **String** | | [optional]


<a name="StateEnum"></a>
## Enum: StateEnum
Name | Value
---- | -----
OPEN | &quot;open&quot;
CLOSED | &quot;closed&quot;



11 changes: 11 additions & 0 deletions docs/CreateOAuth2ApplicationOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# CreateOAuth2ApplicationOptions

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]
**redirectUris** | **List&lt;String&gt;** | | [optional]



13 changes: 13 additions & 0 deletions docs/CreatePullReviewComment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# CreatePullReviewComment

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**newPosition** | **Long** | if comment to new file line or 0 | [optional]
**oldPosition** | **Long** | if comment to old file line or 0 | [optional]
**path** | **String** | the tree path | [optional]



13 changes: 13 additions & 0 deletions docs/CreatePullReviewOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# CreatePullReviewOptions

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **String** | | [optional]
**comments** | [**List&lt;CreatePullReviewComment&gt;**](CreatePullReviewComment.md) | | [optional]
**commitId** | **String** | | [optional]
**event** | **String** | | [optional]



15 changes: 14 additions & 1 deletion docs/CreateRepoOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**autoInit** | **Boolean** | Whether the repository should be auto-intialized? | [optional]
**defaultBranch** | **String** | DefaultBranch of the repository (used when initializes and in template) | [optional]
**description** | **String** | Description of the repository to create | [optional]
**gitignores** | **String** | Gitignores to use | [optional]
**issueLabels** | **String** | Issue Label set to use | [optional]
**issueLabels** | **String** | Label-Set to use | [optional]
**license** | **String** | License to use | [optional]
**name** | **String** | Name of the repository to create |
**_private** | **Boolean** | Whether the repository is private | [optional]
**readme** | **String** | Readme of the repository to create | [optional]
**template** | **Boolean** | Whether the repository is template | [optional]
**trustModel** | [**TrustModelEnum**](#TrustModelEnum) | TrustModel of the repository | [optional]


<a name="TrustModelEnum"></a>
## Enum: TrustModelEnum
Name | Value
---- | -----
DEFAULT | &quot;default&quot;
COLLABORATOR | &quot;collaborator&quot;
COMMITTER | &quot;committer&quot;
COLLABORATORCOMMITTER | &quot;collaboratorcommitter&quot;



2 changes: 2 additions & 0 deletions docs/CreateTeamOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**canCreateOrgRepo** | **Boolean** | | [optional]
**description** | **String** | | [optional]
**includesAllRepositories** | **Boolean** | | [optional]
**name** | **String** | |
**permission** | [**PermissionEnum**](#PermissionEnum) | | [optional]
**units** | **List&lt;String&gt;** | | [optional]
Expand Down
14 changes: 14 additions & 0 deletions docs/Cron.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# Cron

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**execTimes** | **Long** | | [optional]
**name** | **String** | | [optional]
**next** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**prev** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
**schedule** | **String** | | [optional]



2 changes: 2 additions & 0 deletions docs/DeleteFileOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Name | Type | Description | Notes
**author** | [**Identity**](Identity.md) | | [optional]
**branch** | **String** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
**message** | **String** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**newBranch** | **String** | new_branch (optional) will make a new branch from &#x60;branch&#x60; before creating the file | [optional]
**sha** | **String** | sha is the SHA for the file that already exists |
**signoff** | **Boolean** | Add a Signed-off-by trailer by the committer at the end of the commit log message. | [optional]



10 changes: 10 additions & 0 deletions docs/DismissPullReviewOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# DismissPullReviewOptions

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **String** | | [optional]



Loading