jojo/routers/api/v1/repo
elbaro f18873f83b feat: add /actions/runs/{id}/jobs (#11915)
This PR is a minimal implementation to add `/actions/runs/{id}/jobs` (#11859).
This endpoint is also required by `/actions/jobs/{id}/logs`.

The pagination, filtering, custom sorting, more response fields are left to future work.

## Usage

```
curl -X 'GET' \
  'https://hostname/api/v1/repos/{owner}/{repo}/actions/runs/{id}/jobs' \
  -H 'accept: application/json'
```

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. All work and communication must conform to Forgejo's [AI Agreement](https://codeberg.org/forgejo/governance/src/branch/main/AIAgreement.md). 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 for Go changes

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
  - [x] `make pr-go` before pushing

### 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

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

Co-authored-by: elbaro <elbaro@users.noreply.github.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11915
Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: elbaro <elbaro@noreply.codeberg.org>
Co-committed-by: elbaro <elbaro@noreply.codeberg.org>
2026-04-06 03:43:41 +02:00
..
action.go feat: add /actions/runs/{id}/jobs (#11915) 2026-04-06 03:43:41 +02:00
action_test.go feat: add more filters to actions run and tasks api (#11584) 2026-03-10 01:20:00 +01:00
avatar.go chore(api): update swagger method descripitons (#8728) 2025-07-30 18:08:28 +02:00
blob.go fix: minor typos (#9880) 2025-10-28 13:31:29 +01:00
branch.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
collaborators.go ci: add semgrep detection for API code ignoring repo-specific access tokens (#11476) 2026-03-03 17:55:35 +01:00
commits.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
compare.go fix: make API /repos/{owner}/{repo}/compare/{basehead} work with forks (#8326) 2025-06-28 23:28:12 +02:00
download.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
file.go Update Swagger annotations to reflect actual behavior (#9138) 2025-09-15 11:55:49 +02:00
flags.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fork.go ci: add semgrep detection for API code ignoring repo-specific access tokens (#11476) 2026-03-03 17:55:35 +01:00
git_hook.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git_ref.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
hook.go fix: allow test delivery for webhooks not enabled for push events (#11073) 2026-01-27 23:19:34 +01:00
hook_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
issue.go feat: document more status codes in the API (#11717) 2026-03-20 02:22:20 +01:00
issue_attachment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_comment.go perf: bulk load resolvers & reactions on pull request comments (#11988) 2026-04-05 14:37:09 +02:00
issue_comment_attachment.go fix: comment attachment API is more restrictive than the web UI (#11623) 2026-03-19 01:39:29 +01:00
issue_dependency.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
issue_label.go feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
issue_pin.go feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
issue_reaction.go feat: Add header annotations for accurate API documentation (#9380) 2026-01-06 10:29:15 +01:00
issue_stopwatch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_subscription.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
issue_tracked_time.go feat: document more status codes in the API (#11717) 2026-03-20 02:22:20 +01:00
key.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
label.go Update Swagger annotations to reflect actual behavior (#9138) 2025-09-15 11:55:49 +02:00
language.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
migrate.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
milestone.go Update Swagger annotations to reflect actual behavior (#9138) 2025-09-15 11:55:49 +02:00
mirror.go chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
notes.go chore: simplify GetNote (#9985) 2025-11-06 13:23:35 +01:00
patch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull.go feat: document more status codes in the API (#11717) 2026-03-20 02:22:20 +01:00
pull_review.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
release.go fix(api): default new release 'title' field to label name, if not provided (#10925) 2026-01-20 18:24:46 +01:00
release_attachment.go feat: make upload URL compatible with GitHub API (#9285) 2025-09-15 15:53:35 +02:00
release_tags.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
repo.go feat: ensure repo-specific access tokens can't perform repo admin operations (#11736) 2026-03-20 16:14:36 +01:00
repo_test.go refactor: migrate from lib/pq to jackc/pgx (#10219) 2025-11-30 17:47:45 +01:00
star.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
status.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
subscriber.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
sync_fork.go feat: sync forks (#2364) 2025-04-07 07:00:38 +00:00
tag.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
tag_test.go fix(api): set default pagination and Link header for repoListTags (#9201) 2025-09-09 02:24:07 +02:00
teams.go feat: document more status codes in the API (#11717) 2026-03-20 02:22:20 +01:00
topic.go Update Swagger annotations to reflect actual behavior (#9138) 2025-09-15 11:55:49 +02:00
transfer.go feat: remove admin-level permissions from repo-specific & public-only access tokens (#11468) 2026-03-04 16:17:41 +01:00
tree.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
wiki.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00