{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/wsm_02/pulls/comments/92784246","pull_request_review_id":13305014,"id":92784246,"diff_hunk":"@@ -7,4 +7,19 @@ def full_title page_title = \"\"\n   def current_index page_index , page_size, index\n     (page_index - 1) *page_size + (index + 1)\n   end\n+\n+  def flash_message action, is_valid, model\n+    state = is_valid ? \"successfully\" : \"fail\"\n+    I18n.t \"flash.message.#{action}.#{state}\",\n+      model_name: model.model_name.human.titleize\n+  end\n+\n+  def flash_class level","path":"app/helpers/application_helper.rb","position":11,"original_position":11,"commit_id":"72e0d53fe455dd4e700bf1d3e8dd678d7e188333","original_commit_id":"72e0d53fe455dd4e700bf1d3e8dd678d7e188333","user":{"login":"framgia-jenkins-ci","id":16641396,"avatar_url":"https://avatars.githubusercontent.com/u/16641396?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia-jenkins-ci","html_url":"https://github.com/framgia-jenkins-ci","followers_url":"https://api.github.com/users/framgia-jenkins-ci/followers","following_url":"https://api.github.com/users/framgia-jenkins-ci/following{/other_user}","gists_url":"https://api.github.com/users/framgia-jenkins-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-jenkins-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-jenkins-ci/subscriptions","organizations_url":"https://api.github.com/users/framgia-jenkins-ci/orgs","repos_url":"https://api.github.com/users/framgia-jenkins-ci/repos","events_url":"https://api.github.com/users/framgia-jenkins-ci/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-jenkins-ci/received_events","type":"User","site_admin":false},"body":"**Reporter**: CHECKSTYLE\n**Rule**: com.puppycrawl.tools.checkstyle.Style/MethodDefParentheses\n**Severity**: INFO\n**File**: app/helpers/application_helper.rb L17\n\nUse def with parentheses when there are parameters.\n\n*<this is a auto generated comment from violation-comments-lib F7F8ASD8123FSDF>*\n","created_at":"2016-12-16T10:09:35Z","updated_at":"2016-12-16T10:09:35Z","html_url":"https://github.com/framgia/wsm_02/pull/30#discussion_r92784246","pull_request_url":"https://api.github.com/repos/framgia/wsm_02/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/comments/92784246"},"html":{"href":"https://github.com/framgia/wsm_02/pull/30#discussion_r92784246"},"pull_request":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/wsm_02/pulls/30","id":97940740,"html_url":"https://github.com/framgia/wsm_02/pull/30","diff_url":"https://github.com/framgia/wsm_02/pull/30.diff","patch_url":"https://github.com/framgia/wsm_02/pull/30.patch","issue_url":"https://api.github.com/repos/framgia/wsm_02/issues/30","number":30,"state":"open","locked":false,"title":"Request off form UI","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-14T12:13:39Z","updated_at":"2016-12-16T10:09:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd7c4d38d43f23fad2baa4e36a7d76573d8974b4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/wsm_02/pulls/30/commits","review_comments_url":"https://api.github.com/repos/framgia/wsm_02/pulls/30/comments","review_comment_url":"https://api.github.com/repos/framgia/wsm_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/wsm_02/issues/30/comments","statuses_url":"https://api.github.com/repos/framgia/wsm_02/statuses/72e0d53fe455dd4e700bf1d3e8dd678d7e188333","head":{"label":"dieunb:003_request_off_form","ref":"003_request_off_form","sha":"72e0d53fe455dd4e700bf1d3e8dd678d7e188333","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"repo":{"id":75694296,"name":"wsm_02","full_name":"dieunb/wsm_02","owner":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dieunb/wsm_02","description":null,"fork":true,"url":"https://api.github.com/repos/dieunb/wsm_02","forks_url":"https://api.github.com/repos/dieunb/wsm_02/forks","keys_url":"https://api.github.com/repos/dieunb/wsm_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dieunb/wsm_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dieunb/wsm_02/teams","hooks_url":"https://api.github.com/repos/dieunb/wsm_02/hooks","issue_events_url":"https://api.github.com/repos/dieunb/wsm_02/issues/events{/number}","events_url":"https://api.github.com/repos/dieunb/wsm_02/events","assignees_url":"https://api.github.com/repos/dieunb/wsm_02/assignees{/user}","branches_url":"https://api.github.com/repos/dieunb/wsm_02/branches{/branch}","tags_url":"https://api.github.com/repos/dieunb/wsm_02/tags","blobs_url":"https://api.github.com/repos/dieunb/wsm_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dieunb/wsm_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dieunb/wsm_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/dieunb/wsm_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dieunb/wsm_02/statuses/{sha}","languages_url":"https://api.github.com/repos/dieunb/wsm_02/languages","stargazers_url":"https://api.github.com/repos/dieunb/wsm_02/stargazers","contributors_url":"https://api.github.com/repos/dieunb/wsm_02/contributors","subscribers_url":"https://api.github.com/repos/dieunb/wsm_02/subscribers","subscription_url":"https://api.github.com/repos/dieunb/wsm_02/subscription","commits_url":"https://api.github.com/repos/dieunb/wsm_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/dieunb/wsm_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/dieunb/wsm_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/dieunb/wsm_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/dieunb/wsm_02/contents/{+path}","compare_url":"https://api.github.com/repos/dieunb/wsm_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dieunb/wsm_02/merges","archive_url":"https://api.github.com/repos/dieunb/wsm_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dieunb/wsm_02/downloads","issues_url":"https://api.github.com/repos/dieunb/wsm_02/issues{/number}","pulls_url":"https://api.github.com/repos/dieunb/wsm_02/pulls{/number}","milestones_url":"https://api.github.com/repos/dieunb/wsm_02/milestones{/number}","notifications_url":"https://api.github.com/repos/dieunb/wsm_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dieunb/wsm_02/labels{/name}","releases_url":"https://api.github.com/repos/dieunb/wsm_02/releases{/id}","deployments_url":"https://api.github.com/repos/dieunb/wsm_02/deployments","created_at":"2016-12-06T04:25:12Z","updated_at":"2016-12-06T04:25:13Z","pushed_at":"2016-12-16T10:01:38Z","git_url":"git://github.com/dieunb/wsm_02.git","ssh_url":"git@github.com:dieunb/wsm_02.git","clone_url":"https://github.com/dieunb/wsm_02.git","svn_url":"https://github.com/dieunb/wsm_02","homepage":null,"size":1842,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:master","ref":"master","sha":"32e00a0ea38b6e6cf333a3586ccec6131f88bca2","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":74431382,"name":"wsm_02","full_name":"framgia/wsm_02","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/wsm_02","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/wsm_02","forks_url":"https://api.github.com/repos/framgia/wsm_02/forks","keys_url":"https://api.github.com/repos/framgia/wsm_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/wsm_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/wsm_02/teams","hooks_url":"https://api.github.com/repos/framgia/wsm_02/hooks","issue_events_url":"https://api.github.com/repos/framgia/wsm_02/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/wsm_02/events","assignees_url":"https://api.github.com/repos/framgia/wsm_02/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/wsm_02/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/wsm_02/tags","blobs_url":"https://api.github.com/repos/framgia/wsm_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/wsm_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/wsm_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/wsm_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/wsm_02/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/wsm_02/languages","stargazers_url":"https://api.github.com/repos/framgia/wsm_02/stargazers","contributors_url":"https://api.github.com/repos/framgia/wsm_02/contributors","subscribers_url":"https://api.github.com/repos/framgia/wsm_02/subscribers","subscription_url":"https://api.github.com/repos/framgia/wsm_02/subscription","commits_url":"https://api.github.com/repos/framgia/wsm_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/wsm_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/wsm_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/wsm_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/wsm_02/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/wsm_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/wsm_02/merges","archive_url":"https://api.github.com/repos/framgia/wsm_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/wsm_02/downloads","issues_url":"https://api.github.com/repos/framgia/wsm_02/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/wsm_02/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/wsm_02/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/wsm_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/wsm_02/labels{/name}","releases_url":"https://api.github.com/repos/framgia/wsm_02/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/wsm_02/deployments","created_at":"2016-11-22T03:40:58Z","updated_at":"2016-12-08T06:11:06Z","pushed_at":"2016-12-16T10:06:35Z","git_url":"git://github.com/framgia/wsm_02.git","ssh_url":"git@github.com:framgia/wsm_02.git","clone_url":"https://github.com/framgia/wsm_02.git","svn_url":"https://github.com/framgia/wsm_02","homepage":null,"size":1835,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/30"},"html":{"href":"https://github.com/framgia/wsm_02/pull/30"},"issue":{"href":"https://api.github.com/repos/framgia/wsm_02/issues/30"},"comments":{"href":"https://api.github.com/repos/framgia/wsm_02/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/wsm_02/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/wsm_02/statuses/72e0d53fe455dd4e700bf1d3e8dd678d7e188333"}}}}
{"actor":{"display_login":"framgia-jenkins-ci"}}