瀏覽代碼

Fix incorrect internal response type (#24173)

Close #24167

The endpoint "set-default-branch" returns `success`, so just decode it
as `responseText`
tags/v1.20.0-rc0
wxiaoguang 1 年之前
父節點
當前提交
2979041bc5
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      modules/private/hook.go

+ 2
- 1
modules/private/hook.go 查看文件

@@ -129,7 +129,8 @@ func SetDefaultBranch(ctx context.Context, ownerName, repoName, branch string) R
url.PathEscape(branch),
)
req := newInternalRequest(ctx, reqURL, "POST")
return requestJSONUserMsg(req, "")
_, extra := requestJSONResp(req, &responseText{})
return extra
}

// SSHLog sends ssh error log response

Loading…
取消
儲存