jojo/routers/api/v1
Andreas Ahlenstorf ba2a6fbc41 fix: disable actions endpoints of repository if actions are disabled (#10726)
Some HTTP API endpoints related to Actions, like `/api/v1/repos/{owner}/{repository}/actions/runners`, were not disabled if Actions had been disabled on a repository. With this change, all endpoints related to Actions will be disabled if Actions are disabled.

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [ ] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10726
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
2026-01-10 16:40:00 +01:00
..
activitypub log instrumentation & test package (#10371) 2025-12-09 15:37:50 +01:00
admin feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
misc feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
notify feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
org feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
packages chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo fix: Fix error messages in pull.go (#10715) 2026-01-06 17:22:37 +01:00
settings chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
shared feat: add HTTP API endpoint for runner registration (#10677) 2026-01-05 04:59:04 +01:00
swagger feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
user feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
utils feat: use keying for webhook secrets (#10059) 2025-12-22 15:51:37 +01:00
api.go fix: disable actions endpoints of repository if actions are disabled (#10726) 2026-01-10 16:40:00 +01:00