1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/routers/api/v1/org
Bo-Yi Wu b62c8e7765
feat(API): update and delete secret for managing organization secrets (#26660)
- Add `UpdateSecret` function to modify org or user repo secret
- Add `DeleteSecret` function to delete secret from an organization
- Add `UpdateSecretOption` struct for updating secret options
- Add `UpdateOrgSecret` function to update a secret in an organization
- Add `DeleteOrgSecret` function to delete a secret in an organization

GitHub API

1. Update Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
2. Delete Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#delete-an-organization-secret

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2023-08-24 02:07:00 +00:00
..
action.go feat(API): update and delete secret for managing organization secrets (#26660) 2023-08-24 02:07:00 +00:00
avatar.go Add API for changing Avatars (#25369) 2023-06-29 23:22:55 +00:00
hook.go Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
label.go Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00
member.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
org.go Allow Organisations to have a E-Mail (#25082) 2023-07-25 08:26:27 +00:00
team.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00