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

master
Niclas Thobaben 2022-07-09 12:25:01 +02:00
parent 44ab84cfce
commit b065306d99
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ module.exports = {
if(req.headers['x-gitea-event'] !== 'pull_request') {
return
}
const { pull_request } = req.body
const { pull_request, repository } = req.body
log(`Try referencing ref ${pull_request.head.ref} to issue`)
const regex = /(feature|bugfix)\/ISS-(\d+)-/