Skip to content

Commit

Permalink
feat: also block 'do not merge' titles (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr authored and gr2m committed Jan 19, 2018
1 parent 27d6fce commit 7fbd6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handle-pull-request-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = handlePullRequestChange

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

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

0 comments on commit 7fbd6ee

Please sign in to comment.