mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 22:16:14 +01:00
Backport #22822 --------- Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
638fbd0b78
commit
68b908d92a
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ func GetDefaultMergeMessage(baseGitRepo *git.Repository, pr *issues_model.PullRe
|
||||||
}
|
}
|
||||||
for _, ref := range refs {
|
for _, ref := range refs {
|
||||||
if ref.RefAction == references.XRefActionCloses {
|
if ref.RefAction == references.XRefActionCloses {
|
||||||
|
if err := ref.LoadIssue(); err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
closeIssueIndexes = append(closeIssueIndexes, fmt.Sprintf("%s %s%d", closeWord, issueReference, ref.Issue.Index))
|
closeIssueIndexes = append(closeIssueIndexes, fmt.Sprintf("%s %s%d", closeWord, issueReference, ref.Issue.Index))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue