change branchname to bugfix on type: bug
nclazz/gitea-bot/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-08-13 17:39:35 +02:00
parent d7296076bd
commit 842516db17
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module.exports = {
return
}
const { issue, repository } = req.body
const isBug = issue.labels.length && !!issue.labels.find(label => label.name === 'bug')
const isBug = issue.labels.length && !!issue.labels.find(label => label.name === 'bug' || label.name === 'type: bug')
const prefix = isBug ? 'bugfix' : 'feature'
const branch = issue.title.replace(/[^a-z0-9\s]/gi, '')
.replaceAll(' ', '-')