Skip to content

Commit

Permalink
🐛 Sanitize /. from branch name (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored May 5, 2022
1 parent 0ee58a5 commit 64a0312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) }`
Expand Down

0 comments on commit 64a0312

Please sign in to comment.