feat: vendor gitea 1.16.2
This commit is contained in:
@@ -74,7 +74,7 @@ func testPullCommentRebase(t *testing.T, u *url.URL, session *TestSession) {
|
||||
assert.True(t, lastComment.IsForcePush)
|
||||
}
|
||||
|
||||
func testPullCommentRetarget(t *testing.T, u *url.URL, session *TestSession) {
|
||||
func testPullCommentRetarget(t *testing.T, _ *url.URL, session *TestSession) {
|
||||
testPRTitle := "Test PR for retarget comment"
|
||||
// keep a non-conflict branch
|
||||
testCreateBranch(t, session, "user2", "repo1", "branch/test-branch/retarget", "test-branch/retarget-no-conflict", http.StatusSeeOther)
|
||||
@@ -89,7 +89,6 @@ func testPullCommentRetarget(t *testing.T, u *url.URL, session *TestSession) {
|
||||
|
||||
// do retarget
|
||||
req := NewRequestWithValues(t, "POST", fmt.Sprintf("/user2/repo1/pull/%d/target_branch", prIssue.PullRequest.Index), map[string]string{
|
||||
"_csrf": GetUserCSRFToken(t, session),
|
||||
"target_branch": "test-branch/retarget-no-conflict",
|
||||
})
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
Reference in New Issue
Block a user