From 842516db17dd59c000f4ba24541ae0968c736524 Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sat, 13 Aug 2022 17:39:35 +0200 Subject: [PATCH] change branchname to bugfix on type: bug --- src/hooks/issueBranchName.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/issueBranchName.js b/src/hooks/issueBranchName.js index 7e8d79c..e6c2779 100644 --- a/src/hooks/issueBranchName.js +++ b/src/hooks/issueBranchName.js @@ -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(' ', '-')