From 64a0312bd6eecfc67da67290388aa7cda7713585 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 5 May 2022 11:53:18 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Sanitize=20`/.`=20from=20branch?= =?UTF-8?q?=20name=20(#200)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/git.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.js b/src/git.js index 610442a5..9eeadee4 100644 --- a/src/git.js +++ b/src/git.js @@ -123,7 +123,7 @@ class Git { async createPrBranch() { const prefix = BRANCH_PREFIX.replace('SOURCE_REPO_NAME', GITHUB_REPOSITORY.split('/')[1]) - let newBranch = path.join(prefix, this.repo.branch).replace(/\\/g, '/') + let newBranch = path.join(prefix, this.repo.branch).replace(/\\/g, '/').replace(/\/\./g, '/') if (OVERWRITE_EXISTING_PR === false) { newBranch += `-${ Math.round((new Date()).getTime() / 1000) }`