]> source.dussan.org Git - gitea.git/commit
Add API route to list org secrets (#26485)
authorBo-Yi Wu <appleboy.tw@gmail.com>
Tue, 15 Aug 2023 12:32:43 +0000 (20:32 +0800)
committerGitHub <noreply@github.com>
Tue, 15 Aug 2023 12:32:43 +0000 (14:32 +0200)
commit79d74d208fe5cf9a5cdcb701cc48f115569a96d0
treeab709779eb68ad389bde6bc8b61827e274835479
parentd317c983bc877d3286f9dc3decb53d534a56a6d0
Add API route to list org secrets (#26485)

- Add a new function `CountOrgSecrets` in the file
`models/secret/secret.go`
- Add a new file `modules/structs/secret.go`
- Add a new function `ListActionsSecrets` in the file
`routers/api/v1/api.go`
- Add a new file `routers/api/v1/org/action.go`
- Add a new function `listActionsSecrets` in the file
`routers/api/v1/org/action.go`

go-sdk: https://gitea.com/gitea/go-sdk/pulls/629

---------

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