fix PR issue ref
parent
e416aaca43
commit
90f60fc492
|
@ -13,7 +13,7 @@ module.exports = {
|
||||||
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 = /refs\/heads\/(feature|bugfix)\/ISS-(\d+)-/
|
||||||
const issueId = regex.exec(ref)[2]
|
const issueId = regex.exec(pull_request.head.ref)[2]
|
||||||
|
|
||||||
let body = pull_request.body
|
let body = pull_request.body
|
||||||
if(body.includes('> <code>')) {
|
if(body.includes('> <code>')) {
|
||||||
|
|
Loading…
Reference in New Issue