Skip to content

Commit

Permalink
🐛 Allow branch name to contain slash (#57)
Browse files Browse the repository at this point in the history
* Fix to let branch can contain slash
* Remove newline.
  • Loading branch information
adaam authored Jun 11, 2021
1 parent 0b5103e commit 6e6698c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }`,
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }`,
Expand Down

0 comments on commit 6e6698c

Please sign in to comment.