{"action":"created","comment":{"url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/comments/41565675","id":41565675,"diff_hunk":"@@ -0,0 +1,16 @@\n+class CoursesController < ApplicationController\n+  before_action :authenticate_user!\n+\n+  def index\n+    @courses=current_user.courses\n+  end\n+\n+  def create\n+    if course=Course.create(params.permit(:name))\n+      current_user.courses<<course","path":"app/controllers/courses_controller.rb","position":10,"original_position":10,"commit_id":"fb5984f2395699188616453d28558af04f529b1e","original_commit_id":"fb5984f2395699188616453d28558af04f529b1e","user":{"login":"Maxyss","id":1955603,"avatar_url":"https://avatars.githubusercontent.com/u/1955603?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxyss","html_url":"https://github.com/Maxyss","followers_url":"https://api.github.com/users/Maxyss/followers","following_url":"https://api.github.com/users/Maxyss/following{/other_user}","gists_url":"https://api.github.com/users/Maxyss/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxyss/subscriptions","organizations_url":"https://api.github.com/users/Maxyss/orgs","repos_url":"https://api.github.com/users/Maxyss/repos","events_url":"https://api.github.com/users/Maxyss/events{/privacy}","received_events_url":"https://api.github.com/users/Maxyss/received_events","type":"User","site_admin":false},"body":"а зачем ты это делаешь?","created_at":"2015-10-08T20:39:39Z","updated_at":"2015-10-08T20:39:39Z","html_url":"https://github.com/dimanado/DaK_backend/pull/1#discussion_r41565675","pull_request_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dimanado/DaK_backend/pulls/comments/41565675"},"html":{"href":"https://github.com/dimanado/DaK_backend/pull/1#discussion_r41565675"},"pull_request":{"href":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1","id":47200774,"html_url":"https://github.com/dimanado/DaK_backend/pull/1","diff_url":"https://github.com/dimanado/DaK_backend/pull/1.diff","patch_url":"https://github.com/dimanado/DaK_backend/pull/1.patch","issue_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/1","number":1,"state":"open","locked":false,"title":"Feature/course","user":{"login":"dimanado","id":11485650,"avatar_url":"https://avatars.githubusercontent.com/u/11485650?v=3","gravatar_id":"","url":"https://api.github.com/users/dimanado","html_url":"https://github.com/dimanado","followers_url":"https://api.github.com/users/dimanado/followers","following_url":"https://api.github.com/users/dimanado/following{/other_user}","gists_url":"https://api.github.com/users/dimanado/gists{/gist_id}","starred_url":"https://api.github.com/users/dimanado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimanado/subscriptions","organizations_url":"https://api.github.com/users/dimanado/orgs","repos_url":"https://api.github.com/users/dimanado/repos","events_url":"https://api.github.com/users/dimanado/events{/privacy}","received_events_url":"https://api.github.com/users/dimanado/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-08T20:16:55Z","updated_at":"2015-10-08T20:39:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13312632fd667bbb19e992a0f448d0d3637a159f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/1/comments","statuses_url":"https://api.github.com/repos/dimanado/DaK_backend/statuses/fb5984f2395699188616453d28558af04f529b1e","head":{"label":"dimanado:feature/course","ref":"feature/course","sha":"fb5984f2395699188616453d28558af04f529b1e","user":{"login":"dimanado","id":11485650,"avatar_url":"https://avatars.githubusercontent.com/u/11485650?v=3","gravatar_id":"","url":"https://api.github.com/users/dimanado","html_url":"https://github.com/dimanado","followers_url":"https://api.github.com/users/dimanado/followers","following_url":"https://api.github.com/users/dimanado/following{/other_user}","gists_url":"https://api.github.com/users/dimanado/gists{/gist_id}","starred_url":"https://api.github.com/users/dimanado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimanado/subscriptions","organizations_url":"https://api.github.com/users/dimanado/orgs","repos_url":"https://api.github.com/users/dimanado/repos","events_url":"https://api.github.com/users/dimanado/events{/privacy}","received_events_url":"https://api.github.com/users/dimanado/received_events","type":"User","site_admin":false},"repo":{"id":39886528,"name":"DaK_backend","full_name":"dimanado/DaK_backend","owner":{"login":"dimanado","id":11485650,"avatar_url":"https://avatars.githubusercontent.com/u/11485650?v=3","gravatar_id":"","url":"https://api.github.com/users/dimanado","html_url":"https://github.com/dimanado","followers_url":"https://api.github.com/users/dimanado/followers","following_url":"https://api.github.com/users/dimanado/following{/other_user}","gists_url":"https://api.github.com/users/dimanado/gists{/gist_id}","starred_url":"https://api.github.com/users/dimanado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimanado/subscriptions","organizations_url":"https://api.github.com/users/dimanado/orgs","repos_url":"https://api.github.com/users/dimanado/repos","events_url":"https://api.github.com/users/dimanado/events{/privacy}","received_events_url":"https://api.github.com/users/dimanado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dimanado/DaK_backend","description":"","fork":false,"url":"https://api.github.com/repos/dimanado/DaK_backend","forks_url":"https://api.github.com/repos/dimanado/DaK_backend/forks","keys_url":"https://api.github.com/repos/dimanado/DaK_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimanado/DaK_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimanado/DaK_backend/teams","hooks_url":"https://api.github.com/repos/dimanado/DaK_backend/hooks","issue_events_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/events{/number}","events_url":"https://api.github.com/repos/dimanado/DaK_backend/events","assignees_url":"https://api.github.com/repos/dimanado/DaK_backend/assignees{/user}","branches_url":"https://api.github.com/repos/dimanado/DaK_backend/branches{/branch}","tags_url":"https://api.github.com/repos/dimanado/DaK_backend/tags","blobs_url":"https://api.github.com/repos/dimanado/DaK_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimanado/DaK_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimanado/DaK_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimanado/DaK_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimanado/DaK_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/dimanado/DaK_backend/languages","stargazers_url":"https://api.github.com/repos/dimanado/DaK_backend/stargazers","contributors_url":"https://api.github.com/repos/dimanado/DaK_backend/contributors","subscribers_url":"https://api.github.com/repos/dimanado/DaK_backend/subscribers","subscription_url":"https://api.github.com/repos/dimanado/DaK_backend/subscription","commits_url":"https://api.github.com/repos/dimanado/DaK_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimanado/DaK_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimanado/DaK_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimanado/DaK_backend/contents/{+path}","compare_url":"https://api.github.com/repos/dimanado/DaK_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimanado/DaK_backend/merges","archive_url":"https://api.github.com/repos/dimanado/DaK_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimanado/DaK_backend/downloads","issues_url":"https://api.github.com/repos/dimanado/DaK_backend/issues{/number}","pulls_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/dimanado/DaK_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/dimanado/DaK_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimanado/DaK_backend/labels{/name}","releases_url":"https://api.github.com/repos/dimanado/DaK_backend/releases{/id}","created_at":"2015-07-29T10:00:10Z","updated_at":"2015-10-02T20:30:41Z","pushed_at":"2015-10-08T20:16:55Z","git_url":"git://github.com/dimanado/DaK_backend.git","ssh_url":"git@github.com:dimanado/DaK_backend.git","clone_url":"https://github.com/dimanado/DaK_backend.git","svn_url":"https://github.com/dimanado/DaK_backend","homepage":null,"size":12404,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"dimanado:develop","ref":"develop","sha":"fb744b5bf41386b979999a7c7b3077f1595678cb","user":{"login":"dimanado","id":11485650,"avatar_url":"https://avatars.githubusercontent.com/u/11485650?v=3","gravatar_id":"","url":"https://api.github.com/users/dimanado","html_url":"https://github.com/dimanado","followers_url":"https://api.github.com/users/dimanado/followers","following_url":"https://api.github.com/users/dimanado/following{/other_user}","gists_url":"https://api.github.com/users/dimanado/gists{/gist_id}","starred_url":"https://api.github.com/users/dimanado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimanado/subscriptions","organizations_url":"https://api.github.com/users/dimanado/orgs","repos_url":"https://api.github.com/users/dimanado/repos","events_url":"https://api.github.com/users/dimanado/events{/privacy}","received_events_url":"https://api.github.com/users/dimanado/received_events","type":"User","site_admin":false},"repo":{"id":39886528,"name":"DaK_backend","full_name":"dimanado/DaK_backend","owner":{"login":"dimanado","id":11485650,"avatar_url":"https://avatars.githubusercontent.com/u/11485650?v=3","gravatar_id":"","url":"https://api.github.com/users/dimanado","html_url":"https://github.com/dimanado","followers_url":"https://api.github.com/users/dimanado/followers","following_url":"https://api.github.com/users/dimanado/following{/other_user}","gists_url":"https://api.github.com/users/dimanado/gists{/gist_id}","starred_url":"https://api.github.com/users/dimanado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimanado/subscriptions","organizations_url":"https://api.github.com/users/dimanado/orgs","repos_url":"https://api.github.com/users/dimanado/repos","events_url":"https://api.github.com/users/dimanado/events{/privacy}","received_events_url":"https://api.github.com/users/dimanado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dimanado/DaK_backend","description":"","fork":false,"url":"https://api.github.com/repos/dimanado/DaK_backend","forks_url":"https://api.github.com/repos/dimanado/DaK_backend/forks","keys_url":"https://api.github.com/repos/dimanado/DaK_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimanado/DaK_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimanado/DaK_backend/teams","hooks_url":"https://api.github.com/repos/dimanado/DaK_backend/hooks","issue_events_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/events{/number}","events_url":"https://api.github.com/repos/dimanado/DaK_backend/events","assignees_url":"https://api.github.com/repos/dimanado/DaK_backend/assignees{/user}","branches_url":"https://api.github.com/repos/dimanado/DaK_backend/branches{/branch}","tags_url":"https://api.github.com/repos/dimanado/DaK_backend/tags","blobs_url":"https://api.github.com/repos/dimanado/DaK_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimanado/DaK_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimanado/DaK_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimanado/DaK_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimanado/DaK_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/dimanado/DaK_backend/languages","stargazers_url":"https://api.github.com/repos/dimanado/DaK_backend/stargazers","contributors_url":"https://api.github.com/repos/dimanado/DaK_backend/contributors","subscribers_url":"https://api.github.com/repos/dimanado/DaK_backend/subscribers","subscription_url":"https://api.github.com/repos/dimanado/DaK_backend/subscription","commits_url":"https://api.github.com/repos/dimanado/DaK_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimanado/DaK_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimanado/DaK_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimanado/DaK_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimanado/DaK_backend/contents/{+path}","compare_url":"https://api.github.com/repos/dimanado/DaK_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimanado/DaK_backend/merges","archive_url":"https://api.github.com/repos/dimanado/DaK_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimanado/DaK_backend/downloads","issues_url":"https://api.github.com/repos/dimanado/DaK_backend/issues{/number}","pulls_url":"https://api.github.com/repos/dimanado/DaK_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/dimanado/DaK_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/dimanado/DaK_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimanado/DaK_backend/labels{/name}","releases_url":"https://api.github.com/repos/dimanado/DaK_backend/releases{/id}","created_at":"2015-07-29T10:00:10Z","updated_at":"2015-10-02T20:30:41Z","pushed_at":"2015-10-08T20:16:55Z","git_url":"git://github.com/dimanado/DaK_backend.git","ssh_url":"git@github.com:dimanado/DaK_backend.git","clone_url":"https://github.com/dimanado/DaK_backend.git","svn_url":"https://github.com/dimanado/DaK_backend","homepage":null,"size":12404,"stargazers_count":0,"watchers_count":0,"language":"HTML","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/dimanado/DaK_backend/pulls/1"},"html":{"href":"https://github.com/dimanado/DaK_backend/pull/1"},"issue":{"href":"https://api.github.com/repos/dimanado/DaK_backend/issues/1"},"comments":{"href":"https://api.github.com/repos/dimanado/DaK_backend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dimanado/DaK_backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimanado/DaK_backend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dimanado/DaK_backend/statuses/fb5984f2395699188616453d28558af04f529b1e"}}}}