GitHub PullRequestReviewCommentEvent at 2014-06-17 06:40:38
Repository: quiche
Actor: dai---chi
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/re-born/quiche/pulls/comments/13844956","id":13844956,"diff_hunk":"@@ -1,6 +1,16 @@\n class Comment < ActiveRecord::Base\n+  require 'lib'\n+  include Notification\n+\n   belongs_to :user\n   belongs_to :item\n   validates :content, presence: true\n   default_scope -> { order('created_at DESC') }\n+  after_create :notify_new_comment\n+\n+  private\n+\n+  def notify_new_comment\n+    tweet \"[#{item.title.truncate(50)}]にコメントが付いたよ: 「#{content.truncate(70)}」\"","path":"rails/app/models/comment.rb","position":14,"original_position":14,"commit_id":"4ce4620cd92ea55d925444bf6c4415ec7db2f799","original_commit_id":"4ce4620cd92ea55d925444bf6c4415ec7db2f799","user":{"login":"dai---chi","id":823185,"avatar_url":"https://avatars.githubusercontent.com/u/823185?","gravatar_id":"504debbb75648aa45f26a0e480d890be","url":"https://api.github.com/users/dai---chi","html_url":"https://github.com/dai---chi","followers_url":"https://api.github.com/users/dai---chi/followers","following_url":"https://api.github.com/users/dai---chi/following{/other_user}","gists_url":"https://api.github.com/users/dai---chi/gists{/gist_id}","starred_url":"https://api.github.com/users/dai---chi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dai---chi/subscriptions","organizations_url":"https://api.github.com/users/dai---chi/orgs","repos_url":"https://api.github.com/users/dai---chi/repos","events_url":"https://api.github.com/users/dai---chi/events{/privacy}","received_events_url":"https://api.github.com/users/dai---chi/received_events","type":"User","site_admin":false},"body":"これ日本語が3文字分で計算されてる…？","created_at":"2014-06-17T06:40:38Z","updated_at":"2014-06-17T06:40:38Z","html_url":"https://github.com/re-born/quiche/pull/90#discussion_r13844956","pull_request_url":"https://api.github.com/repos/re-born/quiche/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/re-born/quiche/pulls/comments/13844956"},"html":{"href":"https://github.com/re-born/quiche/pull/90#discussion_r13844956"},"pull_request":{"href":"https://api.github.com/repos/re-born/quiche/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/re-born/quiche/pulls/90","id":17218446,"html_url":"https://github.com/re-born/quiche/pull/90","diff_url":"https://github.com/re-born/quiche/pull/90.diff","patch_url":"https://github.com/re-born/quiche/pull/90.patch","issue_url":"https://api.github.com/repos/re-born/quiche/issues/90","number":90,"state":"open","title":"Refactor Comment#create","user":{"login":"dai---chi","id":823185,"avatar_url":"https://avatars.githubusercontent.com/u/823185?","gravatar_id":"504debbb75648aa45f26a0e480d890be","url":"https://api.github.com/users/dai---chi","html_url":"https://github.com/dai---chi","followers_url":"https://api.github.com/users/dai---chi/followers","following_url":"https://api.github.com/users/dai---chi/following{/other_user}","gists_url":"https://api.github.com/users/dai---chi/gists{/gist_id}","starred_url":"https://api.github.com/users/dai---chi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dai---chi/subscriptions","organizations_url":"https://api.github.com/users/dai---chi/orgs","repos_url":"https://api.github.com/users/dai---chi/repos","events_url":"https://api.github.com/users/dai---chi/events{/privacy}","received_events_url":"https://api.github.com/users/dai---chi/received_events","type":"User","site_admin":false},"body":"Comment#create のリファクタリングですです","created_at":"2014-06-17T06:35:31Z","updated_at":"2014-06-17T06:40:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c7e65ebb6fd95534be57e688b30aab4b2350d62","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/re-born/quiche/pulls/90/commits","review_comments_url":"https://api.github.com/repos/re-born/quiche/pulls/90/comments","review_comment_url":"https://api.github.com/repos/re-born/quiche/pulls/comments/{number}","comments_url":"https://api.github.com/repos/re-born/quiche/issues/90/comments","statuses_url":"https://api.github.com/repos/re-born/quiche/statuses/4ce4620cd92ea55d925444bf6c4415ec7db2f799","head":{"label":"re-born:refactor","ref":"refactor","sha":"4ce4620cd92ea55d925444bf6c4415ec7db2f799","user":{"login":"re-born","id":7098755,"avatar_url":"https://avatars.githubusercontent.com/u/7098755?","gravatar_id":null,"url":"https://api.github.com/users/re-born","html_url":"https://github.com/re-born","followers_url":"https://api.github.com/users/re-born/followers","following_url":"https://api.github.com/users/re-born/following{/other_user}","gists_url":"https://api.github.com/users/re-born/gists{/gist_id}","starred_url":"https://api.github.com/users/re-born/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-born/subscriptions","organizations_url":"https://api.github.com/users/re-born/orgs","repos_url":"https://api.github.com/users/re-born/repos","events_url":"https://api.github.com/users/re-born/events{/privacy}","received_events_url":"https://api.github.com/users/re-born/received_events","type":"Organization","site_admin":false},"repo":{"id":19942078,"name":"quiche","full_name":"re-born/quiche","owner":{"login":"re-born","id":7098755,"avatar_url":"https://avatars.githubusercontent.com/u/7098755?","gravatar_id":null,"url":"https://api.github.com/users/re-born","html_url":"https://github.com/re-born","followers_url":"https://api.github.com/users/re-born/followers","following_url":"https://api.github.com/users/re-born/following{/other_user}","gists_url":"https://api.github.com/users/re-born/gists{/gist_id}","starred_url":"https://api.github.com/users/re-born/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-born/subscriptions","organizations_url":"https://api.github.com/users/re-born/orgs","repos_url":"https://api.github.com/users/re-born/repos","events_url":"https://api.github.com/users/re-born/events{/privacy}","received_events_url":"https://api.github.com/users/re-born/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/re-born/quiche","description":"","fork":false,"url":"https://api.github.com/repos/re-born/quiche","forks_url":"https://api.github.com/repos/re-born/quiche/forks","keys_url":"https://api.github.com/repos/re-born/quiche/keys{/key_id}","collaborators_url":"https://api.github.com/repos/re-born/quiche/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/re-born/quiche/teams","hooks_url":"https://api.github.com/repos/re-born/quiche/hooks","issue_events_url":"https://api.github.com/repos/re-born/quiche/issues/events{/number}","events_url":"https://api.github.com/repos/re-born/quiche/events","assignees_url":"https://api.github.com/repos/re-born/quiche/assignees{/user}","branches_url":"https://api.github.com/repos/re-born/quiche/branches{/branch}","tags_url":"https://api.github.com/repos/re-born/quiche/tags","blobs_url":"https://api.github.com/repos/re-born/quiche/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/re-born/quiche/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/re-born/quiche/git/refs{/sha}","trees_url":"https://api.github.com/repos/re-born/quiche/git/trees{/sha}","statuses_url":"https://api.github.com/repos/re-born/quiche/statuses/{sha}","languages_url":"https://api.github.com/repos/re-born/quiche/languages","stargazers_url":"https://api.github.com/repos/re-born/quiche/stargazers","contributors_url":"https://api.github.com/repos/re-born/quiche/contributors","subscribers_url":"https://api.github.com/repos/re-born/quiche/subscribers","subscription_url":"https://api.github.com/repos/re-born/quiche/subscription","commits_url":"https://api.github.com/repos/re-born/quiche/commits{/sha}","git_commits_url":"https://api.github.com/repos/re-born/quiche/git/commits{/sha}","comments_url":"https://api.github.com/repos/re-born/quiche/comments{/number}","issue_comment_url":"https://api.github.com/repos/re-born/quiche/issues/comments/{number}","contents_url":"https://api.github.com/repos/re-born/quiche/contents/{+path}","compare_url":"https://api.github.com/repos/re-born/quiche/compare/{base}...{head}","merges_url":"https://api.github.com/repos/re-born/quiche/merges","archive_url":"https://api.github.com/repos/re-born/quiche/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/re-born/quiche/downloads","issues_url":"https://api.github.com/repos/re-born/quiche/issues{/number}","pulls_url":"https://api.github.com/repos/re-born/quiche/pulls{/number}","milestones_url":"https://api.github.com/repos/re-born/quiche/milestones{/number}","notifications_url":"https://api.github.com/repos/re-born/quiche/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/re-born/quiche/labels{/name}","releases_url":"https://api.github.com/repos/re-born/quiche/releases{/id}","created_at":"2014-05-19T13:05:18Z","updated_at":"2014-06-17T06:39:26Z","pushed_at":"2014-06-17T06:39:25Z","git_url":"git://github.com/re-born/quiche.git","ssh_url":"git@github.com:re-born/quiche.git","clone_url":"https://github.com/re-born/quiche.git","svn_url":"https://github.com/re-born/quiche","homepage":null,"size":31163,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":39,"forks":2,"open_issues":39,"watchers":0,"default_branch":"master"}},"base":{"label":"re-born:master","ref":"master","sha":"24f6c13b727666fe7d93aa07e3e8ecddffeb3100","user":{"login":"re-born","id":7098755,"avatar_url":"https://avatars.githubusercontent.com/u/7098755?","gravatar_id":null,"url":"https://api.github.com/users/re-born","html_url":"https://github.com/re-born","followers_url":"https://api.github.com/users/re-born/followers","following_url":"https://api.github.com/users/re-born/following{/other_user}","gists_url":"https://api.github.com/users/re-born/gists{/gist_id}","starred_url":"https://api.github.com/users/re-born/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-born/subscriptions","organizations_url":"https://api.github.com/users/re-born/orgs","repos_url":"https://api.github.com/users/re-born/repos","events_url":"https://api.github.com/users/re-born/events{/privacy}","received_events_url":"https://api.github.com/users/re-born/received_events","type":"Organization","site_admin":false},"repo":{"id":19942078,"name":"quiche","full_name":"re-born/quiche","owner":{"login":"re-born","id":7098755,"avatar_url":"https://avatars.githubusercontent.com/u/7098755?","gravatar_id":null,"url":"https://api.github.com/users/re-born","html_url":"https://github.com/re-born","followers_url":"https://api.github.com/users/re-born/followers","following_url":"https://api.github.com/users/re-born/following{/other_user}","gists_url":"https://api.github.com/users/re-born/gists{/gist_id}","starred_url":"https://api.github.com/users/re-born/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/re-born/subscriptions","organizations_url":"https://api.github.com/users/re-born/orgs","repos_url":"https://api.github.com/users/re-born/repos","events_url":"https://api.github.com/users/re-born/events{/privacy}","received_events_url":"https://api.github.com/users/re-born/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/re-born/quiche","description":"","fork":false,"url":"https://api.github.com/repos/re-born/quiche","forks_url":"https://api.github.com/repos/re-born/quiche/forks","keys_url":"https://api.github.com/repos/re-born/quiche/keys{/key_id}","collaborators_url":"https://api.github.com/repos/re-born/quiche/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/re-born/quiche/teams","hooks_url":"https://api.github.com/repos/re-born/quiche/hooks","issue_events_url":"https://api.github.com/repos/re-born/quiche/issues/events{/number}","events_url":"https://api.github.com/repos/re-born/quiche/events","assignees_url":"https://api.github.com/repos/re-born/quiche/assignees{/user}","branches_url":"https://api.github.com/repos/re-born/quiche/branches{/branch}","tags_url":"https://api.github.com/repos/re-born/quiche/tags","blobs_url":"https://api.github.com/repos/re-born/quiche/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/re-born/quiche/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/re-born/quiche/git/refs{/sha}","trees_url":"https://api.github.com/repos/re-born/quiche/git/trees{/sha}","statuses_url":"https://api.github.com/repos/re-born/quiche/statuses/{sha}","languages_url":"https://api.github.com/repos/re-born/quiche/languages","stargazers_url":"https://api.github.com/repos/re-born/quiche/stargazers","contributors_url":"https://api.github.com/repos/re-born/quiche/contributors","subscribers_url":"https://api.github.com/repos/re-born/quiche/subscribers","subscription_url":"https://api.github.com/repos/re-born/quiche/subscription","commits_url":"https://api.github.com/repos/re-born/quiche/commits{/sha}","git_commits_url":"https://api.github.com/repos/re-born/quiche/git/commits{/sha}","comments_url":"https://api.github.com/repos/re-born/quiche/comments{/number}","issue_comment_url":"https://api.github.com/repos/re-born/quiche/issues/comments/{number}","contents_url":"https://api.github.com/repos/re-born/quiche/contents/{+path}","compare_url":"https://api.github.com/repos/re-born/quiche/compare/{base}...{head}","merges_url":"https://api.github.com/repos/re-born/quiche/merges","archive_url":"https://api.github.com/repos/re-born/quiche/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/re-born/quiche/downloads","issues_url":"https://api.github.com/repos/re-born/quiche/issues{/number}","pulls_url":"https://api.github.com/repos/re-born/quiche/pulls{/number}","milestones_url":"https://api.github.com/repos/re-born/quiche/milestones{/number}","notifications_url":"https://api.github.com/repos/re-born/quiche/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/re-born/quiche/labels{/name}","releases_url":"https://api.github.com/repos/re-born/quiche/releases{/id}","created_at":"2014-05-19T13:05:18Z","updated_at":"2014-06-17T06:39:26Z","pushed_at":"2014-06-17T06:39:25Z","git_url":"git://github.com/re-born/quiche.git","ssh_url":"git@github.com:re-born/quiche.git","clone_url":"https://github.com/re-born/quiche.git","svn_url":"https://github.com/re-born/quiche","homepage":null,"size":31163,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":39,"forks":2,"open_issues":39,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/re-born/quiche/pulls/90"},"html":{"href":"https://github.com/re-born/quiche/pull/90"},"issue":{"href":"https://api.github.com/repos/re-born/quiche/issues/90"},"comments":{"href":"https://api.github.com/repos/re-born/quiche/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/re-born/quiche/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/re-born/quiche/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/re-born/quiche/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/re-born/quiche/statuses/4ce4620cd92ea55d925444bf6c4415ec7db2f799"}}}}