You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
oliverpool 8030614386
fix: release page for empty or non-existing target (#24470)
Fixes #24145

To solve the bug, I added a "computed" `TargetBehind` field to the
`Release` model, which indicates the target branch of a release.
This is particularly useful if the target branch was deleted in the
meantime (or is empty).

I also did a micro-optimization in `calReleaseNumCommitsBehind`. Instead
of checking that a branch exists and then call `GetBranchCommit`, I
immediately call `GetBranchCommit` and handle the `git.ErrNotExist`
error.

This optimization is covered by the added unit test.
1 year ago
..
api Filter get single commit (#24613) 1 year ago
common Make repository response support HTTP range request (#24592) 1 year ago
install Improve template system and panic recovery (#24461) 1 year ago
private Refactor web route (#24080) 1 year ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web fix: release page for empty or non-existing target (#24470) 1 year ago
init.go Use globally shared HTMLRender (#24436) 1 year ago