From 8411487998ee8e801be1b29c9be304fae70d3621 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Wed, 7 Dec 2016 09:47:10 -0600 Subject: [PATCH] Fix examples of content --- docs/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 7e23301a..e474ccdb 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -19,7 +19,7 @@ on('issues.opened') return !event.issue.body.match(/### Steps to Reproduce/) || event.issue.body.includes('- [ ]') }) - .comment.contents('.github/MISSING_ISSUE_TEMPLATE_AUTOREPLY.md') + .comment(contents('.github/MISSING_ISSUE_TEMPLATE_AUTOREPLY.md')) .label('insufficient-info') .close(); ``` @@ -37,7 +37,7 @@ on('issues.labeled') ```js on('issues.opened', 'pull_request.opened') .filter.firstTimeContributor() // plugins could implement conditions like this - .comment.contents('.github/NEW_CONTRIBUTOR_TEMPLATE.md'); + .comment(contents('.github/NEW_CONTRIBUTOR_TEMPLATE.md')); ``` ### Auto-close new pull requests