fix PR issue ref
nclazz/gitea-bot/pipeline/head This commit looks good
Details
nclazz/gitea-bot/pipeline/head This commit looks good
Details
parent
e416aaca43
commit
90f60fc492
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
log(`Try referencing ref ${pull_request.head.ref} to issue`)
|
||||
|
||||
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
|
||||
if(body.includes('> <code>')) {
|
||||
|
|
Loading…
Reference in New Issue