fix PR issue ref
nclazz/gitea-bot/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-07-09 12:21:01 +02:00
parent e416aaca43
commit 90f60fc492
1 changed files with 1 additions and 1 deletions

View File

@ -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>')) {