mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-21 16:18:56 +00:00
8cd46024fd
According to the GitHub API Spec: https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret Merge the Create and Update secret into a single API. - Remove the `CreateSecretOption` struct and replace it with `CreateOrUpdateSecretOption` in `modules/structs/secret.go` - Update the `CreateOrUpdateOrgSecret` function in `routers/api/v1/org/action.go` to use `CreateOrUpdateSecretOption` instead of `UpdateSecretOption` - Remove the `CreateOrgSecret` function in `routers/api/v1/org/action.go` and replace it with `CreateOrUpdateOrgSecret` - Update the Swagger documentation in `routers/api/v1/swagger/options.go` and `templates/swagger/v1_json.tmpl` to reflect the changes in the struct names and function names Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> |
||
---|---|---|
.. | ||
action.go | ||
activity.go | ||
activitypub.go | ||
app.go | ||
cron.go | ||
issue.go | ||
key.go | ||
misc.go | ||
nodeinfo.go | ||
notify.go | ||
options.go | ||
org.go | ||
package.go | ||
repo.go | ||
settings.go | ||
user.go |