From 2b3541a989558399b2b1643b10443858d2c655c5 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 18 Apr 2023 01:51:13 +0800 Subject: [PATCH] fix --- modules/private/hook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/private/hook.go b/modules/private/hook.go index 0563e4d80a65a..c0fe9ef1fb303 100644 --- a/modules/private/hook.go +++ b/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