From a1339014a3508d1cdcaadf8827f4a267b44fceef Mon Sep 17 00:00:00 2001 From: abearxiong Date: Mon, 9 Feb 2026 02:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E8=87=B30.0.21=EF=BC=8C=E6=B3=A8=E9=87=8A=E6=8E=89=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E6=97=A5=E5=BF=97=E5=B9=B6=E4=B8=BAWorkspace=E7=B1=BB?= =?UTF-8?q?=E7=9A=84branch=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E4=B8=BA'main'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/cnb-core.ts | 4 ++-- src/workspace/index.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c3f00f2..050b198 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/cnb", - "version": "0.0.20", + "version": "0.0.21", "description": "", "main": "index.js", "scripts": { diff --git a/src/cnb-core.ts b/src/cnb-core.ts index e7eb2c9..0bb1d09 100644 --- a/src/cnb-core.ts +++ b/src/cnb-core.ts @@ -79,7 +79,7 @@ export class CNBCore { } delete _headers.Authorization; } - console.log('Request URL:', url, data, _headers); + // console.log('Request URL:', url, data, _headers); const response = await fetch(url || '', { method, headers: _headers, @@ -115,7 +115,7 @@ export class CNBCore { if (url && url.startsWith('http')) { return url; } - console.log('url', url, this.baseURL) + // console.log('url', url, this.baseURL) if (url.startsWith('/')) { return this.baseURL + url; } diff --git a/src/workspace/index.ts b/src/workspace/index.ts index cb013f0..6ff0b86 100644 --- a/src/workspace/index.ts +++ b/src/workspace/index.ts @@ -115,6 +115,8 @@ export class Workspace extends CNBCore { if (params.branch) { data.branch = params.branch; + } else { + data.branch = 'main' } if (params.ref) { data.ref = params.ref;