1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-26 08:58:24 +00:00

Merge remote-tracking branch 'origin/main' into api-repo-actions

This commit is contained in:
chesterip
2023-08-30 11:31:23 -04:00
317 changed files with 3111 additions and 2686 deletions

View File

@@ -18,6 +18,7 @@ type Release struct {
HTMLURL string `json:"html_url"`
TarURL string `json:"tarball_url"`
ZipURL string `json:"zipball_url"`
UploadURL string `json:"upload_url"`
IsDraft bool `json:"draft"`
IsPrerelease bool `json:"prerelease"`
// swagger:strfmt date-time

View File

@@ -14,14 +14,11 @@ type Secret struct {
Created time.Time `json:"created_at"`
}
// CreateSecretOption options when creating secret
// CreateOrUpdateSecretOption options when creating or updating secret
// swagger:model
type CreateSecretOption struct {
// Name of the secret to create
type CreateOrUpdateSecretOption struct {
// Data of the secret to update
//
// required: true
// unique: true
Name string `json:"name" binding:"Required;AlphaDashDot;MaxSize(100)"`
// Data of the secret to create
Data string `json:"data" binding:"Required"`
}