Add form-fetch-action to some forms, fix "fetch action" resp bug (#37305)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
PineBaleandwxiaoguang authored and GitHub committed 2026-04-20 18:58:44 +00:00
1 parent 1d25bb22f4
commit ca44b5fca8
7 files changed
+37 -35

No files matched your search

+2 -1
View File
@@ -189,7 +189,8 @@ func testDeleteRepository(t *testing.T, session *TestSession, ownerName, repoNam
req := NewRequestWithValues(t, "POST", relURL+"?action=delete", map[string]string{
"repo_name": repoName,
})
session.MakeRequest(t, req, http.StatusSeeOther)
resp := session.MakeRequest(t, req, http.StatusOK)
assert.NotNil(t, test.ParseJSONRedirect(resp.Body.Bytes()).Redirect)
}
func TestPullBranchDelete(t *testing.T) {