GitHub PullRequestReviewCommentEvent at 2014-11-18 16:06:02
Repository: resj
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/khcr/resj/pulls/comments/20515092","id":20515092,"diff_hunk":"@@ -0,0 +1,52 @@\n+class Cards::ImagesController < BaseController\n+\tbefore_filter :current_resource\n+\n+\tdef banner\n+\tend\n+\n+\tdef avatar\n+\tend\n+\n+\tdef upload_banner\n+\t\t@card.banner = params[:card][:banner]\n+\t\tif @card.save\n+\t\t\trender 'banner_success'\n+\t\telse\n+\t\t\trender 'error'\n+\t\tend\n+\tend\n+\n+\tdef upload_avatar\n+\t\t@card.avatar = params[:card][:avatar]\n+\t\tif @card.save\n+\t\t\trender 'avatar_success'\n+\t\telse\n+\t\t\trender 'error'\n+\t\tend\n+\tend\n+\n+\tdef remove_banner\n+\t\t@card.remove_banner!\n+\t\tif @card.save\n+\t\t\trender 'banner_success'\n+\t\telse\n+\t\t\trender 'error'\n+\t\tend\n+\tend\n+\n+\tdef remove_avatar\n+\t\t@card.remove_avatar!\n+\t\tif @card.save\n+\t\t\trender 'avatar_success'\n+\t\telse\n+\t\t\trender 'error'\n+\t\tend\n+\tend","path":"app/controllers/cards/images_controller.rb","position":44,"original_position":44,"commit_id":"ceecaf7cec7e35ba48aa5b71b93cf089cbfedb3b","original_commit_id":"ceecaf7cec7e35ba48aa5b71b93cf089cbfedb3b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Tab detected.","created_at":"2014-11-18T16:06:02Z","updated_at":"2014-11-18T16:06:02Z","html_url":"https://github.com/khcr/resj/pull/1#discussion_r20515092","pull_request_url":"https://api.github.com/repos/khcr/resj/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/khcr/resj/pulls/comments/20515092"},"html":{"href":"https://github.com/khcr/resj/pull/1#discussion_r20515092"},"pull_request":{"href":"https://api.github.com/repos/khcr/resj/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/khcr/resj/pulls/1","id":24622036,"html_url":"https://github.com/khcr/resj/pull/1","diff_url":"https://github.com/khcr/resj/pull/1.diff","patch_url":"https://github.com/khcr/resj/pull/1.patch","issue_url":"https://api.github.com/repos/khcr/resj/issues/1","number":1,"state":"open","locked":false,"title":"Newsletter options","user":{"login":"khcr","id":2395320,"avatar_url":"https://avatars.githubusercontent.com/u/2395320?v=3","gravatar_id":"","url":"https://api.github.com/users/khcr","html_url":"https://github.com/khcr","followers_url":"https://api.github.com/users/khcr/followers","following_url":"https://api.github.com/users/khcr/following{/other_user}","gists_url":"https://api.github.com/users/khcr/gists{/gist_id}","starred_url":"https://api.github.com/users/khcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khcr/subscriptions","organizations_url":"https://api.github.com/users/khcr/orgs","repos_url":"https://api.github.com/users/khcr/repos","events_url":"https://api.github.com/users/khcr/events{/privacy}","received_events_url":"https://api.github.com/users/khcr/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-18T16:05:46Z","updated_at":"2014-11-18T16:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3008270755319c2df129f1b70cfafbb03a5f12fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/khcr/resj/pulls/1/commits","review_comments_url":"https://api.github.com/repos/khcr/resj/pulls/1/comments","review_comment_url":"https://api.github.com/repos/khcr/resj/pulls/comments/{number}","comments_url":"https://api.github.com/repos/khcr/resj/issues/1/comments","statuses_url":"https://api.github.com/repos/khcr/resj/statuses/ceecaf7cec7e35ba48aa5b71b93cf089cbfedb3b","head":{"label":"khcr:newsletter-options","ref":"newsletter-options","sha":"ceecaf7cec7e35ba48aa5b71b93cf089cbfedb3b","user":{"login":"khcr","id":2395320,"avatar_url":"https://avatars.githubusercontent.com/u/2395320?v=3","gravatar_id":"","url":"https://api.github.com/users/khcr","html_url":"https://github.com/khcr","followers_url":"https://api.github.com/users/khcr/followers","following_url":"https://api.github.com/users/khcr/following{/other_user}","gists_url":"https://api.github.com/users/khcr/gists{/gist_id}","starred_url":"https://api.github.com/users/khcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khcr/subscriptions","organizations_url":"https://api.github.com/users/khcr/orgs","repos_url":"https://api.github.com/users/khcr/repos","events_url":"https://api.github.com/users/khcr/events{/privacy}","received_events_url":"https://api.github.com/users/khcr/received_events","type":"User","site_admin":false},"repo":{"id":14016542,"name":"resj","full_name":"khcr/resj","owner":{"login":"khcr","id":2395320,"avatar_url":"https://avatars.githubusercontent.com/u/2395320?v=3","gravatar_id":"","url":"https://api.github.com/users/khcr","html_url":"https://github.com/khcr","followers_url":"https://api.github.com/users/khcr/followers","following_url":"https://api.github.com/users/khcr/following{/other_user}","gists_url":"https://api.github.com/users/khcr/gists{/gist_id}","starred_url":"https://api.github.com/users/khcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khcr/subscriptions","organizations_url":"https://api.github.com/users/khcr/orgs","repos_url":"https://api.github.com/users/khcr/repos","events_url":"https://api.github.com/users/khcr/events{/privacy}","received_events_url":"https://api.github.com/users/khcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khcr/resj","description":"Réseau évangélique suisse - Ministère jeunesse","fork":false,"url":"https://api.github.com/repos/khcr/resj","forks_url":"https://api.github.com/repos/khcr/resj/forks","keys_url":"https://api.github.com/repos/khcr/resj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khcr/resj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khcr/resj/teams","hooks_url":"https://api.github.com/repos/khcr/resj/hooks","issue_events_url":"https://api.github.com/repos/khcr/resj/issues/events{/number}","events_url":"https://api.github.com/repos/khcr/resj/events","assignees_url":"https://api.github.com/repos/khcr/resj/assignees{/user}","branches_url":"https://api.github.com/repos/khcr/resj/branches{/branch}","tags_url":"https://api.github.com/repos/khcr/resj/tags","blobs_url":"https://api.github.com/repos/khcr/resj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khcr/resj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khcr/resj/git/refs{/sha}","trees_url":"https://api.github.com/repos/khcr/resj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khcr/resj/statuses/{sha}","languages_url":"https://api.github.com/repos/khcr/resj/languages","stargazers_url":"https://api.github.com/repos/khcr/resj/stargazers","contributors_url":"https://api.github.com/repos/khcr/resj/contributors","subscribers_url":"https://api.github.com/repos/khcr/resj/subscribers","subscription_url":"https://api.github.com/repos/khcr/resj/subscription","commits_url":"https://api.github.com/repos/khcr/resj/commits{/sha}","git_commits_url":"https://api.github.com/repos/khcr/resj/git/commits{/sha}","comments_url":"https://api.github.com/repos/khcr/resj/comments{/number}","issue_comment_url":"https://api.github.com/repos/khcr/resj/issues/comments/{number}","contents_url":"https://api.github.com/repos/khcr/resj/contents/{+path}","compare_url":"https://api.github.com/repos/khcr/resj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khcr/resj/merges","archive_url":"https://api.github.com/repos/khcr/resj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khcr/resj/downloads","issues_url":"https://api.github.com/repos/khcr/resj/issues{/number}","pulls_url":"https://api.github.com/repos/khcr/resj/pulls{/number}","milestones_url":"https://api.github.com/repos/khcr/resj/milestones{/number}","notifications_url":"https://api.github.com/repos/khcr/resj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khcr/resj/labels{/name}","releases_url":"https://api.github.com/repos/khcr/resj/releases{/id}","created_at":"2013-10-31T12:42:18Z","updated_at":"2014-09-09T21:31:43Z","pushed_at":"2014-11-17T20:24:18Z","git_url":"git://github.com/khcr/resj.git","ssh_url":"git@github.com:khcr/resj.git","clone_url":"https://github.com/khcr/resj.git","svn_url":"https://github.com/khcr/resj","homepage":"www.reseaujeunesse.ch","size":11440,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"khcr:master","ref":"master","sha":"341ba86f8018b251d2b11bf3759f2ba789bcb982","user":{"login":"khcr","id":2395320,"avatar_url":"https://avatars.githubusercontent.com/u/2395320?v=3","gravatar_id":"","url":"https://api.github.com/users/khcr","html_url":"https://github.com/khcr","followers_url":"https://api.github.com/users/khcr/followers","following_url":"https://api.github.com/users/khcr/following{/other_user}","gists_url":"https://api.github.com/users/khcr/gists{/gist_id}","starred_url":"https://api.github.com/users/khcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khcr/subscriptions","organizations_url":"https://api.github.com/users/khcr/orgs","repos_url":"https://api.github.com/users/khcr/repos","events_url":"https://api.github.com/users/khcr/events{/privacy}","received_events_url":"https://api.github.com/users/khcr/received_events","type":"User","site_admin":false},"repo":{"id":14016542,"name":"resj","full_name":"khcr/resj","owner":{"login":"khcr","id":2395320,"avatar_url":"https://avatars.githubusercontent.com/u/2395320?v=3","gravatar_id":"","url":"https://api.github.com/users/khcr","html_url":"https://github.com/khcr","followers_url":"https://api.github.com/users/khcr/followers","following_url":"https://api.github.com/users/khcr/following{/other_user}","gists_url":"https://api.github.com/users/khcr/gists{/gist_id}","starred_url":"https://api.github.com/users/khcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khcr/subscriptions","organizations_url":"https://api.github.com/users/khcr/orgs","repos_url":"https://api.github.com/users/khcr/repos","events_url":"https://api.github.com/users/khcr/events{/privacy}","received_events_url":"https://api.github.com/users/khcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khcr/resj","description":"Réseau évangélique suisse - Ministère jeunesse","fork":false,"url":"https://api.github.com/repos/khcr/resj","forks_url":"https://api.github.com/repos/khcr/resj/forks","keys_url":"https://api.github.com/repos/khcr/resj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khcr/resj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khcr/resj/teams","hooks_url":"https://api.github.com/repos/khcr/resj/hooks","issue_events_url":"https://api.github.com/repos/khcr/resj/issues/events{/number}","events_url":"https://api.github.com/repos/khcr/resj/events","assignees_url":"https://api.github.com/repos/khcr/resj/assignees{/user}","branches_url":"https://api.github.com/repos/khcr/resj/branches{/branch}","tags_url":"https://api.github.com/repos/khcr/resj/tags","blobs_url":"https://api.github.com/repos/khcr/resj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khcr/resj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khcr/resj/git/refs{/sha}","trees_url":"https://api.github.com/repos/khcr/resj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khcr/resj/statuses/{sha}","languages_url":"https://api.github.com/repos/khcr/resj/languages","stargazers_url":"https://api.github.com/repos/khcr/resj/stargazers","contributors_url":"https://api.github.com/repos/khcr/resj/contributors","subscribers_url":"https://api.github.com/repos/khcr/resj/subscribers","subscription_url":"https://api.github.com/repos/khcr/resj/subscription","commits_url":"https://api.github.com/repos/khcr/resj/commits{/sha}","git_commits_url":"https://api.github.com/repos/khcr/resj/git/commits{/sha}","comments_url":"https://api.github.com/repos/khcr/resj/comments{/number}","issue_comment_url":"https://api.github.com/repos/khcr/resj/issues/comments/{number}","contents_url":"https://api.github.com/repos/khcr/resj/contents/{+path}","compare_url":"https://api.github.com/repos/khcr/resj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khcr/resj/merges","archive_url":"https://api.github.com/repos/khcr/resj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khcr/resj/downloads","issues_url":"https://api.github.com/repos/khcr/resj/issues{/number}","pulls_url":"https://api.github.com/repos/khcr/resj/pulls{/number}","milestones_url":"https://api.github.com/repos/khcr/resj/milestones{/number}","notifications_url":"https://api.github.com/repos/khcr/resj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khcr/resj/labels{/name}","releases_url":"https://api.github.com/repos/khcr/resj/releases{/id}","created_at":"2013-10-31T12:42:18Z","updated_at":"2014-09-09T21:31:43Z","pushed_at":"2014-11-17T20:24:18Z","git_url":"git://github.com/khcr/resj.git","ssh_url":"git@github.com:khcr/resj.git","clone_url":"https://github.com/khcr/resj.git","svn_url":"https://github.com/khcr/resj","homepage":"www.reseaujeunesse.ch","size":11440,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/khcr/resj/pulls/1"},"html":{"href":"https://github.com/khcr/resj/pull/1"},"issue":{"href":"https://api.github.com/repos/khcr/resj/issues/1"},"comments":{"href":"https://api.github.com/repos/khcr/resj/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/khcr/resj/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/khcr/resj/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/khcr/resj/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/khcr/resj/statuses/ceecaf7cec7e35ba48aa5b71b93cf089cbfedb3b"}}}}