]> source.dussan.org Git - gitea.git/commit
feat(API): add route and implementation for creating/updating repository secret ...
authorBo-Yi Wu <appleboy.tw@gmail.com>
Tue, 29 Aug 2023 20:54:49 +0000 (04:54 +0800)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 20:54:49 +0000 (20:54 +0000)
commitb91057b172dea07a9db1bf96a32d2ab25a0e030d
treeb4a88a07895a2fba14998a577cd8b778c2400dfb
parent2d9249b6d9b57dea57b70357432bda945504c4b5
feat(API): add route and implementation for creating/updating repository secret (#26766)

spec:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-a-repository-secret

- Add a new route for creating or updating a secret value in a
repository
- Create a new file `routers/api/v1/repo/action.go` with the
implementation of the `CreateOrUpdateSecret` function
- Update the Swagger documentation for the `updateRepoSecret` operation
in the `v1_json.tmpl` template file

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
models/secret/secret.go
routers/api/v1/api.go
routers/api/v1/org/action.go
routers/api/v1/repo/action.go [new file with mode: 0644]
templates/swagger/v1_json.tmpl