fix PR issue ref
parent
90f60fc492
commit
44ab84cfce
|
@ -12,7 +12,7 @@ module.exports = {
|
||||||
const { pull_request } = req.body
|
const { pull_request } = req.body
|
||||||
log(`Try referencing ref ${pull_request.head.ref} to issue`)
|
log(`Try referencing ref ${pull_request.head.ref} to issue`)
|
||||||
|
|
||||||
const regex = /refs\/heads\/(feature|bugfix)\/ISS-(\d+)-/
|
const regex = /(feature|bugfix)\/ISS-(\d+)-/
|
||||||
const issueId = regex.exec(pull_request.head.ref)[2]
|
const issueId = regex.exec(pull_request.head.ref)[2]
|
||||||
|
|
||||||
let body = pull_request.body
|
let body = pull_request.body
|
||||||
|
|
Loading…
Reference in New Issue