{"action":"created","comment":{"url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments/127627317","pull_request_review_id":50230981,"id":127627317,"diff_hunk":"@@ -111,4 +134,28 @@ def initialize_password\n \n     self.password ||= SecureRandom.base64(8) + required_chars.join\n   end\n+\n+  def selectable_first_year(target_date)\n+    entry_date.strftime('%m%d') <= target_date.strftime('%m%d') ? entry_date.year : entry_date.year + 1\n+  end\n+\n+  def selectable_last_year(target_date)","path":"app/models/user.rb","position":55,"original_position":55,"commit_id":"a829488cf9fa0c07ddd7b735c795fd5263108673","original_commit_id":"a829488cf9fa0c07ddd7b735c795fd5263108673","user":{"login":"freezer530000","id":14832596,"avatar_url":"https://avatars6.githubusercontent.com/u/14832596?v=4","gravatar_id":"","url":"https://api.github.com/users/freezer530000","html_url":"https://github.com/freezer530000","followers_url":"https://api.github.com/users/freezer530000/followers","following_url":"https://api.github.com/users/freezer530000/following{/other_user}","gists_url":"https://api.github.com/users/freezer530000/gists{/gist_id}","starred_url":"https://api.github.com/users/freezer530000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freezer530000/subscriptions","organizations_url":"https://api.github.com/users/freezer530000/orgs","repos_url":"https://api.github.com/users/freezer530000/repos","events_url":"https://api.github.com/users/freezer530000/events{/privacy}","received_events_url":"https://api.github.com/users/freezer530000/received_events","type":"User","site_admin":false},"body":"__[reek]__\n* [UtilityFunction] doesn't depend on instance state (maybe move it to another class?) [:ref](https://github.com/troessner/reek/blob/master/docs/Utility-Function.md)\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2017-07-17T03:06:11Z","updated_at":"2017-07-17T03:06:11Z","html_url":"https://github.com/hr-dash/hr-dash/pull/487#discussion_r127627317","pull_request_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487","_links":{"self":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments/127627317"},"html":{"href":"https://github.com/hr-dash/hr-dash/pull/487#discussion_r127627317"},"pull_request":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487"}}},"pull_request":{"url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487","id":130778971,"html_url":"https://github.com/hr-dash/hr-dash/pull/487","diff_url":"https://github.com/hr-dash/hr-dash/pull/487.diff","patch_url":"https://github.com/hr-dash/hr-dash/pull/487.patch","issue_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/487","number":487,"state":"open","locked":false,"title":"Add daily_report function","user":{"login":"masahiro-yamazaki","id":13084861,"avatar_url":"https://avatars6.githubusercontent.com/u/13084861?v=4","gravatar_id":"","url":"https://api.github.com/users/masahiro-yamazaki","html_url":"https://github.com/masahiro-yamazaki","followers_url":"https://api.github.com/users/masahiro-yamazaki/followers","following_url":"https://api.github.com/users/masahiro-yamazaki/following{/other_user}","gists_url":"https://api.github.com/users/masahiro-yamazaki/gists{/gist_id}","starred_url":"https://api.github.com/users/masahiro-yamazaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masahiro-yamazaki/subscriptions","organizations_url":"https://api.github.com/users/masahiro-yamazaki/orgs","repos_url":"https://api.github.com/users/masahiro-yamazaki/repos","events_url":"https://api.github.com/users/masahiro-yamazaki/events{/privacy}","received_events_url":"https://api.github.com/users/masahiro-yamazaki/received_events","type":"User","site_admin":false},"body":"# 概要\r\n\r\n# 再現・確認手順\r\n\r\n# 対応Issue（任意）\r\n\r\n# ToDo\r\n\r\n- [ ] ラベル付け\r\n- [ ] Assigneesで自分を選択\r\n- [ ] レビュアーを2人指定する\r\n","created_at":"2017-07-17T03:06:03Z","updated_at":"2017-07-17T03:06:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebd1f5067fb462dcc631417cc6f900270d9d8d5b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487/commits","review_comments_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487/comments","review_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/487/comments","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/a829488cf9fa0c07ddd7b735c795fd5263108673","head":{"label":"hr-dash:dev/448_daily_report","ref":"dev/448_daily_report","sha":"a829488cf9fa0c07ddd7b735c795fd5263108673","user":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars5.githubusercontent.com/u/14330339?v=4","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"repo":{"id":42654368,"name":"hr-dash","full_name":"hr-dash/hr-dash","owner":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars5.githubusercontent.com/u/14330339?v=4","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hr-dash/hr-dash","description":null,"fork":false,"url":"https://api.github.com/repos/hr-dash/hr-dash","forks_url":"https://api.github.com/repos/hr-dash/hr-dash/forks","keys_url":"https://api.github.com/repos/hr-dash/hr-dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hr-dash/hr-dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hr-dash/hr-dash/teams","hooks_url":"https://api.github.com/repos/hr-dash/hr-dash/hooks","issue_events_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/events{/number}","events_url":"https://api.github.com/repos/hr-dash/hr-dash/events","assignees_url":"https://api.github.com/repos/hr-dash/hr-dash/assignees{/user}","branches_url":"https://api.github.com/repos/hr-dash/hr-dash/branches{/branch}","tags_url":"https://api.github.com/repos/hr-dash/hr-dash/tags","blobs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hr-dash/hr-dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/hr-dash/hr-dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/{sha}","languages_url":"https://api.github.com/repos/hr-dash/hr-dash/languages","stargazers_url":"https://api.github.com/repos/hr-dash/hr-dash/stargazers","contributors_url":"https://api.github.com/repos/hr-dash/hr-dash/contributors","subscribers_url":"https://api.github.com/repos/hr-dash/hr-dash/subscribers","subscription_url":"https://api.github.com/repos/hr-dash/hr-dash/subscription","commits_url":"https://api.github.com/repos/hr-dash/hr-dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/hr-dash/hr-dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/hr-dash/hr-dash/contents/{+path}","compare_url":"https://api.github.com/repos/hr-dash/hr-dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hr-dash/hr-dash/merges","archive_url":"https://api.github.com/repos/hr-dash/hr-dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hr-dash/hr-dash/downloads","issues_url":"https://api.github.com/repos/hr-dash/hr-dash/issues{/number}","pulls_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls{/number}","milestones_url":"https://api.github.com/repos/hr-dash/hr-dash/milestones{/number}","notifications_url":"https://api.github.com/repos/hr-dash/hr-dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hr-dash/hr-dash/labels{/name}","releases_url":"https://api.github.com/repos/hr-dash/hr-dash/releases{/id}","deployments_url":"https://api.github.com/repos/hr-dash/hr-dash/deployments","created_at":"2015-09-17T12:15:06Z","updated_at":"2017-01-19T11:51:28Z","pushed_at":"2017-07-17T03:06:03Z","git_url":"git://github.com/hr-dash/hr-dash.git","ssh_url":"git@github.com:hr-dash/hr-dash.git","clone_url":"https://github.com/hr-dash/hr-dash.git","svn_url":"https://github.com/hr-dash/hr-dash","homepage":null,"size":5042,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":2,"default_branch":"develop"}},"base":{"label":"hr-dash:develop","ref":"develop","sha":"f818f486a97a527a89b3ef128af5063870b34375","user":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars5.githubusercontent.com/u/14330339?v=4","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"repo":{"id":42654368,"name":"hr-dash","full_name":"hr-dash/hr-dash","owner":{"login":"hr-dash","id":14330339,"avatar_url":"https://avatars5.githubusercontent.com/u/14330339?v=4","gravatar_id":"","url":"https://api.github.com/users/hr-dash","html_url":"https://github.com/hr-dash","followers_url":"https://api.github.com/users/hr-dash/followers","following_url":"https://api.github.com/users/hr-dash/following{/other_user}","gists_url":"https://api.github.com/users/hr-dash/gists{/gist_id}","starred_url":"https://api.github.com/users/hr-dash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hr-dash/subscriptions","organizations_url":"https://api.github.com/users/hr-dash/orgs","repos_url":"https://api.github.com/users/hr-dash/repos","events_url":"https://api.github.com/users/hr-dash/events{/privacy}","received_events_url":"https://api.github.com/users/hr-dash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hr-dash/hr-dash","description":null,"fork":false,"url":"https://api.github.com/repos/hr-dash/hr-dash","forks_url":"https://api.github.com/repos/hr-dash/hr-dash/forks","keys_url":"https://api.github.com/repos/hr-dash/hr-dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hr-dash/hr-dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hr-dash/hr-dash/teams","hooks_url":"https://api.github.com/repos/hr-dash/hr-dash/hooks","issue_events_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/events{/number}","events_url":"https://api.github.com/repos/hr-dash/hr-dash/events","assignees_url":"https://api.github.com/repos/hr-dash/hr-dash/assignees{/user}","branches_url":"https://api.github.com/repos/hr-dash/hr-dash/branches{/branch}","tags_url":"https://api.github.com/repos/hr-dash/hr-dash/tags","blobs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hr-dash/hr-dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hr-dash/hr-dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/hr-dash/hr-dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hr-dash/hr-dash/statuses/{sha}","languages_url":"https://api.github.com/repos/hr-dash/hr-dash/languages","stargazers_url":"https://api.github.com/repos/hr-dash/hr-dash/stargazers","contributors_url":"https://api.github.com/repos/hr-dash/hr-dash/contributors","subscribers_url":"https://api.github.com/repos/hr-dash/hr-dash/subscribers","subscription_url":"https://api.github.com/repos/hr-dash/hr-dash/subscription","commits_url":"https://api.github.com/repos/hr-dash/hr-dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/hr-dash/hr-dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/hr-dash/hr-dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/hr-dash/hr-dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/hr-dash/hr-dash/contents/{+path}","compare_url":"https://api.github.com/repos/hr-dash/hr-dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hr-dash/hr-dash/merges","archive_url":"https://api.github.com/repos/hr-dash/hr-dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hr-dash/hr-dash/downloads","issues_url":"https://api.github.com/repos/hr-dash/hr-dash/issues{/number}","pulls_url":"https://api.github.com/repos/hr-dash/hr-dash/pulls{/number}","milestones_url":"https://api.github.com/repos/hr-dash/hr-dash/milestones{/number}","notifications_url":"https://api.github.com/repos/hr-dash/hr-dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hr-dash/hr-dash/labels{/name}","releases_url":"https://api.github.com/repos/hr-dash/hr-dash/releases{/id}","deployments_url":"https://api.github.com/repos/hr-dash/hr-dash/deployments","created_at":"2015-09-17T12:15:06Z","updated_at":"2017-01-19T11:51:28Z","pushed_at":"2017-07-17T03:06:03Z","git_url":"git://github.com/hr-dash/hr-dash.git","ssh_url":"git@github.com:hr-dash/hr-dash.git","clone_url":"https://github.com/hr-dash/hr-dash.git","svn_url":"https://github.com/hr-dash/hr-dash","homepage":null,"size":5042,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487"},"html":{"href":"https://github.com/hr-dash/hr-dash/pull/487"},"issue":{"href":"https://api.github.com/repos/hr-dash/hr-dash/issues/487"},"comments":{"href":"https://api.github.com/repos/hr-dash/hr-dash/issues/487/comments"},"review_comments":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487/comments"},"review_comment":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hr-dash/hr-dash/pulls/487/commits"},"statuses":{"href":"https://api.github.com/repos/hr-dash/hr-dash/statuses/a829488cf9fa0c07ddd7b735c795fd5263108673"}}}}
{"actor":{"display_login":"freezer530000"}}