mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-26 06:33:42 +09:00
enhance: allow auto-closing PRs from PRs (#39393)
On GitHub, one can close PRs via `Fixes: #123` references which was not possible on Gitea before, but now is. Verified fully that behaviour matches GH and ensured no regressions for external trackers.
This commit is contained in:
@@ -85,6 +85,7 @@ type IssueReference struct {
|
||||
Index int64
|
||||
Owner string
|
||||
Name string
|
||||
IsPull bool
|
||||
Action XRefAction
|
||||
TimeLog string
|
||||
}
|
||||
@@ -123,6 +124,7 @@ func rawToIssueReferenceList(reflist []*rawReference) []IssueReference {
|
||||
Index: r.index,
|
||||
Owner: r.owner,
|
||||
Name: r.name,
|
||||
IsPull: r.isPull,
|
||||
Action: r.action,
|
||||
TimeLog: r.timeLog,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user