{"action":"created","comment":{"url":"https://api.github.com/repos/lewagon/alumni/pulls/comments/67344296","id":67344296,"diff_hunk":"@@ -0,0 +1,36 @@\n+class TestimonialsController < ApplicationController\n+  before_action :set_city\n+\n+  def create\n+    github_nickname = params[:github_nickname]\n+    user = User.find_by_slug(github_nickname)\n+    testimonial = Testimonial.new(content: params[:content], locale: params[:locale])\n+    testimonial.user = user\n+    authorize testimonial\n+    if !testimonial.save\n+      @error_content = \"'\" + github_nickname +\"' is not an authorized GitHub nickname\"","path":"app/controllers/testimonials_controller.rb","position":11,"original_position":11,"commit_id":"8e4ba7056e0d006d02854c465c75e12d537dc06e","original_commit_id":"8e4ba7056e0d006d02854c465c75e12d537dc06e","user":{"login":"krokrob","id":9978111,"avatar_url":"https://avatars.githubusercontent.com/u/9978111?v=3","gravatar_id":"","url":"https://api.github.com/users/krokrob","html_url":"https://github.com/krokrob","followers_url":"https://api.github.com/users/krokrob/followers","following_url":"https://api.github.com/users/krokrob/following{/other_user}","gists_url":"https://api.github.com/users/krokrob/gists{/gist_id}","starred_url":"https://api.github.com/users/krokrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krokrob/subscriptions","organizations_url":"https://api.github.com/users/krokrob/orgs","repos_url":"https://api.github.com/users/krokrob/repos","events_url":"https://api.github.com/users/krokrob/events{/privacy}","received_events_url":"https://api.github.com/users/krokrob/received_events","type":"User","site_admin":false},"body":"tu préfères _\"User can't be blank\"_ ?","created_at":"2016-06-16T13:33:57Z","updated_at":"2016-06-16T13:33:57Z","html_url":"https://github.com/lewagon/alumni/pull/237#discussion_r67344296","pull_request_url":"https://api.github.com/repos/lewagon/alumni/pulls/237","_links":{"self":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/comments/67344296"},"html":{"href":"https://github.com/lewagon/alumni/pull/237#discussion_r67344296"},"pull_request":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/237"}}},"pull_request":{"url":"https://api.github.com/repos/lewagon/alumni/pulls/237","id":73703928,"html_url":"https://github.com/lewagon/alumni/pull/237","diff_url":"https://github.com/lewagon/alumni/pull/237.diff","patch_url":"https://github.com/lewagon/alumni/pull/237.patch","issue_url":"https://api.github.com/repos/lewagon/alumni/issues/237","number":237,"state":"open","locked":false,"title":"Admin testimonials","user":{"login":"krokrob","id":9978111,"avatar_url":"https://avatars.githubusercontent.com/u/9978111?v=3","gravatar_id":"","url":"https://api.github.com/users/krokrob","html_url":"https://github.com/krokrob","followers_url":"https://api.github.com/users/krokrob/followers","following_url":"https://api.github.com/users/krokrob/following{/other_user}","gists_url":"https://api.github.com/users/krokrob/gists{/gist_id}","starred_url":"https://api.github.com/users/krokrob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krokrob/subscriptions","organizations_url":"https://api.github.com/users/krokrob/orgs","repos_url":"https://api.github.com/users/krokrob/repos","events_url":"https://api.github.com/users/krokrob/events{/privacy}","received_events_url":"https://api.github.com/users/krokrob/received_events","type":"User","site_admin":false},"body":"This allows managers and admin to add new testimonials and edit existing testimonials.\r\n@ssaunier please review","created_at":"2016-06-14T09:06:04Z","updated_at":"2016-06-16T13:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae4716ff225e97ffd82e1c03d618ce114982c48d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lewagon/alumni/pulls/237/commits","review_comments_url":"https://api.github.com/repos/lewagon/alumni/pulls/237/comments","review_comment_url":"https://api.github.com/repos/lewagon/alumni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lewagon/alumni/issues/237/comments","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/8e4ba7056e0d006d02854c465c75e12d537dc06e","head":{"label":"lewagon:admin-testimonials","ref":"admin-testimonials","sha":"8e4ba7056e0d006d02854c465c75e12d537dc06e","user":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"repo":{"id":39722941,"name":"alumni","full_name":"lewagon/alumni","owner":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lewagon/alumni","description":"#resources / #help / #jobs / #milestones","fork":false,"url":"https://api.github.com/repos/lewagon/alumni","forks_url":"https://api.github.com/repos/lewagon/alumni/forks","keys_url":"https://api.github.com/repos/lewagon/alumni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lewagon/alumni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lewagon/alumni/teams","hooks_url":"https://api.github.com/repos/lewagon/alumni/hooks","issue_events_url":"https://api.github.com/repos/lewagon/alumni/issues/events{/number}","events_url":"https://api.github.com/repos/lewagon/alumni/events","assignees_url":"https://api.github.com/repos/lewagon/alumni/assignees{/user}","branches_url":"https://api.github.com/repos/lewagon/alumni/branches{/branch}","tags_url":"https://api.github.com/repos/lewagon/alumni/tags","blobs_url":"https://api.github.com/repos/lewagon/alumni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lewagon/alumni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lewagon/alumni/git/refs{/sha}","trees_url":"https://api.github.com/repos/lewagon/alumni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/{sha}","languages_url":"https://api.github.com/repos/lewagon/alumni/languages","stargazers_url":"https://api.github.com/repos/lewagon/alumni/stargazers","contributors_url":"https://api.github.com/repos/lewagon/alumni/contributors","subscribers_url":"https://api.github.com/repos/lewagon/alumni/subscribers","subscription_url":"https://api.github.com/repos/lewagon/alumni/subscription","commits_url":"https://api.github.com/repos/lewagon/alumni/commits{/sha}","git_commits_url":"https://api.github.com/repos/lewagon/alumni/git/commits{/sha}","comments_url":"https://api.github.com/repos/lewagon/alumni/comments{/number}","issue_comment_url":"https://api.github.com/repos/lewagon/alumni/issues/comments{/number}","contents_url":"https://api.github.com/repos/lewagon/alumni/contents/{+path}","compare_url":"https://api.github.com/repos/lewagon/alumni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lewagon/alumni/merges","archive_url":"https://api.github.com/repos/lewagon/alumni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lewagon/alumni/downloads","issues_url":"https://api.github.com/repos/lewagon/alumni/issues{/number}","pulls_url":"https://api.github.com/repos/lewagon/alumni/pulls{/number}","milestones_url":"https://api.github.com/repos/lewagon/alumni/milestones{/number}","notifications_url":"https://api.github.com/repos/lewagon/alumni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lewagon/alumni/labels{/name}","releases_url":"https://api.github.com/repos/lewagon/alumni/releases{/id}","deployments_url":"https://api.github.com/repos/lewagon/alumni/deployments","created_at":"2015-07-26T11:15:06Z","updated_at":"2016-04-29T10:38:18Z","pushed_at":"2016-06-16T12:30:21Z","git_url":"git://github.com/lewagon/alumni.git","ssh_url":"git@github.com:lewagon/alumni.git","clone_url":"https://github.com/lewagon/alumni.git","svn_url":"https://github.com/lewagon/alumni","homepage":"http://alumni.lewagon.org","size":2109,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":9,"default_branch":"master"}},"base":{"label":"lewagon:master","ref":"master","sha":"e1983896f5bf3bf369315bb4c1059c81388d5cc5","user":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"repo":{"id":39722941,"name":"alumni","full_name":"lewagon/alumni","owner":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lewagon/alumni","description":"#resources / #help / #jobs / #milestones","fork":false,"url":"https://api.github.com/repos/lewagon/alumni","forks_url":"https://api.github.com/repos/lewagon/alumni/forks","keys_url":"https://api.github.com/repos/lewagon/alumni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lewagon/alumni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lewagon/alumni/teams","hooks_url":"https://api.github.com/repos/lewagon/alumni/hooks","issue_events_url":"https://api.github.com/repos/lewagon/alumni/issues/events{/number}","events_url":"https://api.github.com/repos/lewagon/alumni/events","assignees_url":"https://api.github.com/repos/lewagon/alumni/assignees{/user}","branches_url":"https://api.github.com/repos/lewagon/alumni/branches{/branch}","tags_url":"https://api.github.com/repos/lewagon/alumni/tags","blobs_url":"https://api.github.com/repos/lewagon/alumni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lewagon/alumni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lewagon/alumni/git/refs{/sha}","trees_url":"https://api.github.com/repos/lewagon/alumni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/{sha}","languages_url":"https://api.github.com/repos/lewagon/alumni/languages","stargazers_url":"https://api.github.com/repos/lewagon/alumni/stargazers","contributors_url":"https://api.github.com/repos/lewagon/alumni/contributors","subscribers_url":"https://api.github.com/repos/lewagon/alumni/subscribers","subscription_url":"https://api.github.com/repos/lewagon/alumni/subscription","commits_url":"https://api.github.com/repos/lewagon/alumni/commits{/sha}","git_commits_url":"https://api.github.com/repos/lewagon/alumni/git/commits{/sha}","comments_url":"https://api.github.com/repos/lewagon/alumni/comments{/number}","issue_comment_url":"https://api.github.com/repos/lewagon/alumni/issues/comments{/number}","contents_url":"https://api.github.com/repos/lewagon/alumni/contents/{+path}","compare_url":"https://api.github.com/repos/lewagon/alumni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lewagon/alumni/merges","archive_url":"https://api.github.com/repos/lewagon/alumni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lewagon/alumni/downloads","issues_url":"https://api.github.com/repos/lewagon/alumni/issues{/number}","pulls_url":"https://api.github.com/repos/lewagon/alumni/pulls{/number}","milestones_url":"https://api.github.com/repos/lewagon/alumni/milestones{/number}","notifications_url":"https://api.github.com/repos/lewagon/alumni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lewagon/alumni/labels{/name}","releases_url":"https://api.github.com/repos/lewagon/alumni/releases{/id}","deployments_url":"https://api.github.com/repos/lewagon/alumni/deployments","created_at":"2015-07-26T11:15:06Z","updated_at":"2016-04-29T10:38:18Z","pushed_at":"2016-06-16T12:30:21Z","git_url":"git://github.com/lewagon/alumni.git","ssh_url":"git@github.com:lewagon/alumni.git","clone_url":"https://github.com/lewagon/alumni.git","svn_url":"https://github.com/lewagon/alumni","homepage":"http://alumni.lewagon.org","size":2109,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/237"},"html":{"href":"https://github.com/lewagon/alumni/pull/237"},"issue":{"href":"https://api.github.com/repos/lewagon/alumni/issues/237"},"comments":{"href":"https://api.github.com/repos/lewagon/alumni/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/lewagon/alumni/statuses/8e4ba7056e0d006d02854c465c75e12d537dc06e"}}}}
{"actor":{"display_login":"krokrob"}}