{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/comments/148017469","pull_request_review_id":73194557,"id":148017469,"diff_hunk":"@@ -0,0 +1,67 @@\n+/**\n+ * @fileoverview Creates a new issue with the \"release\" label if the old one is closed\n+ * @author Teddy Katz\n+ */\n+\n+const moment = require(\"moment\");\n+\n+const LABEL_NAME = \"release\";\n+\n+const ISSUE_TITLE_FORMAT = \"[Scheduled release for ]MMMM Do, YYYY\";\n+\n+const getIssueBody = (releaseDate) => `\n+\n+The scheduled release on ${releaseDate.format(\"dddd, MMMM Do, YYYY\")} is assigned to:\n+\n+* (needs volunteers)\n+* (needs volunteers)\n+\n+Please use this issue to document how the release went, any problems during the release, and anything the team might want to know about the release process. This issue should be closed after all patch releases have been completed (or there was no patch release needed).\n+\n+Resources:\n+\n+* [Release guidelines](https://eslint.org/docs/maintainer-guide/releases)\n+\n+`.trim();\n+\n+module.exports = (robot) => {\n+    robot.on(\"issues.closed\", async (context) => {","path":"src/plugins/release-issues/index.js","position":28,"original_position":28,"commit_id":"43c1616729c4f1a806d7a2481fe518a1db179c60","original_commit_id":"43c1616729c4f1a806d7a2481fe518a1db179c60","user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars2.githubusercontent.com/u/5554486?v=4","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"body":"Just to keep the api layer clean, I would recommend creating a function and then just referencing that function here.\r\nBased on other plugins, its very easy to see what all events they listen to and also adding stuff later becomes more cleaner.","created_at":"2017-10-31T14:44:30Z","updated_at":"2017-10-31T14:44:30Z","html_url":"https://github.com/eslint/eslint-github-bot/pull/34#discussion_r148017469","pull_request_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/comments/148017469"},"html":{"href":"https://github.com/eslint/eslint-github-bot/pull/34#discussion_r148017469"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34","id":149702092,"html_url":"https://github.com/eslint/eslint-github-bot/pull/34","diff_url":"https://github.com/eslint/eslint-github-bot/pull/34.diff","patch_url":"https://github.com/eslint/eslint-github-bot/pull/34.patch","issue_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/34","number":34,"state":"open","locked":false,"title":"New: add release-issues plugin (refs #33)","user":{"login":"not-an-aardvark","id":11638619,"avatar_url":"https://avatars2.githubusercontent.com/u/11638619?v=4","gravatar_id":"","url":"https://api.github.com/users/not-an-aardvark","html_url":"https://github.com/not-an-aardvark","followers_url":"https://api.github.com/users/not-an-aardvark/followers","following_url":"https://api.github.com/users/not-an-aardvark/following{/other_user}","gists_url":"https://api.github.com/users/not-an-aardvark/gists{/gist_id}","starred_url":"https://api.github.com/users/not-an-aardvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-an-aardvark/subscriptions","organizations_url":"https://api.github.com/users/not-an-aardvark/orgs","repos_url":"https://api.github.com/users/not-an-aardvark/repos","events_url":"https://api.github.com/users/not-an-aardvark/events{/privacy}","received_events_url":"https://api.github.com/users/not-an-aardvark/received_events","type":"User","site_admin":false},"body":"Whenever an issue with the `release` label is closed for the first time, the bot parses a date out of the title and creates a new issue with the `release` label, the standard release issue text, and a date two weeks after the previous issue.","created_at":"2017-10-31T05:52:20Z","updated_at":"2017-10-31T14:44:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29addb72907dcc9aec961a95c613df62a64f785c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/34/comments","statuses_url":"https://api.github.com/repos/eslint/eslint-github-bot/statuses/43c1616729c4f1a806d7a2481fe518a1db179c60","head":{"label":"eslint:release-issues","ref":"release-issues","sha":"43c1616729c4f1a806d7a2481fe518a1db179c60","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars3.githubusercontent.com/u/6019716?v=4","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":95392084,"name":"eslint-github-bot","full_name":"eslint/eslint-github-bot","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars3.githubusercontent.com/u/6019716?v=4","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint-github-bot","description":"Plugin-based GitHub bot for ESLint","fork":false,"url":"https://api.github.com/repos/eslint/eslint-github-bot","forks_url":"https://api.github.com/repos/eslint/eslint-github-bot/forks","keys_url":"https://api.github.com/repos/eslint/eslint-github-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint-github-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint-github-bot/teams","hooks_url":"https://api.github.com/repos/eslint/eslint-github-bot/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint-github-bot/events","assignees_url":"https://api.github.com/repos/eslint/eslint-github-bot/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint-github-bot/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint-github-bot/tags","blobs_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint-github-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint-github-bot/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint-github-bot/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint-github-bot/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint-github-bot/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint-github-bot/subscription","commits_url":"https://api.github.com/repos/eslint/eslint-github-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint-github-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint-github-bot/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint-github-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint-github-bot/merges","archive_url":"https://api.github.com/repos/eslint/eslint-github-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint-github-bot/downloads","issues_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint-github-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint-github-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint-github-bot/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint-github-bot/releases{/id}","deployments_url":"https://api.github.com/repos/eslint/eslint-github-bot/deployments","created_at":"2017-06-25T23:47:44Z","updated_at":"2017-10-30T06:03:34Z","pushed_at":"2017-10-31T05:52:21Z","git_url":"git://github.com/eslint/eslint-github-bot.git","ssh_url":"git@github.com:eslint/eslint-github-bot.git","clone_url":"https://github.com/eslint/eslint-github-bot.git","svn_url":"https://github.com/eslint/eslint-github-bot","homepage":"","size":263,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":6,"default_branch":"master"}},"base":{"label":"eslint:master","ref":"master","sha":"1a9664777bb89c7127ad3a911ccd7bd5171c3bdc","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars3.githubusercontent.com/u/6019716?v=4","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":95392084,"name":"eslint-github-bot","full_name":"eslint/eslint-github-bot","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars3.githubusercontent.com/u/6019716?v=4","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint-github-bot","description":"Plugin-based GitHub bot for ESLint","fork":false,"url":"https://api.github.com/repos/eslint/eslint-github-bot","forks_url":"https://api.github.com/repos/eslint/eslint-github-bot/forks","keys_url":"https://api.github.com/repos/eslint/eslint-github-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint-github-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint-github-bot/teams","hooks_url":"https://api.github.com/repos/eslint/eslint-github-bot/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint-github-bot/events","assignees_url":"https://api.github.com/repos/eslint/eslint-github-bot/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint-github-bot/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint-github-bot/tags","blobs_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint-github-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint-github-bot/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint-github-bot/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint-github-bot/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint-github-bot/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint-github-bot/subscription","commits_url":"https://api.github.com/repos/eslint/eslint-github-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint-github-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint-github-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint-github-bot/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint-github-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint-github-bot/merges","archive_url":"https://api.github.com/repos/eslint/eslint-github-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint-github-bot/downloads","issues_url":"https://api.github.com/repos/eslint/eslint-github-bot/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint-github-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint-github-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint-github-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint-github-bot/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint-github-bot/releases{/id}","deployments_url":"https://api.github.com/repos/eslint/eslint-github-bot/deployments","created_at":"2017-06-25T23:47:44Z","updated_at":"2017-10-30T06:03:34Z","pushed_at":"2017-10-31T05:52:21Z","git_url":"git://github.com/eslint/eslint-github-bot.git","ssh_url":"git@github.com:eslint/eslint-github-bot.git","clone_url":"https://github.com/eslint/eslint-github-bot.git","svn_url":"https://github.com/eslint/eslint-github-bot","homepage":"","size":263,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34"},"html":{"href":"https://github.com/eslint/eslint-github-bot/pull/34"},"issue":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/issues/34"},"comments":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint-github-bot/statuses/43c1616729c4f1a806d7a2481fe518a1db179c60"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gyandeeps"}}