Skip to content

Conversation

@Gusted
Copy link
Contributor

@Gusted Gusted commented Oct 11, 2022

- Backport go-gitea#21404
  - Currently `repository.Num{Issues,Pulls}` weren't checked and could become out-of-consistency. Adds these two checks to `CheckRepoStats`.
  - Fix incorrect SQL query for `repository.NumClosedPulls`, the check should be for `repo_num_pulls`.
  - Reference: https://codeberg.org/Codeberg/Community/issues/696
@Gusted Gusted added this to the 1.17.3 milestone Oct 11, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 12, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 12, 2022
@wxiaoguang wxiaoguang merged commit d745780 into go-gitea:release/v1.17 Oct 12, 2022
@Gusted Gusted deleted the backport-21404 branch October 12, 2022 13:04
tyroneyeh pushed a commit to tyroneyeh/gitea that referenced this pull request Oct 24, 2022
Backport go-gitea#21404

Currently `repository.Num{Issues,Pulls}` weren't checked and could
become out-of-consistency. Adds these two checks to `CheckRepoStats`.

Fix incorrect SQL query for `repository.NumClosedPulls`, the check
should be for `repo_num_pulls`.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants