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/models
yp05327 e61e9a36b7
Fix PullRequestList.GetIssueIDs's logic (#31352)
fix a bug from #30490

`prs.GetIssueIDs()` will also be used in other places, e.g.
`InvalidateCodeComments`
so we should not add `if pr.Issue == nil` in it, or if `pr.Issue` is
already loaded, you will not get the issueID in the results list and
this is not an expected result.

So this will caused a bug:
before calling `InvalidateCodeComments`, all `pr.Issues` in `prs` are
loaded, so `issueIDs` in this function will always be `[]`.

![image](https://github.com/go-gitea/gitea/assets/18380374/ef94d9d2-0bf9-455a-abd6-4d5e6497db7c)
9 months ago
..
actions Drop `IDOrderDesc` for listing Actions task and always order by `id DESC` (#31150) 10 months ago
activities Rename project board -> column to make the UI less confusing (#30170) 10 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 2 years ago
asymkey Enable more `revive` linter rules (#30608) 11 months ago
auth Fix wrong table name (#30557) 11 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 12 months ago
db [Refactor] Unify repo search order by logic (#30876) 9 months ago
dbfs Enable `unparam` linter (#31277) 9 months ago
fixtures Fix wrong display of recently pushed notification (#25812) 10 months ago
git Fix branch order (#31174) 10 months ago
issues Fix PullRequestList.GetIssueIDs's logic (#31352) 9 months ago
migrations Fix the possible migration failure on 286 with postgres 16 (#31209) 9 months ago
organization Fix wrong display of recently pushed notification (#25812) 10 months ago
packages Fix package list performance (#30520) 11 months ago
perm Clarify permission "HasAccess" behavior (#30585) 11 months ago
project Rename project board -> column to make the UI less confusing (#30170) 10 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo [Refactor] Unify repo search order by logic (#30876) 9 months ago
secret Make runs-on support variable expression (#29468) 1 year ago
shared/types Refactor locale&string&template related code (#29165) 1 year ago
system Refactor deletion (#28610) 1 year ago
unit Rename project board -> column to make the UI less confusing (#30170) 10 months ago
unittest Add some tests to clarify the "must-change-password" behavior (#30693) 11 months ago
user Performance improvements for pull request list API (#30490) 10 months ago
webhook Store webhook event in database (#29145) 1 year ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Add user blocking (#29028) 1 year ago
org_team.go Clarify permission "HasAccess" behavior (#30585) 11 months ago
org_team_test.go Add user blocking (#29028) 1 year ago
org_test.go Add user blocking (#29028) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 11 months ago