change branchname to bugfix on type: bug
parent
d7296076bd
commit
842516db17
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const { issue, repository } = req.body
|
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 prefix = isBug ? 'bugfix' : 'feature'
|
||||||
const branch = issue.title.replace(/[^a-z0-9\s]/gi, '')
|
const branch = issue.title.replace(/[^a-z0-9\s]/gi, '')
|
||||||
.replaceAll(' ', '-')
|
.replaceAll(' ', '-')
|
||||||
|
|
Loading…
Reference in New Issue