go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.02k stars 5.49k forks source link

'Commits since last release' label broken #18307

Closed OCram85 closed 1 year ago

OCram85 commented 2 years ago

Gitea Version

1.5.10

Git Version

2.30.2

Operating System

SLES 15 SP2

How are you running Gitea?

[2x haproxy / keepalived nodes] --- (ponting to traefik reverse proxy) ---> [ multiple docker swarm manager] ---- running ---> [ Single gitea container ]

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

The link label on the repo/release page seems to be broken The counter 0 commits

Can't reproduce it 100% on https://gitea.com/xorm/xorm/releases because #18226 isn't fixed on this instance.

The commits were always done via the same gitea workflow -> [Gitea PR] -> [Review] -> [Squash Commit / Merge to master].

Screenshots

image

image

zeripath commented 2 years ago

OK I think this is working on 1.16.0

Screenshot from 2022-01-17 19-49-46

But what's really interesting is that if you look at your first picture the 1.0.3 release looks correct - except the DefaultBranch is incorrect.

exu-g commented 2 years ago

Broken again in 1.17.2. I've made 1 commit since this release.
grafik

Clicking the link does lead to the correct diff with 1 commit.
grafik

wxiaoguang commented 1 year ago

Come across this one.

Incorrect milestone, and .... whether it has been fixed?

wxiaoguang commented 1 year ago

It should have been fixed by: fix calReleaseNumCommitsBehind (#24148)