fix bug in issueBranchRef
parent
842516db17
commit
77fb599cc5
|
@ -14,7 +14,11 @@ module.exports = {
|
|||
log(`Try referencing ref ${ref} to issue`)
|
||||
|
||||
const regex = /refs\/heads\/(feature|bugfix)\/ISS-(\d+)-/
|
||||
const issueId = regex.exec(ref)[2]
|
||||
const match = regex.exec(ref)
|
||||
if(!match) {
|
||||
return
|
||||
}
|
||||
const issueId = match[2]
|
||||
|
||||
const path = `/repos/${repository.full_name}/issues/${issueId}`
|
||||
|
||||
|
|
Loading…
Reference in New Issue