Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Jan 16, 2019
1 parent 28d8d2a commit 6f4f15c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/comment/created.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ module.exports = () => async context => {

const { author_association, body } = context.payload.comment

console.log(author_association, body, config.comments)

if (!isMaintainer(author_association)) return

if (!Array.isArray(config.comments)) return

await Promise.all(
config.comments.map(async ({ action, pattern, labels } = {}) => {
console.log(action, pattern, labels)
if (typeof action !== 'string' || action.trim().toLowerCase() !== LABEL) return
if (!body.includes(pattern) && !parseRegex(pattern).test(body)) return
if (!labels) return
Expand Down

0 comments on commit 6f4f15c

Please # to comment.