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

master
Niclas Thobaben 2022-07-09 12:23:07 +02:00
parent 90f60fc492
commit 44ab84cfce
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module.exports = {
const { pull_request } = req.body
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]
let body = pull_request.body