0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 02:57:47 +01:00
gitea/routers/api/v1/org
Bo-Yi Wu 852547d0dc
feat(api): enhance Actions Secrets Management API for repository (#30656)
- Add endpoint to list repository action secrets in API routes
- Implement `ListActionsSecrets` function to retrieve action secrets
from the database
- Update Swagger documentation to include the new
`/repos/{owner}/{repo}/actions/secrets` endpoint
- Add `actions` package import and define new routes for actions,
secrets, variables, and runners in `api.go`.
- Refactor action-related API functions into `Action` struct methods in
`org/action.go` and `repo/action.go`.
- Remove `actionAPI` struct and related functions, replacing them with
`NewAction()` calls.
- Rename `variables.go` to `action.go` in `org` directory.
- Delete `runners.go` and `secrets.go` in both `org` and `repo`
directories, consolidating their content into `action.go`.
- Update copyright year and add new imports in `org/action.go`.
- Implement `API` interface in `services/actions/interface.go` for
action-related methods.
- Remove individual action-related functions and replace them with
methods on the `Action` struct in `repo/action.go`.

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
2024-04-26 21:11:49 +08:00
..
action.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-26 21:11:49 +08:00
avatar.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
block.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
hook.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
label.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
member.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
org.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
team.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00