Skip to content

Commit

Permalink
Add a lib method to create the reviewer message
Browse files Browse the repository at this point in the history
fixes #4
  • Loading branch information
cstumph committed Dec 4, 2015
1 parent a9afc6b commit f0f72a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/createPrReviewerMessage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const SPLIT_CRITERIA_1 = '## Reviewer'
const SPLIT_CRITERIA_2 = '***'
module.exports = function(text){

var messagePart = text.split(SPLIT_CRITERIA_1)[1].split(SPLIT_CRITERIA_2)[0]

return `${SPLIT_CRITERIA_1} ${messagePart}`
};

0 comments on commit f0f72a9

Please sign in to comment.