gitea/modules/structs
Bo-Yi Wu 8cd46024fd
refactor(API): refactor secret creation and update functionality ()
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>
..
activity.go Add activity feeds API ()
activitypub.go Implement FSFE REUSE for golang files ()
admin_user.go Allow custom "created" timestamps in user creation API ()
attachment.go Implement FSFE REUSE for golang files ()
commit_status.go Add link to job details and tooltip to commit status in repo list in dashboard ()
commit_status_test.go refactor improve NoBetterThan ()
cron.go Implement FSFE REUSE for golang files ()
doc.go Implement FSFE REUSE for golang files ()
fork.go Implement FSFE REUSE for golang files ()
git_blob.go Implement FSFE REUSE for golang files ()
git_hook.go Implement FSFE REUSE for golang files ()
hook.go Add `branch_filter` to hooks API endpoints ()
issue.go Replace `interface{}` with `any` ()
issue_comment.go Add API management for issue/pull and comment attachments ()
issue_label.go Allow to archive labels ()
issue_milestone.go Implement FSFE REUSE for golang files ()
issue_reaction.go Implement FSFE REUSE for golang files ()
issue_stopwatch.go Implement FSFE REUSE for golang files ()
issue_test.go Implement FSFE REUSE for golang files ()
issue_tracked_time.go Implement FSFE REUSE for golang files ()
lfs_lock.go Implement FSFE REUSE for golang files ()
mirror.go Add `sync_on_commit` option for push mirrors api ()
miscellaneous.go Add API for gitignore templates ()
nodeinfo.go Implement FSFE REUSE for golang files ()
notifications.go Implement FSFE REUSE for golang files ()
org.go Allow Organisations to have a E-Mail ()
org_member.go Implement FSFE REUSE for golang files ()
org_team.go Doc update swagger doc for POST /orgs/{org}/teams ()
package.go Implement FSFE REUSE for golang files ()
pull.go Add the ability to pin Issues ()
pull_review.go Implement FSFE REUSE for golang files ()
release.go add Upload URL to release API ()
repo.go Support copy protected branch from template repository ()
repo_branch.go Supports wildcard protected branch ()
repo_collaborator.go Implement FSFE REUSE for golang files ()
repo_commit.go Add file status for API "Get a single commit from a repository" () ()
repo_file.go Refactor "Content" for file uploading ()
repo_key.go Implement FSFE REUSE for golang files ()
repo_note.go Implement FSFE REUSE for golang files ()
repo_refs.go Implement FSFE REUSE for golang files ()
repo_tag.go Implement FSFE REUSE for golang files ()
repo_topic.go Implement FSFE REUSE for golang files ()
repo_tree.go Implement FSFE REUSE for golang files ()
repo_watch.go Replace `interface{}` with `any` ()
repo_wiki.go Implement FSFE REUSE for golang files ()
secret.go refactor(API): refactor secret creation and update functionality ()
settings.go Implement FSFE REUSE for golang files ()
status.go Implement FSFE REUSE for golang files ()
task.go Make repo migration cancelable and fix various bugs ()
user.go Add API for changing Avatars ()
user_app.go Add scopes to API to create token and display them ()
user_email.go add admin API email endpoints ()
user_gpgkey.go Implement FSFE REUSE for golang files ()
user_key.go Implement FSFE REUSE for golang files ()
visible_type.go change org_type.go to visible_type.go and fix the notes ()