Skip to content

Commit 64a0312

Browse files
authored
🐛 Sanitize /. from branch name (#200)
1 parent 0ee58a5 commit 64a0312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Git {
123123
async createPrBranch() {
124124
const prefix = BRANCH_PREFIX.replace('SOURCE_REPO_NAME', GITHUB_REPOSITORY.split('/')[1])
125125

126-
let newBranch = path.join(prefix, this.repo.branch).replace(/\\/g, '/')
126+
let newBranch = path.join(prefix, this.repo.branch).replace(/\\/g, '/').replace(/\/\./g, '/')
127127

128128
if (OVERWRITE_EXISTING_PR === false) {
129129
newBranch += `-${ Math.round((new Date()).getTime() / 1000) }`

0 commit comments

Comments
 (0)