From 039fe6cbba9341f57d5f3f57f0731ec800f56324 Mon Sep 17 00:00:00 2001 From: adaam Date: Thu, 10 Jun 2021 21:23:08 +0800 Subject: [PATCH 1/2] Fix to let branch can contain slash --- dist/index.js | 4 ++-- src/config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 502f8c52..6a10f0a1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15399,7 +15399,7 @@ const parseRepoName = (fullRepo) => { const user = fullRepo.split('/')[0] const name = fullRepo.split('/')[1].split('@')[0] - const branch = fullRepo.split('/')[1].split('@')[1] || 'default' + const branch = fullRepo.split('@')[1] || 'default' return { fullName: `${ host }/${ user }/${ name }`, @@ -16217,4 +16217,4 @@ run() module.exports = __webpack_exports__; /******/ })() -; \ No newline at end of file +; diff --git a/src/config.js b/src/config.js index 17dd62b7..8101b0f3 100644 --- a/src/config.js +++ b/src/config.js @@ -108,7 +108,7 @@ const parseRepoName = (fullRepo) => { const user = fullRepo.split('/')[0] const name = fullRepo.split('/')[1].split('@')[0] - const branch = fullRepo.split('/')[1].split('@')[1] || 'default' + const branch = fullRepo.split('@')[1] || 'default' return { fullName: `${ host }/${ user }/${ name }`, @@ -205,4 +205,4 @@ const parseConfig = async () => { module.exports = { ...context, parseConfig -} \ No newline at end of file +} From 4119eb625684dd63dbf78010e31bc7f87ec31fa9 Mon Sep 17 00:00:00 2001 From: adaam Date: Fri, 11 Jun 2021 10:27:54 +0800 Subject: [PATCH 2/2] Remove newline. --- dist/index.js | 2 +- src/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6a10f0a1..ce65f20e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -16217,4 +16217,4 @@ run() module.exports = __webpack_exports__; /******/ })() -; +; \ No newline at end of file diff --git a/src/config.js b/src/config.js index 8101b0f3..62d56fd0 100644 --- a/src/config.js +++ b/src/config.js @@ -205,4 +205,4 @@ const parseConfig = async () => { module.exports = { ...context, parseConfig -} +} \ No newline at end of file