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.
gitea/services
Jason Song 74874d065f
Fix issue/PR numbers (#22037)
When deleting a closed issue, we should update both `NumIssues`and
`NumClosedIssues`, or `NumOpenIssues`(`= NumIssues -NumClosedIssues`)
will be wrong. It's the same for pull requests.

Releated to #21557.

Alse fixed two harmless problems:

- The SQL to check issue/PR total numbers is wrong, that means it will
update the numbers even if they are correct.
- Replace legacy `num_issues = num_issues + 1` operations with
`UpdateRepoIssueNumbers`.
2 years ago
..
agit refactor some functions to support ctx as first parameter (#21878) 2 years ago
asymkey Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment Implement FSFE REUSE for golang files (#21840) 2 years ago
auth refactor some functions to support ctx as first parameter (#21878) 2 years ago
automerge refactor some functions to support ctx as first parameter (#21878) 2 years ago
comments Implement FSFE REUSE for golang files (#21840) 2 years ago
context Implement FSFE REUSE for golang files (#21840) 2 years ago
cron Implement FSFE REUSE for golang files (#21840) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
gitdiff Implement FSFE REUSE for golang files (#21840) 2 years ago
issue Fix issue/PR numbers (#22037) 2 years ago
lfs refactor some functions to support ctx as first parameter (#21878) 2 years ago
mailer refactor some functions to support ctx as first parameter (#21878) 2 years ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations refactor some functions to support ctx as first parameter (#21878) 2 years ago
mirror Implement FSFE REUSE for golang files (#21840) 2 years ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
release refactor some functions to support ctx as first parameter (#21878) 2 years ago
repository refactor some functions to support ctx as first parameter (#21878) 2 years ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki Implement FSFE REUSE for golang files (#21840) 2 years ago