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.
8030614386
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 | |
---|---|---|
.. | ||
admin | 1 year ago | |
auth | 1 year ago | |
devtest | 1 year ago | |
events | 2 years ago | |
explore | 1 year ago | |
feed | 1 year ago | |
healthcheck | 1 year ago | |
misc | 1 year ago | |
org | 1 year ago | |
repo | 1 year ago | |
shared | 1 year ago | |
user | 1 year ago | |
auth.go | 2 years ago | |
auth_windows.go | 2 years ago | |
base.go | 1 year ago | |
goget.go | 2 years ago | |
home.go | 1 year ago | |
metrics.go | 2 years ago | |
nodeinfo.go | 2 years ago | |
swagger_json.go | 1 year ago | |
web.go | 1 year ago | |
webfinger.go | 1 year ago |