{"action":"created","comment":{"url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/comments/35591295","id":35591295,"diff_hunk":"@@ -0,0 +1,37 @@\n+class CollaboratorsController < ApplicationController\n+\n+  def new\n+    @collaborator = Collaborator.new\n+  end\n+\n+  def create\n+    @wiki = Wiki.find(params[:wiki_id])\n+    @collaborator = @wiki.collaborators.build(collaborator_params)\n+    authorize @collaborator\n+\n+    if @collaborator.save\n+      flash[:notice] = \"Collaborator added.\"\n+    else\n+      flash[:notice] = \"There was an error adding the collaborator. Please try again.\"","path":"app/controllers/collaborators_controller.rb","position":15,"original_position":15,"commit_id":"57f9260494f3dc2cc7d481c5d64657d878673a60","original_commit_id":"57f9260494f3dc2cc7d481c5d64657d878673a60","user":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-07-27T21:46:05Z","updated_at":"2015-07-27T21:46:05Z","html_url":"https://github.com/AbdullahAlger/blocipedia/pull/26#discussion_r35591295","pull_request_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/comments/35591295"},"html":{"href":"https://github.com/AbdullahAlger/blocipedia/pull/26#discussion_r35591295"},"pull_request":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26","id":40844778,"html_url":"https://github.com/AbdullahAlger/blocipedia/pull/26","diff_url":"https://github.com/AbdullahAlger/blocipedia/pull/26.diff","patch_url":"https://github.com/AbdullahAlger/blocipedia/pull/26.patch","issue_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/26","number":26,"state":"closed","locked":false,"title":"New collaborators branch","user":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"body":"Messed up ....","created_at":"2015-07-25T23:04:46Z","updated_at":"2015-07-27T21:46:05Z","closed_at":"2015-07-25T23:05:07Z","merged_at":"2015-07-25T23:05:07Z","merge_commit_sha":"73de72d35d3709443e35c5e4c89014cf8cb59c2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26/commits","review_comments_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26/comments","review_comment_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/26/comments","statuses_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/statuses/57f9260494f3dc2cc7d481c5d64657d878673a60","head":{"label":"AbdullahAlger:new-collaborators-branch","ref":"new-collaborators-branch","sha":"57f9260494f3dc2cc7d481c5d64657d878673a60","user":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"repo":{"id":38232952,"name":"blocipedia","full_name":"AbdullahAlger/blocipedia","owner":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AbdullahAlger/blocipedia","description":"","fork":false,"url":"https://api.github.com/repos/AbdullahAlger/blocipedia","forks_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/forks","keys_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/teams","hooks_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/hooks","issue_events_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/events","assignees_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/tags","blobs_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/languages","stargazers_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/stargazers","contributors_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/contributors","subscribers_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/subscribers","subscription_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/subscription","commits_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/merges","archive_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/downloads","issues_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/releases{/id}","created_at":"2015-06-29T07:10:46Z","updated_at":"2015-06-29T07:13:51Z","pushed_at":"2015-07-27T07:14:04Z","git_url":"git://github.com/AbdullahAlger/blocipedia.git","ssh_url":"git@github.com:AbdullahAlger/blocipedia.git","clone_url":"https://github.com/AbdullahAlger/blocipedia.git","svn_url":"https://github.com/AbdullahAlger/blocipedia","homepage":null,"size":2060,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AbdullahAlger:master","ref":"master","sha":"0cb8be2b082a7ad9406327deded7ef96947c457d","user":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"repo":{"id":38232952,"name":"blocipedia","full_name":"AbdullahAlger/blocipedia","owner":{"login":"AbdullahAlger","id":6264696,"avatar_url":"https://avatars.githubusercontent.com/u/6264696?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdullahAlger","html_url":"https://github.com/AbdullahAlger","followers_url":"https://api.github.com/users/AbdullahAlger/followers","following_url":"https://api.github.com/users/AbdullahAlger/following{/other_user}","gists_url":"https://api.github.com/users/AbdullahAlger/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdullahAlger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdullahAlger/subscriptions","organizations_url":"https://api.github.com/users/AbdullahAlger/orgs","repos_url":"https://api.github.com/users/AbdullahAlger/repos","events_url":"https://api.github.com/users/AbdullahAlger/events{/privacy}","received_events_url":"https://api.github.com/users/AbdullahAlger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AbdullahAlger/blocipedia","description":"","fork":false,"url":"https://api.github.com/repos/AbdullahAlger/blocipedia","forks_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/forks","keys_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/teams","hooks_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/hooks","issue_events_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/events{/number}","events_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/events","assignees_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/assignees{/user}","branches_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/branches{/branch}","tags_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/tags","blobs_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/statuses/{sha}","languages_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/languages","stargazers_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/stargazers","contributors_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/contributors","subscribers_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/subscribers","subscription_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/subscription","commits_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/contents/{+path}","compare_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/merges","archive_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/downloads","issues_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues{/number}","pulls_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls{/number}","milestones_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/milestones{/number}","notifications_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/labels{/name}","releases_url":"https://api.github.com/repos/AbdullahAlger/blocipedia/releases{/id}","created_at":"2015-06-29T07:10:46Z","updated_at":"2015-06-29T07:13:51Z","pushed_at":"2015-07-27T07:14:04Z","git_url":"git://github.com/AbdullahAlger/blocipedia.git","ssh_url":"git@github.com:AbdullahAlger/blocipedia.git","clone_url":"https://github.com/AbdullahAlger/blocipedia.git","svn_url":"https://github.com/AbdullahAlger/blocipedia","homepage":null,"size":2060,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26"},"html":{"href":"https://github.com/AbdullahAlger/blocipedia/pull/26"},"issue":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/26"},"comments":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/AbdullahAlger/blocipedia/statuses/57f9260494f3dc2cc7d481c5d64657d878673a60"}}}}