{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/4003","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/4003/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/4003/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/4003/events","html_url":"https://github.com/bbatsov/rubocop/pull/4003","id":204851750,"number":4003,"title":"Add new `Rails/RelativeDateConstant` cop","user":{"login":"sinsoku","id":248174,"avatar_url":"https://avatars0.githubusercontent.com/u/248174?v=3","gravatar_id":"","url":"https://api.github.com/users/sinsoku","html_url":"https://github.com/sinsoku","followers_url":"https://api.github.com/users/sinsoku/followers","following_url":"https://api.github.com/users/sinsoku/following{/other_user}","gists_url":"https://api.github.com/users/sinsoku/gists{/gist_id}","starred_url":"https://api.github.com/users/sinsoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinsoku/subscriptions","organizations_url":"https://api.github.com/users/sinsoku/orgs","repos_url":"https://api.github.com/users/sinsoku/repos","events_url":"https://api.github.com/users/sinsoku/events{/privacy}","received_events_url":"https://api.github.com/users/sinsoku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-02T11:49:21Z","updated_at":"2017-03-29T16:41:24Z","closed_at":"2017-02-10T03:05:47Z","pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/4003","html_url":"https://github.com/bbatsov/rubocop/pull/4003","diff_url":"https://github.com/bbatsov/rubocop/pull/4003.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/4003.patch"},"body":"We probably do not use relative date from system startup time as constant. This cop checks it.\r\n\r\n-----------------\r\n\r\nBefore submitting the PR make sure the following are checked:\r\n\r\n* [x] Wrote [good commit messages][1].\r\n* [ ] Commit message starts with `[Fix #issue-number]` (if the related issue exists).\r\n* [x] Used the same coding conventions as the rest of the project.\r\n* [x] Feature branch is up-to-date with `master` (if not - rebase it).\r\n* [x] Squashed related commits together.\r\n* [x] Added tests.\r\n* [x] Added an entry to the [Changelog](../blob/master/CHANGELOG.md) if the new code introduces user-observable changes. See [changelog entry format](../blob/master/CONTRIBUTING.md#changelog-entry-format).\r\n* [x] All tests are passing.\r\n* [x] The new code doesn't generate RuboCop offenses.\r\n* [x] The PR relates to *only* one subject with a clear title\r\n  and description in grammatically correct, complete sentences.\r\n* [x] Updated cop documentation with `rake generate_cops_documentation` (required only when you've added a new cop or changed the configuration/documentation of an existing cop).\r\n\r\n[1]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html\r\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/290148972","html_url":"https://github.com/bbatsov/rubocop/pull/4003#issuecomment-290148972","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/4003","id":290148972,"user":{"login":"jfelchner","id":285582,"avatar_url":"https://avatars3.githubusercontent.com/u/285582?v=3","gravatar_id":"","url":"https://api.github.com/users/jfelchner","html_url":"https://github.com/jfelchner","followers_url":"https://api.github.com/users/jfelchner/followers","following_url":"https://api.github.com/users/jfelchner/following{/other_user}","gists_url":"https://api.github.com/users/jfelchner/gists{/gist_id}","starred_url":"https://api.github.com/users/jfelchner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfelchner/subscriptions","organizations_url":"https://api.github.com/users/jfelchner/orgs","repos_url":"https://api.github.com/users/jfelchner/repos","events_url":"https://api.github.com/users/jfelchner/events{/privacy}","received_events_url":"https://api.github.com/users/jfelchner/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T16:41:24Z","updated_at":"2017-03-29T16:41:24Z","body":"@bbatsov @sinsoku one of my favorite things is getting a new cop that solves a problem I didn't even know was a problem.  This is fantastic.  Thank you."}}
{"actor":{"display_login":"jfelchner"}}