-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #27801 --------- Co-authored-by: silverwind <me@silverwind.io>
- Loading branch information
1 parent
6103623
commit 62b073e
Showing
16 changed files
with
2,137 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2024 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package structs | ||
|
||
// CreateVariableOption the option when creating variable | ||
// swagger:model | ||
type CreateVariableOption struct { | ||
// Value of the variable to create | ||
// | ||
// required: true | ||
Value string `json:"value" binding:"Required"` | ||
} | ||
|
||
// UpdateVariableOption the option when updating variable | ||
// swagger:model | ||
type UpdateVariableOption struct { | ||
// New name for the variable. If the field is empty, the variable name won't be updated. | ||
Name string `json:"name"` | ||
// Value of the variable to update | ||
// | ||
// required: true | ||
Value string `json:"value" binding:"Required"` | ||
} | ||
|
||
// ActionVariable return value of the query API | ||
// swagger:model | ||
type ActionVariable struct { | ||
// the owner to which the variable belongs | ||
OwnerID int64 `json:"owner_id"` | ||
// the repository to which the variable belongs | ||
RepoID int64 `json:"repo_id"` | ||
// the name of the variable | ||
Name string `json:"name"` | ||
// the value of the variable | ||
Data string `json:"data"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.