mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:37:18 -04:00
Respect default merge message syntax when parsing item references (#15772)
* Respect merge message structure for parsing item references Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
a2df265476
commit
2e0f315617
2 changed files with 8 additions and 1 deletions
|
@ -197,6 +197,13 @@ func TestFindAllIssueReferences(t *testing.T) {
|
|||
{200, "user3", "repo4", "200", false, XRefActionNone, &RefSpan{Start: 5, End: 20}, nil, ""},
|
||||
},
|
||||
},
|
||||
{
|
||||
"Merge pull request '#12345 My fix for a bug' (!1337) from feature-branch into main",
|
||||
[]testResult{
|
||||
{12345, "", "", "12345", false, XRefActionNone, &RefSpan{Start: 20, End: 26}, nil, ""},
|
||||
{1337, "", "", "1337", true, XRefActionNone, &RefSpan{Start: 46, End: 51}, nil, ""},
|
||||
},
|
||||
},
|
||||
{
|
||||
"Which abc. #9434 same as above",
|
||||
[]testResult{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue