{"action":"created","comment":{"url":"https://api.github.com/repos/RALIST/flashcards/pulls/comments/90858321","pull_request_review_id":11371668,"id":90858321,"diff_hunk":"@@ -36,11 +45,23 @@ def check_text\n   end\r\n \r\n   def set_review_date\r\n-    self.review_date = Date.today + 3.days\r\n+    self.review_date = DateTime.current\r\n   end\r\n \r\n   def force_review_date\r\n-    self.update_attribute(:review_date, Date.today - 3.days)\r\n+    self.update(review_date: Date.current - 3.days)\r\n+  end\r\n+\r\n+  def check_failed_rounds\r\n+    self.update(failed_round: failed_round + 1)\r\n+    if self.failed_round == MAX_TRYIES\r\n+      self.update(failed_round: 0, round: 1, review_date: DateTime.current + 12.hours)\r","path":"app/models/card.rb","position":48,"original_position":48,"commit_id":"a019d8b6df3ef3454cecb48e6f09dffe6c9a88ec","original_commit_id":"a019d8b6df3ef3454cecb48e6f09dffe6c9a88ec","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Redundant self detected.<br>Line is too long. [86/80]","created_at":"2016-12-05T12:53:38Z","updated_at":"2016-12-05T12:53:38Z","html_url":"https://github.com/RALIST/flashcards/pull/12#discussion_r90858321","pull_request_url":"https://api.github.com/repos/RALIST/flashcards/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/comments/90858321"},"html":{"href":"https://github.com/RALIST/flashcards/pull/12#discussion_r90858321"},"pull_request":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/RALIST/flashcards/pulls/12","id":96493425,"html_url":"https://github.com/RALIST/flashcards/pull/12","diff_url":"https://github.com/RALIST/flashcards/pull/12.diff","patch_url":"https://github.com/RALIST/flashcards/pull/12.patch","issue_url":"https://api.github.com/repos/RALIST/flashcards/issues/12","number":12,"state":"open","locked":false,"title":"updated reviews","user":{"login":"RALIST","id":23499327,"avatar_url":"https://avatars.githubusercontent.com/u/23499327?v=3","gravatar_id":"","url":"https://api.github.com/users/RALIST","html_url":"https://github.com/RALIST","followers_url":"https://api.github.com/users/RALIST/followers","following_url":"https://api.github.com/users/RALIST/following{/other_user}","gists_url":"https://api.github.com/users/RALIST/gists{/gist_id}","starred_url":"https://api.github.com/users/RALIST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALIST/subscriptions","organizations_url":"https://api.github.com/users/RALIST/orgs","repos_url":"https://api.github.com/users/RALIST/repos","events_url":"https://api.github.com/users/RALIST/events{/privacy}","received_events_url":"https://api.github.com/users/RALIST/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-05T09:23:05Z","updated_at":"2016-12-05T12:53:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18609756096084745866f14a816bcc663022e92d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RALIST/flashcards/pulls/12/commits","review_comments_url":"https://api.github.com/repos/RALIST/flashcards/pulls/12/comments","review_comment_url":"https://api.github.com/repos/RALIST/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RALIST/flashcards/issues/12/comments","statuses_url":"https://api.github.com/repos/RALIST/flashcards/statuses/a019d8b6df3ef3454cecb48e6f09dffe6c9a88ec","head":{"label":"RALIST:thirteenth_task","ref":"thirteenth_task","sha":"a019d8b6df3ef3454cecb48e6f09dffe6c9a88ec","user":{"login":"RALIST","id":23499327,"avatar_url":"https://avatars.githubusercontent.com/u/23499327?v=3","gravatar_id":"","url":"https://api.github.com/users/RALIST","html_url":"https://github.com/RALIST","followers_url":"https://api.github.com/users/RALIST/followers","following_url":"https://api.github.com/users/RALIST/following{/other_user}","gists_url":"https://api.github.com/users/RALIST/gists{/gist_id}","starred_url":"https://api.github.com/users/RALIST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALIST/subscriptions","organizations_url":"https://api.github.com/users/RALIST/orgs","repos_url":"https://api.github.com/users/RALIST/repos","events_url":"https://api.github.com/users/RALIST/events{/privacy}","received_events_url":"https://api.github.com/users/RALIST/received_events","type":"User","site_admin":false},"repo":{"id":73917118,"name":"flashcards","full_name":"RALIST/flashcards","owner":{"login":"RALIST","id":23499327,"avatar_url":"https://avatars.githubusercontent.com/u/23499327?v=3","gravatar_id":"","url":"https://api.github.com/users/RALIST","html_url":"https://github.com/RALIST","followers_url":"https://api.github.com/users/RALIST/followers","following_url":"https://api.github.com/users/RALIST/following{/other_user}","gists_url":"https://api.github.com/users/RALIST/gists{/gist_id}","starred_url":"https://api.github.com/users/RALIST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALIST/subscriptions","organizations_url":"https://api.github.com/users/RALIST/orgs","repos_url":"https://api.github.com/users/RALIST/repos","events_url":"https://api.github.com/users/RALIST/events{/privacy}","received_events_url":"https://api.github.com/users/RALIST/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RALIST/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/RALIST/flashcards","forks_url":"https://api.github.com/repos/RALIST/flashcards/forks","keys_url":"https://api.github.com/repos/RALIST/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RALIST/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RALIST/flashcards/teams","hooks_url":"https://api.github.com/repos/RALIST/flashcards/hooks","issue_events_url":"https://api.github.com/repos/RALIST/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RALIST/flashcards/events","assignees_url":"https://api.github.com/repos/RALIST/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RALIST/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RALIST/flashcards/tags","blobs_url":"https://api.github.com/repos/RALIST/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RALIST/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RALIST/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RALIST/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RALIST/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RALIST/flashcards/languages","stargazers_url":"https://api.github.com/repos/RALIST/flashcards/stargazers","contributors_url":"https://api.github.com/repos/RALIST/flashcards/contributors","subscribers_url":"https://api.github.com/repos/RALIST/flashcards/subscribers","subscription_url":"https://api.github.com/repos/RALIST/flashcards/subscription","commits_url":"https://api.github.com/repos/RALIST/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RALIST/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RALIST/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RALIST/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RALIST/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RALIST/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RALIST/flashcards/merges","archive_url":"https://api.github.com/repos/RALIST/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RALIST/flashcards/downloads","issues_url":"https://api.github.com/repos/RALIST/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RALIST/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RALIST/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RALIST/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RALIST/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RALIST/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/RALIST/flashcards/deployments","created_at":"2016-11-16T12:16:20Z","updated_at":"2016-11-16T15:31:10Z","pushed_at":"2016-12-05T12:53:25Z","git_url":"git://github.com/RALIST/flashcards.git","ssh_url":"git@github.com:RALIST/flashcards.git","clone_url":"https://github.com/RALIST/flashcards.git","svn_url":"https://github.com/RALIST/flashcards","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RALIST:master","ref":"master","sha":"447cd7769284e742646782b75b99996c211d5ddd","user":{"login":"RALIST","id":23499327,"avatar_url":"https://avatars.githubusercontent.com/u/23499327?v=3","gravatar_id":"","url":"https://api.github.com/users/RALIST","html_url":"https://github.com/RALIST","followers_url":"https://api.github.com/users/RALIST/followers","following_url":"https://api.github.com/users/RALIST/following{/other_user}","gists_url":"https://api.github.com/users/RALIST/gists{/gist_id}","starred_url":"https://api.github.com/users/RALIST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALIST/subscriptions","organizations_url":"https://api.github.com/users/RALIST/orgs","repos_url":"https://api.github.com/users/RALIST/repos","events_url":"https://api.github.com/users/RALIST/events{/privacy}","received_events_url":"https://api.github.com/users/RALIST/received_events","type":"User","site_admin":false},"repo":{"id":73917118,"name":"flashcards","full_name":"RALIST/flashcards","owner":{"login":"RALIST","id":23499327,"avatar_url":"https://avatars.githubusercontent.com/u/23499327?v=3","gravatar_id":"","url":"https://api.github.com/users/RALIST","html_url":"https://github.com/RALIST","followers_url":"https://api.github.com/users/RALIST/followers","following_url":"https://api.github.com/users/RALIST/following{/other_user}","gists_url":"https://api.github.com/users/RALIST/gists{/gist_id}","starred_url":"https://api.github.com/users/RALIST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RALIST/subscriptions","organizations_url":"https://api.github.com/users/RALIST/orgs","repos_url":"https://api.github.com/users/RALIST/repos","events_url":"https://api.github.com/users/RALIST/events{/privacy}","received_events_url":"https://api.github.com/users/RALIST/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RALIST/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/RALIST/flashcards","forks_url":"https://api.github.com/repos/RALIST/flashcards/forks","keys_url":"https://api.github.com/repos/RALIST/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RALIST/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RALIST/flashcards/teams","hooks_url":"https://api.github.com/repos/RALIST/flashcards/hooks","issue_events_url":"https://api.github.com/repos/RALIST/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RALIST/flashcards/events","assignees_url":"https://api.github.com/repos/RALIST/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RALIST/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RALIST/flashcards/tags","blobs_url":"https://api.github.com/repos/RALIST/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RALIST/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RALIST/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RALIST/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RALIST/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RALIST/flashcards/languages","stargazers_url":"https://api.github.com/repos/RALIST/flashcards/stargazers","contributors_url":"https://api.github.com/repos/RALIST/flashcards/contributors","subscribers_url":"https://api.github.com/repos/RALIST/flashcards/subscribers","subscription_url":"https://api.github.com/repos/RALIST/flashcards/subscription","commits_url":"https://api.github.com/repos/RALIST/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RALIST/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RALIST/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RALIST/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RALIST/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RALIST/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RALIST/flashcards/merges","archive_url":"https://api.github.com/repos/RALIST/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RALIST/flashcards/downloads","issues_url":"https://api.github.com/repos/RALIST/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RALIST/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RALIST/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RALIST/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RALIST/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RALIST/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/RALIST/flashcards/deployments","created_at":"2016-11-16T12:16:20Z","updated_at":"2016-11-16T15:31:10Z","pushed_at":"2016-12-05T12:53:25Z","git_url":"git://github.com/RALIST/flashcards.git","ssh_url":"git@github.com:RALIST/flashcards.git","clone_url":"https://github.com/RALIST/flashcards.git","svn_url":"https://github.com/RALIST/flashcards","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/12"},"html":{"href":"https://github.com/RALIST/flashcards/pull/12"},"issue":{"href":"https://api.github.com/repos/RALIST/flashcards/issues/12"},"comments":{"href":"https://api.github.com/repos/RALIST/flashcards/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RALIST/flashcards/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/RALIST/flashcards/statuses/a019d8b6df3ef3454cecb48e6f09dffe6c9a88ec"}}}}
{"actor":{"display_login":"houndci-bot"}}