forgejo/routers/api/v1/repo
Bo-Yi Wu 7b456a28d1
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>
(cherry picked from commit 852547d0dc70299589c7bf8d00ea462ed709b8e5)

Conflicts:
	routers/api/v1/api.go
	trivial conflict because of Fix #2512 /api/forgejo/v1/version auth check (#2582)
2024-04-28 15:39:01 +02:00
..
action.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-28 15:39:01 +02:00
avatar.go
blob.go
branch.go Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-21 16:28:16 +02:00
collaborators.go
commits.go
compare.go Fix compare api swagger (#30648) 2024-04-28 15:39:00 +02:00
file.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
flags.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
issue_attachment.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_comment.go Do some performance optimize for issues list and view issue/pull (gitea#29515) 2024-04-08 14:47:31 +02:00
issue_comment_attachment.go
issue_dependency.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_label.go
issue_pin.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
notes.go
patch.go
pull.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
pull_review.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
release_attachment.go
release_tags.go
repo.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
repo_test.go
star.go
status.go
subscriber.go
tag.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
teams.go
topic.go
transfer.go
tree.go
wiki.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00