Skip to content

Commit 7fbd6ee

Browse files
fofrgr2m
authored andcommitted
feat: also block 'do not merge' titles (#28)
1 parent 27d6fce commit 7fbd6ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/handle-pull-request-change.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = handlePullRequestChange
22

33
async function handlePullRequestChange (robot, context) {
44
const title = context.payload.pull_request.title
5-
const isWip = /\bwip\b/i.test(title)
5+
const isWip = /\b(wip|do not merge)\b/i.test(title)
66
const status = isWip ? 'pending' : 'success'
77

88
console.log(`Updating PR "${title}" (${context.payload.pull_request.html_url}): ${status}`)

0 commit comments

Comments
 (0)