Skip to content

Commit 7fbd6ee

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handle-pull-request-change.js

+1-1
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)