gitea/models/git
Zettat123 385994295d
Replace index with id in actions routes (#36842)
This PR migrates the web Actions run/job routes from index-based
`runIndex` or `jobIndex` to database IDs.

**⚠️ BREAKING ⚠️**: Existing saved links/bookmarks that use the old
index-based URLs will no longer resolve after this change.

Improvements of this change:
- Previously, `jobIndex` depended on list order, making it hard to
locate a specific job. Using `jobID` provides stable addressing.
- Web routes now align with API, which already use IDs.
- Behavior is closer to GitHub, which exposes run/job IDs in URLs.
- Provides a cleaner base for future features without relying on list
order.
- #36388 this PR improves the support for reusable workflows. If a job
uses a reusable workflow, it may contain multiple child jobs, which
makes relying on job index to locate a job much more complicated

---------

Signed-off-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-10 22:14:48 +01:00
..
branch.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
branch_list.go
branch_test.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
commit_status.go
commit_status_summary.go
commit_status_test.go Replace index with id in actions routes (#36842) 2026-03-10 22:14:48 +01:00
lfs.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
lfs_lock.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
lfs_lock_list.go
lfs_lock_test.go LFS locks must belong to the intended repo (#36344) 2026-01-11 12:57:58 +02:00
lfs_test.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
main_test.go
protected_branch.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_branch_list.go
protected_branch_list_test.go
protected_branch_test.go
protected_tag.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_tag_test.go