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/tests
oliverpool bb2783860b
fix calReleaseNumCommitsBehind (#24148)
`repoCtx.CommitsCount` is not reliably the commit count of the default
branch (Repository.GetCommitsCount depends on what is currently
displayed).

For instance on the releases page the commit count is correct:
https://codeberg.org/Codeberg/pages-server/releases


![2023-04-15-215027](https://user-images.githubusercontent.com/3864879/232250500-6c05dc00-7030-4ec9-87f1-18c7797d36bf.png)

However it is not on the single page:
https://codeberg.org/Codeberg/pages-server/releases/tag/v4.6.2


![2023-04-15-215036](https://user-images.githubusercontent.com/3864879/232250503-620c8038-7c2c-45a1-b99d-cb994ef955a6.png)

This PR fixes this by removing a "fast branch" which was using this
field (I think this field should be removed, since it is a bit
unpredictable - but this would mean a larger refactoring PR).

_contributed in the context of @forgejo_

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
e2e Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
fuzz Move fuzz tests into tests/fuzz (#22376) 2 years ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta fix calReleaseNumCommitsBehind (#24148) 1 year ago
integration fix calReleaseNumCommitsBehind (#24148) 1 year ago
mssql.ini.tmpl Kd/ci playwright go test (#20123) 2 years ago
mysql.ini.tmpl Split CI pipelines (#23385) 1 year ago
mysql8.ini.tmpl Kd/ci playwright go test (#20123) 2 years ago
pgsql.ini.tmpl Make minio package support legacy MD5 checksum (#23768) 1 year ago
sqlite.ini.tmpl Clean some legacy files and move some build files (#23699) 1 year ago
test_utils.go add path prefix to ObjectStorage.Iterator (#23332) 1 year ago
testlogger.go Implement FSFE REUSE for golang files (#21840) 2 years ago