{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/comments/206376327","pull_request_review_id":141778910,"id":206376327,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjM3NjMyNw==","diff_hunk":"@@ -0,0 +1,47 @@\n+class TasksController < ApplicationController\n+  before_action :check_leader_group, :find_group, only: [:create]\n+\n+  def create\n+    @group.members.each do |member|\n+      @task = Task.new task_params\n+      @task.member_id = member.id\n+      @task.subtasks.each do |subtask|\n+        subtask.done = Subtask.statuses[:not_started]\n+      end\n+      if @task.save\n+        flash[:info] = t \"flash.add_task_successful\"\n+      else\n+        flash[:danger] = t \"flash.add_task_eror\"","path":"app/controllers/tasks_controller.rb","position":14,"original_position":14,"commit_id":"8da87d1e02ed0579357259c439e84bf2d6fd923c","original_commit_id":"8da87d1e02ed0579357259c439e84bf2d6fd923c","user":{"login":"thanhhungchu95","id":8967163,"node_id":"MDQ6VXNlcjg5NjcxNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8967163?v=4","gravatar_id":"","url":"https://api.github.com/users/thanhhungchu95","html_url":"https://github.com/thanhhungchu95","followers_url":"https://api.github.com/users/thanhhungchu95/followers","following_url":"https://api.github.com/users/thanhhungchu95/following{/other_user}","gists_url":"https://api.github.com/users/thanhhungchu95/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhhungchu95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhhungchu95/subscriptions","organizations_url":"https://api.github.com/users/thanhhungchu95/orgs","repos_url":"https://api.github.com/users/thanhhungchu95/repos","events_url":"https://api.github.com/users/thanhhungchu95/events{/privacy}","received_events_url":"https://api.github.com/users/thanhhungchu95/received_events","type":"User","site_admin":false},"body":"error nhé","created_at":"2018-07-31T02:06:28Z","updated_at":"2018-07-31T02:14:10Z","html_url":"https://github.com/framgia/rails_group_task_management_01/pull/21#discussion_r206376327","pull_request_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/comments/206376327"},"html":{"href":"https://github.com/framgia/rails_group_task_management_01/pull/21#discussion_r206376327"},"pull_request":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21","id":204833455,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0ODMzNDU1","html_url":"https://github.com/framgia/rails_group_task_management_01/pull/21","diff_url":"https://github.com/framgia/rails_group_task_management_01/pull/21.diff","patch_url":"https://github.com/framgia/rails_group_task_management_01/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/21","number":21,"state":"open","locked":false,"title":"add task and subtasks","user":{"login":"hngda01","id":28134240,"node_id":"MDQ6VXNlcjI4MTM0MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/28134240?v=4","gravatar_id":"","url":"https://api.github.com/users/hngda01","html_url":"https://github.com/hngda01","followers_url":"https://api.github.com/users/hngda01/followers","following_url":"https://api.github.com/users/hngda01/following{/other_user}","gists_url":"https://api.github.com/users/hngda01/gists{/gist_id}","starred_url":"https://api.github.com/users/hngda01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hngda01/subscriptions","organizations_url":"https://api.github.com/users/hngda01/orgs","repos_url":"https://api.github.com/users/hngda01/repos","events_url":"https://api.github.com/users/hngda01/events{/privacy}","received_events_url":"https://api.github.com/users/hngda01/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/28134240/43405359-d88e3bf0-9443-11e8-8d71-479b86323d03.png)\r\n","created_at":"2018-07-30T14:59:46Z","updated_at":"2018-07-31T02:14:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab6d7e623577042cb62d9fbc129de4d92ea7ddfb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/statuses/8da87d1e02ed0579357259c439e84bf2d6fd923c","head":{"label":"hngda01:add_task","ref":"add_task","sha":"8da87d1e02ed0579357259c439e84bf2d6fd923c","user":{"login":"hngda01","id":28134240,"node_id":"MDQ6VXNlcjI4MTM0MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/28134240?v=4","gravatar_id":"","url":"https://api.github.com/users/hngda01","html_url":"https://github.com/hngda01","followers_url":"https://api.github.com/users/hngda01/followers","following_url":"https://api.github.com/users/hngda01/following{/other_user}","gists_url":"https://api.github.com/users/hngda01/gists{/gist_id}","starred_url":"https://api.github.com/users/hngda01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hngda01/subscriptions","organizations_url":"https://api.github.com/users/hngda01/orgs","repos_url":"https://api.github.com/users/hngda01/repos","events_url":"https://api.github.com/users/hngda01/events{/privacy}","received_events_url":"https://api.github.com/users/hngda01/received_events","type":"User","site_admin":false},"repo":{"id":141956634,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE5NTY2MzQ=","name":"rails_group_task_management_01","full_name":"hngda01/rails_group_task_management_01","owner":{"login":"hngda01","id":28134240,"node_id":"MDQ6VXNlcjI4MTM0MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/28134240?v=4","gravatar_id":"","url":"https://api.github.com/users/hngda01","html_url":"https://github.com/hngda01","followers_url":"https://api.github.com/users/hngda01/followers","following_url":"https://api.github.com/users/hngda01/following{/other_user}","gists_url":"https://api.github.com/users/hngda01/gists{/gist_id}","starred_url":"https://api.github.com/users/hngda01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hngda01/subscriptions","organizations_url":"https://api.github.com/users/hngda01/orgs","repos_url":"https://api.github.com/users/hngda01/repos","events_url":"https://api.github.com/users/hngda01/events{/privacy}","received_events_url":"https://api.github.com/users/hngda01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hngda01/rails_group_task_management_01","description":null,"fork":true,"url":"https://api.github.com/repos/hngda01/rails_group_task_management_01","forks_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/forks","keys_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/teams","hooks_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/hooks","issue_events_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/events","assignees_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/tags","blobs_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/languages","stargazers_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/stargazers","contributors_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/contributors","subscribers_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/subscribers","subscription_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/subscription","commits_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/merges","archive_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/downloads","issues_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/labels{/name}","releases_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/hngda01/rails_group_task_management_01/deployments","created_at":"2018-07-23T03:30:38Z","updated_at":"2018-07-23T03:30:40Z","pushed_at":"2018-07-31T02:06:05Z","git_url":"git://github.com/hngda01/rails_group_task_management_01.git","ssh_url":"git@github.com:hngda01/rails_group_task_management_01.git","clone_url":"https://github.com/hngda01/rails_group_task_management_01.git","svn_url":"https://github.com/hngda01/rails_group_task_management_01","homepage":null,"size":916,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"c308fb873e9e7b79047f256e7e29da0a6d9fd7d6","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":141824141,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE4MjQxNDE=","name":"rails_group_task_management_01","full_name":"framgia/rails_group_task_management_01","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/rails_group_task_management_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/rails_group_task_management_01","forks_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/forks","keys_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/teams","hooks_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/events","assignees_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/tags","blobs_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/languages","stargazers_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/subscription","commits_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/merges","archive_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/downloads","issues_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/rails_group_task_management_01/deployments","created_at":"2018-07-21T15:21:50Z","updated_at":"2018-07-21T15:21:52Z","pushed_at":"2018-07-31T02:06:06Z","git_url":"git://github.com/framgia/rails_group_task_management_01.git","ssh_url":"git@github.com:framgia/rails_group_task_management_01.git","clone_url":"https://github.com/framgia/rails_group_task_management_01.git","svn_url":"https://github.com/framgia/rails_group_task_management_01","homepage":null,"size":913,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21"},"html":{"href":"https://github.com/framgia/rails_group_task_management_01/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/rails_group_task_management_01/statuses/8da87d1e02ed0579357259c439e84bf2d6fd923c"}},"author_association":"NONE"}}
{"actor":{"display_login":"thanhhungchu95"}}