Make "commit statuses" API accept slashes in "ref" (#36264) (#36275)

Backport #36264 by wxiaoguang

Fix #36253

Support slashes in `{ref}` (follow GitHub's behavior)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-01-01 03:04:03 +00:00
committed by GitHub
co-authored by wxiaoguang
parent 7d010c6932
commit 163113d173
6 changed files with 94 additions and 145 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ func NewRequestWithBody(t testing.TB, method, urlStr string, body io.Reader) *Re
return &RequestWrapper{req}
}
const NoExpectedStatus = -1
const NoExpectedStatus = 0
func MakeRequest(t testing.TB, rw *RequestWrapper, expectedStatus int) *httptest.ResponseRecorder {
t.Helper()