@@ -399,7 +399,7 @@ func MRCreateDiscussion(projID interface{}, id int, opts *gitlab.CreateMergeRequ
399
399
if err != nil {
400
400
return "" , err
401
401
}
402
- return fmt .Sprintf ("%s/merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
402
+ return fmt .Sprintf ("%s/-/ merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
403
403
}
404
404
405
405
// MRUpdate edits an merge request on a GitLab project
@@ -437,7 +437,7 @@ func MRCreateNote(projID interface{}, id int, opts *gitlab.CreateMergeRequestNot
437
437
if err != nil {
438
438
return "" , err
439
439
}
440
- return fmt .Sprintf ("%s/merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
440
+ return fmt .Sprintf ("%s/-/ merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
441
441
}
442
442
443
443
// MRGet retrieves the merge request from GitLab project
@@ -666,7 +666,7 @@ func IssueCreateNote(projID interface{}, id int, opts *gitlab.CreateIssueNoteOpt
666
666
if err != nil {
667
667
return "" , err
668
668
}
669
- return fmt .Sprintf ("%s/issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
669
+ return fmt .Sprintf ("%s/-/ issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
670
670
}
671
671
672
672
// IssueGet retrieves the issue information from a GitLab project
@@ -1455,7 +1455,7 @@ func AddMRDiscussionNote(projID interface{}, mrID int, discussionID string, body
1455
1455
if err != nil {
1456
1456
return "" , err
1457
1457
}
1458
- return fmt .Sprintf ("%s/merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1458
+ return fmt .Sprintf ("%s/-/ merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1459
1459
}
1460
1460
1461
1461
// AddIssueDiscussionNote adds a note to an existing issue discussion on GitLab
@@ -1473,7 +1473,7 @@ func AddIssueDiscussionNote(projID interface{}, issueID int, discussionID string
1473
1473
if err != nil {
1474
1474
return "" , err
1475
1475
}
1476
- return fmt .Sprintf ("%s/issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1476
+ return fmt .Sprintf ("%s/-/ issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1477
1477
}
1478
1478
1479
1479
// UpdateIssueDiscussionNote updates a specific discussion or note in the
@@ -1492,7 +1492,7 @@ func UpdateIssueDiscussionNote(projID interface{}, issueID int, discussionID str
1492
1492
if err != nil {
1493
1493
return "" , err
1494
1494
}
1495
- return fmt .Sprintf ("%s/issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1495
+ return fmt .Sprintf ("%s/-/ issues/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1496
1496
}
1497
1497
1498
1498
// UpdateMRDiscussionNote updates a specific discussion or note in the
@@ -1511,7 +1511,7 @@ func UpdateMRDiscussionNote(projID interface{}, mrID int, discussionID string, n
1511
1511
if err != nil {
1512
1512
return "" , err
1513
1513
}
1514
- return fmt .Sprintf ("%s/merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1514
+ return fmt .Sprintf ("%s/-/ merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1515
1515
}
1516
1516
1517
1517
// ListMRsClosingIssue returns a list of MR IDs that has relation to an issue
@@ -1581,7 +1581,7 @@ func MoveIssue(projID interface{}, id int, destProjID interface{}) (string, erro
1581
1581
return "" , err
1582
1582
}
1583
1583
1584
- return fmt .Sprintf ("%s/issues/%d" , destProject .WebURL , issue .IID ), nil
1584
+ return fmt .Sprintf ("%s/-/ issues/%d" , destProject .WebURL , issue .IID ), nil
1585
1585
}
1586
1586
1587
1587
// GetMRApprovalsConfiguration returns the current MR approval rule
@@ -1609,7 +1609,7 @@ func ResolveMRDiscussion(projID interface{}, mrID int, discussionID string, note
1609
1609
if err != nil {
1610
1610
return "" , err
1611
1611
}
1612
- return fmt .Sprintf ("Resolved %s/merge_requests/%d#note_%d" , p .WebURL , mrID , noteID ), nil
1612
+ return fmt .Sprintf ("Resolved %s/-/ merge_requests/%d#note_%d" , p .WebURL , mrID , noteID ), nil
1613
1613
}
1614
1614
1615
1615
// TodoList retuns a list of *gitlab.Todo refering to user's Todo list
@@ -1837,7 +1837,7 @@ func CreateMergeRequestCommitDiscussion(projID interface{}, id int, sha string,
1837
1837
if err != nil {
1838
1838
return "" , err
1839
1839
}
1840
- return fmt .Sprintf ("%s/merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1840
+ return fmt .Sprintf ("%s/-/ merge_requests/%d#note_%d" , p .WebURL , note .NoteableIID , note .ID ), nil
1841
1841
}
1842
1842
1843
1843
// hasNextPage get the next page number in case the API response has more
0 commit comments