0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-05 02:59:13 +01:00
gitea/services/actions
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
..
auth_test.go Add interface{} to any replacement to make fmt, exclude *.pb.go (#30461) 2024-04-13 17:32:15 +00:00
auth.go Add ac claim for old docker/build-push-action@v3 / current buildx gha cache (#29584) 2024-03-05 17:34:42 +00:00
cleanup.go Expire artifacts before deleting them physically (#29241) 2024-02-18 22:25:14 +08:00
clear_tasks.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
commit_status.go Add commit status summary table to reduce query from commit status table (#30223) 2024-04-12 09:41:50 +08:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
interface.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-26 21:11:49 +08:00
job_emitter_test.go The job should always run when if is always() (#29464) 2024-02-28 11:54:44 +01:00
job_emitter.go The job should always run when if is always() (#29464) 2024-02-28 11:54:44 +01:00
notifier_helper.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
notifier.go Fix missed doer (#30231) 2024-04-08 21:26:41 +00:00
rerun_test.go Fix bugs in rerunning jobs (#29955) 2024-03-22 03:19:17 +00:00
rerun.go Fix bugs in rerunning jobs (#29955) 2024-03-22 03:19:17 +00:00
schedule_tasks.go Interpolate runs-on with variables when scheduling tasks (#30640) 2024-04-23 20:55:25 +02:00
variables.go Add API for Variables (#29520) 2024-03-28 20:40:35 +00:00