GitHub PullRequestReviewCommentEvent at 2014-08-23 03:37:33
Repository: kajaeru
Actor: to0526
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/comments/16628435","id":16628435,"diff_hunk":"@@ -0,0 +1,21 @@\n+# -*- coding: utf-8 -*-\n+\n+require 'open-uri'\n+\n+res = open('https://api.github.com/repos/yochiyochirb/meetups/stats/contributors')\n+\n+status, msg = res.status \n+\n+if status == '200'\n+  contributors = ActiveSupport::JSON.decode res.read\n+  contributors.each { |contributor|\n+    author = contributor['author']\n+    unless Member.find_by_uid(author['id'])","path":"lib/batch/insert_to_members_from_github_contributors.rb","position":13,"original_position":13,"commit_id":"8bcfa0b39ccf255517375372c3b6eae7b87fda8e","original_commit_id":"8bcfa0b39ccf255517375372c3b6eae7b87fda8e","user":{"login":"to0526","id":1925244,"avatar_url":"https://avatars.githubusercontent.com/u/1925244?v=2","gravatar_id":"eaadb0068d3a3162fe9e668887a6f7cc","url":"https://api.github.com/users/to0526","html_url":"https://github.com/to0526","followers_url":"https://api.github.com/users/to0526/followers","following_url":"https://api.github.com/users/to0526/following{/other_user}","gists_url":"https://api.github.com/users/to0526/gists{/gist_id}","starred_url":"https://api.github.com/users/to0526/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/to0526/subscriptions","organizations_url":"https://api.github.com/users/to0526/orgs","repos_url":"https://api.github.com/users/to0526/repos","events_url":"https://api.github.com/users/to0526/events{/privacy}","received_events_url":"https://api.github.com/users/to0526/received_events","type":"User","site_admin":false},"body":"`Member.find_by(uid: author['id'])`","created_at":"2014-08-23T03:37:33Z","updated_at":"2014-08-23T03:37:33Z","html_url":"https://github.com/yochiyochirb/kajaeru/pull/49#discussion_r16628435","pull_request_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/comments/16628435"},"html":{"href":"https://github.com/yochiyochirb/kajaeru/pull/49#discussion_r16628435"},"pull_request":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49","id":20151847,"html_url":"https://github.com/yochiyochirb/kajaeru/pull/49","diff_url":"https://github.com/yochiyochirb/kajaeru/pull/49.diff","patch_url":"https://github.com/yochiyochirb/kajaeru/pull/49.patch","issue_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/49","number":49,"state":"open","locked":false,"title":"Github の yochiyochirb メンバーのデータを取得する","user":{"login":"ta1kt0me","id":1412864,"avatar_url":"https://avatars.githubusercontent.com/u/1412864?v=2","gravatar_id":"9bd07df36e3b0ac50c126ad69ee0bffa","url":"https://api.github.com/users/ta1kt0me","html_url":"https://github.com/ta1kt0me","followers_url":"https://api.github.com/users/ta1kt0me/followers","following_url":"https://api.github.com/users/ta1kt0me/following{/other_user}","gists_url":"https://api.github.com/users/ta1kt0me/gists{/gist_id}","starred_url":"https://api.github.com/users/ta1kt0me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta1kt0me/subscriptions","organizations_url":"https://api.github.com/users/ta1kt0me/orgs","repos_url":"https://api.github.com/users/ta1kt0me/repos","events_url":"https://api.github.com/users/ta1kt0me/events{/privacy}","received_events_url":"https://api.github.com/users/ta1kt0me/received_events","type":"User","site_admin":false},"body":"# 概要\r\nGithub の yochiyochirb メンバーのデータを取得する\r\n\r\n# Issue\r\n#44\r\n\r\n# TODO\r\n- [x] rails runner で実行するバッチ作成\r\n- [x] Githubから取得したデータをMemberテーブルに登録する\r\n\r\n# 不安なこと\r\n実行方法をwikiに記載したほうがいいのかな？\r\n","created_at":"2014-08-22T04:01:17Z","updated_at":"2014-08-23T03:37:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01291ae512998b4ac154f37c0462c9b610af9de4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49/commits","review_comments_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49/comments","review_comment_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/comments/{number}","comments_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/49/comments","statuses_url":"https://api.github.com/repos/yochiyochirb/kajaeru/statuses/8bcfa0b39ccf255517375372c3b6eae7b87fda8e","head":{"label":"yochiyochirb:batch-insert-member-from-contributors","ref":"batch-insert-member-from-contributors","sha":"8bcfa0b39ccf255517375372c3b6eae7b87fda8e","user":{"login":"yochiyochirb","id":6112628,"avatar_url":"https://avatars.githubusercontent.com/u/6112628?v=2","gravatar_id":null,"url":"https://api.github.com/users/yochiyochirb","html_url":"https://github.com/yochiyochirb","followers_url":"https://api.github.com/users/yochiyochirb/followers","following_url":"https://api.github.com/users/yochiyochirb/following{/other_user}","gists_url":"https://api.github.com/users/yochiyochirb/gists{/gist_id}","starred_url":"https://api.github.com/users/yochiyochirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yochiyochirb/subscriptions","organizations_url":"https://api.github.com/users/yochiyochirb/orgs","repos_url":"https://api.github.com/users/yochiyochirb/repos","events_url":"https://api.github.com/users/yochiyochirb/events{/privacy}","received_events_url":"https://api.github.com/users/yochiyochirb/received_events","type":"Organization","site_admin":false},"repo":{"id":22510813,"name":"kajaeru","full_name":"yochiyochirb/kajaeru","owner":{"login":"yochiyochirb","id":6112628,"avatar_url":"https://avatars.githubusercontent.com/u/6112628?v=2","gravatar_id":null,"url":"https://api.github.com/users/yochiyochirb","html_url":"https://github.com/yochiyochirb","followers_url":"https://api.github.com/users/yochiyochirb/followers","following_url":"https://api.github.com/users/yochiyochirb/following{/other_user}","gists_url":"https://api.github.com/users/yochiyochirb/gists{/gist_id}","starred_url":"https://api.github.com/users/yochiyochirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yochiyochirb/subscriptions","organizations_url":"https://api.github.com/users/yochiyochirb/orgs","repos_url":"https://api.github.com/users/yochiyochirb/repos","events_url":"https://api.github.com/users/yochiyochirb/events{/privacy}","received_events_url":"https://api.github.com/users/yochiyochirb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yochiyochirb/kajaeru","description":"","fork":false,"url":"https://api.github.com/repos/yochiyochirb/kajaeru","forks_url":"https://api.github.com/repos/yochiyochirb/kajaeru/forks","keys_url":"https://api.github.com/repos/yochiyochirb/kajaeru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yochiyochirb/kajaeru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yochiyochirb/kajaeru/teams","hooks_url":"https://api.github.com/repos/yochiyochirb/kajaeru/hooks","issue_events_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/events{/number}","events_url":"https://api.github.com/repos/yochiyochirb/kajaeru/events","assignees_url":"https://api.github.com/repos/yochiyochirb/kajaeru/assignees{/user}","branches_url":"https://api.github.com/repos/yochiyochirb/kajaeru/branches{/branch}","tags_url":"https://api.github.com/repos/yochiyochirb/kajaeru/tags","blobs_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/refs{/sha}","trees_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yochiyochirb/kajaeru/statuses/{sha}","languages_url":"https://api.github.com/repos/yochiyochirb/kajaeru/languages","stargazers_url":"https://api.github.com/repos/yochiyochirb/kajaeru/stargazers","contributors_url":"https://api.github.com/repos/yochiyochirb/kajaeru/contributors","subscribers_url":"https://api.github.com/repos/yochiyochirb/kajaeru/subscribers","subscription_url":"https://api.github.com/repos/yochiyochirb/kajaeru/subscription","commits_url":"https://api.github.com/repos/yochiyochirb/kajaeru/commits{/sha}","git_commits_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/commits{/sha}","comments_url":"https://api.github.com/repos/yochiyochirb/kajaeru/comments{/number}","issue_comment_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/comments/{number}","contents_url":"https://api.github.com/repos/yochiyochirb/kajaeru/contents/{+path}","compare_url":"https://api.github.com/repos/yochiyochirb/kajaeru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yochiyochirb/kajaeru/merges","archive_url":"https://api.github.com/repos/yochiyochirb/kajaeru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yochiyochirb/kajaeru/downloads","issues_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues{/number}","pulls_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls{/number}","milestones_url":"https://api.github.com/repos/yochiyochirb/kajaeru/milestones{/number}","notifications_url":"https://api.github.com/repos/yochiyochirb/kajaeru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yochiyochirb/kajaeru/labels{/name}","releases_url":"https://api.github.com/repos/yochiyochirb/kajaeru/releases{/id}","created_at":"2014-08-01T13:29:32Z","updated_at":"2014-08-21T00:28:40Z","pushed_at":"2014-08-23T01:32:25Z","git_url":"git://github.com/yochiyochirb/kajaeru.git","ssh_url":"git@github.com:yochiyochirb/kajaeru.git","clone_url":"https://github.com/yochiyochirb/kajaeru.git","svn_url":"https://github.com/yochiyochirb/kajaeru","homepage":null,"size":1328,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":3,"default_branch":"master"}},"base":{"label":"yochiyochirb:master","ref":"master","sha":"2982de8ffc4035f2ab8cfc9292ec7bb3027e7b4d","user":{"login":"yochiyochirb","id":6112628,"avatar_url":"https://avatars.githubusercontent.com/u/6112628?v=2","gravatar_id":null,"url":"https://api.github.com/users/yochiyochirb","html_url":"https://github.com/yochiyochirb","followers_url":"https://api.github.com/users/yochiyochirb/followers","following_url":"https://api.github.com/users/yochiyochirb/following{/other_user}","gists_url":"https://api.github.com/users/yochiyochirb/gists{/gist_id}","starred_url":"https://api.github.com/users/yochiyochirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yochiyochirb/subscriptions","organizations_url":"https://api.github.com/users/yochiyochirb/orgs","repos_url":"https://api.github.com/users/yochiyochirb/repos","events_url":"https://api.github.com/users/yochiyochirb/events{/privacy}","received_events_url":"https://api.github.com/users/yochiyochirb/received_events","type":"Organization","site_admin":false},"repo":{"id":22510813,"name":"kajaeru","full_name":"yochiyochirb/kajaeru","owner":{"login":"yochiyochirb","id":6112628,"avatar_url":"https://avatars.githubusercontent.com/u/6112628?v=2","gravatar_id":null,"url":"https://api.github.com/users/yochiyochirb","html_url":"https://github.com/yochiyochirb","followers_url":"https://api.github.com/users/yochiyochirb/followers","following_url":"https://api.github.com/users/yochiyochirb/following{/other_user}","gists_url":"https://api.github.com/users/yochiyochirb/gists{/gist_id}","starred_url":"https://api.github.com/users/yochiyochirb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yochiyochirb/subscriptions","organizations_url":"https://api.github.com/users/yochiyochirb/orgs","repos_url":"https://api.github.com/users/yochiyochirb/repos","events_url":"https://api.github.com/users/yochiyochirb/events{/privacy}","received_events_url":"https://api.github.com/users/yochiyochirb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yochiyochirb/kajaeru","description":"","fork":false,"url":"https://api.github.com/repos/yochiyochirb/kajaeru","forks_url":"https://api.github.com/repos/yochiyochirb/kajaeru/forks","keys_url":"https://api.github.com/repos/yochiyochirb/kajaeru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yochiyochirb/kajaeru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yochiyochirb/kajaeru/teams","hooks_url":"https://api.github.com/repos/yochiyochirb/kajaeru/hooks","issue_events_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/events{/number}","events_url":"https://api.github.com/repos/yochiyochirb/kajaeru/events","assignees_url":"https://api.github.com/repos/yochiyochirb/kajaeru/assignees{/user}","branches_url":"https://api.github.com/repos/yochiyochirb/kajaeru/branches{/branch}","tags_url":"https://api.github.com/repos/yochiyochirb/kajaeru/tags","blobs_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/refs{/sha}","trees_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yochiyochirb/kajaeru/statuses/{sha}","languages_url":"https://api.github.com/repos/yochiyochirb/kajaeru/languages","stargazers_url":"https://api.github.com/repos/yochiyochirb/kajaeru/stargazers","contributors_url":"https://api.github.com/repos/yochiyochirb/kajaeru/contributors","subscribers_url":"https://api.github.com/repos/yochiyochirb/kajaeru/subscribers","subscription_url":"https://api.github.com/repos/yochiyochirb/kajaeru/subscription","commits_url":"https://api.github.com/repos/yochiyochirb/kajaeru/commits{/sha}","git_commits_url":"https://api.github.com/repos/yochiyochirb/kajaeru/git/commits{/sha}","comments_url":"https://api.github.com/repos/yochiyochirb/kajaeru/comments{/number}","issue_comment_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/comments/{number}","contents_url":"https://api.github.com/repos/yochiyochirb/kajaeru/contents/{+path}","compare_url":"https://api.github.com/repos/yochiyochirb/kajaeru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yochiyochirb/kajaeru/merges","archive_url":"https://api.github.com/repos/yochiyochirb/kajaeru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yochiyochirb/kajaeru/downloads","issues_url":"https://api.github.com/repos/yochiyochirb/kajaeru/issues{/number}","pulls_url":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls{/number}","milestones_url":"https://api.github.com/repos/yochiyochirb/kajaeru/milestones{/number}","notifications_url":"https://api.github.com/repos/yochiyochirb/kajaeru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yochiyochirb/kajaeru/labels{/name}","releases_url":"https://api.github.com/repos/yochiyochirb/kajaeru/releases{/id}","created_at":"2014-08-01T13:29:32Z","updated_at":"2014-08-21T00:28:40Z","pushed_at":"2014-08-23T01:32:25Z","git_url":"git://github.com/yochiyochirb/kajaeru.git","ssh_url":"git@github.com:yochiyochirb/kajaeru.git","clone_url":"https://github.com/yochiyochirb/kajaeru.git","svn_url":"https://github.com/yochiyochirb/kajaeru","homepage":null,"size":1328,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49"},"html":{"href":"https://github.com/yochiyochirb/kajaeru/pull/49"},"issue":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/49"},"comments":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/yochiyochirb/kajaeru/statuses/8bcfa0b39ccf255517375372c3b6eae7b87fda8e"}}}}