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 Fix branch order (#31174) 2024-05-31 09:58:41 +08:00
branch_test.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
commit_status.go Add quick approve button on PR page (#35678) 2025-10-20 18:46:37 +08:00
commit_status_summary.go Keeping consistent between UI and API about combined commit status state and fix some bugs (#34562) 2025-06-09 04:05:33 +00:00
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 Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-11 14:48:20 +00:00
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 make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_branch_list.go Replace gobwas/glob package (#35478) 2025-09-13 18:01:00 +00:00
protected_branch_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
protected_branch_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
protected_tag.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_tag_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00