{"action":"created","comment":{"url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/comments/33419885","id":33419885,"diff_hunk":"@@ -0,0 +1,27 @@\n+import os\n+import json\n+import re\n+from functools import partial\n+\n+from tornado.httpclient import AsyncHTTPClient, HTTPRequest\n+\n+GITCAFE_URL = 'https://gitcafe.com/%s/commits/%s'\n+gitcafe_pattern = re.compile(r'datetime=\"([^\"]*)\"')\n+\n+def get_version(name, conf, callback):\n+  repo = conf.get('gitcafe')\n+  print(repo)\n+  br = conf.get('branch', 'master')\n+  url = GITCAFE_URL % (repo, br)\n+  print(url)","path":"nvchecker/source/gitcafe.py","position":16,"original_position":16,"commit_id":"e372cfca33153bb16df280475365d83297cbadcb","original_commit_id":"e372cfca33153bb16df280475365d83297cbadcb","user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"body":"开发过程中的调试输出应当删掉。如果是为了以后调查问题方便，请使用 logging 模块。","created_at":"2015-06-28T07:43:44Z","updated_at":"2015-06-28T07:43:44Z","html_url":"https://github.com/lilydjwg/nvchecker/pull/9#discussion_r33419885","pull_request_url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/comments/33419885"},"html":{"href":"https://github.com/lilydjwg/nvchecker/pull/9#discussion_r33419885"},"pull_request":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9","id":38721568,"html_url":"https://github.com/lilydjwg/nvchecker/pull/9","diff_url":"https://github.com/lilydjwg/nvchecker/pull/9.diff","patch_url":"https://github.com/lilydjwg/nvchecker/pull/9.patch","issue_url":"https://api.github.com/repos/lilydjwg/nvchecker/issues/9","number":9,"state":"open","locked":false,"title":"simple gitcafe.com support","user":{"login":"petronny","id":5357170,"avatar_url":"https://avatars.githubusercontent.com/u/5357170?v=3","gravatar_id":"","url":"https://api.github.com/users/petronny","html_url":"https://github.com/petronny","followers_url":"https://api.github.com/users/petronny/followers","following_url":"https://api.github.com/users/petronny/following{/other_user}","gists_url":"https://api.github.com/users/petronny/gists{/gist_id}","starred_url":"https://api.github.com/users/petronny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petronny/subscriptions","organizations_url":"https://api.github.com/users/petronny/orgs","repos_url":"https://api.github.com/users/petronny/repos","events_url":"https://api.github.com/users/petronny/events{/privacy}","received_events_url":"https://api.github.com/users/petronny/received_events","type":"User","site_admin":false},"body":"gitcafe没有API, 所以就直接扒网页了。\r\n\r\n有关授权token部分的不太清楚，不怎么用gitcafe。","created_at":"2015-06-28T07:37:59Z","updated_at":"2015-06-28T07:43:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16073c11750b4dd85d4a62b0b8e34d20afd814f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9/commits","review_comments_url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9/comments","review_comment_url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lilydjwg/nvchecker/issues/9/comments","statuses_url":"https://api.github.com/repos/lilydjwg/nvchecker/statuses/e372cfca33153bb16df280475365d83297cbadcb","head":{"label":"petronny:master","ref":"master","sha":"e372cfca33153bb16df280475365d83297cbadcb","user":{"login":"petronny","id":5357170,"avatar_url":"https://avatars.githubusercontent.com/u/5357170?v=3","gravatar_id":"","url":"https://api.github.com/users/petronny","html_url":"https://github.com/petronny","followers_url":"https://api.github.com/users/petronny/followers","following_url":"https://api.github.com/users/petronny/following{/other_user}","gists_url":"https://api.github.com/users/petronny/gists{/gist_id}","starred_url":"https://api.github.com/users/petronny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petronny/subscriptions","organizations_url":"https://api.github.com/users/petronny/orgs","repos_url":"https://api.github.com/users/petronny/repos","events_url":"https://api.github.com/users/petronny/events{/privacy}","received_events_url":"https://api.github.com/users/petronny/received_events","type":"User","site_admin":false},"repo":{"id":38165488,"name":"nvchecker","full_name":"petronny/nvchecker","owner":{"login":"petronny","id":5357170,"avatar_url":"https://avatars.githubusercontent.com/u/5357170?v=3","gravatar_id":"","url":"https://api.github.com/users/petronny","html_url":"https://github.com/petronny","followers_url":"https://api.github.com/users/petronny/followers","following_url":"https://api.github.com/users/petronny/following{/other_user}","gists_url":"https://api.github.com/users/petronny/gists{/gist_id}","starred_url":"https://api.github.com/users/petronny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petronny/subscriptions","organizations_url":"https://api.github.com/users/petronny/orgs","repos_url":"https://api.github.com/users/petronny/repos","events_url":"https://api.github.com/users/petronny/events{/privacy}","received_events_url":"https://api.github.com/users/petronny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/petronny/nvchecker","description":"New version checker for software","fork":true,"url":"https://api.github.com/repos/petronny/nvchecker","forks_url":"https://api.github.com/repos/petronny/nvchecker/forks","keys_url":"https://api.github.com/repos/petronny/nvchecker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/petronny/nvchecker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/petronny/nvchecker/teams","hooks_url":"https://api.github.com/repos/petronny/nvchecker/hooks","issue_events_url":"https://api.github.com/repos/petronny/nvchecker/issues/events{/number}","events_url":"https://api.github.com/repos/petronny/nvchecker/events","assignees_url":"https://api.github.com/repos/petronny/nvchecker/assignees{/user}","branches_url":"https://api.github.com/repos/petronny/nvchecker/branches{/branch}","tags_url":"https://api.github.com/repos/petronny/nvchecker/tags","blobs_url":"https://api.github.com/repos/petronny/nvchecker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/petronny/nvchecker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/petronny/nvchecker/git/refs{/sha}","trees_url":"https://api.github.com/repos/petronny/nvchecker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/petronny/nvchecker/statuses/{sha}","languages_url":"https://api.github.com/repos/petronny/nvchecker/languages","stargazers_url":"https://api.github.com/repos/petronny/nvchecker/stargazers","contributors_url":"https://api.github.com/repos/petronny/nvchecker/contributors","subscribers_url":"https://api.github.com/repos/petronny/nvchecker/subscribers","subscription_url":"https://api.github.com/repos/petronny/nvchecker/subscription","commits_url":"https://api.github.com/repos/petronny/nvchecker/commits{/sha}","git_commits_url":"https://api.github.com/repos/petronny/nvchecker/git/commits{/sha}","comments_url":"https://api.github.com/repos/petronny/nvchecker/comments{/number}","issue_comment_url":"https://api.github.com/repos/petronny/nvchecker/issues/comments{/number}","contents_url":"https://api.github.com/repos/petronny/nvchecker/contents/{+path}","compare_url":"https://api.github.com/repos/petronny/nvchecker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/petronny/nvchecker/merges","archive_url":"https://api.github.com/repos/petronny/nvchecker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/petronny/nvchecker/downloads","issues_url":"https://api.github.com/repos/petronny/nvchecker/issues{/number}","pulls_url":"https://api.github.com/repos/petronny/nvchecker/pulls{/number}","milestones_url":"https://api.github.com/repos/petronny/nvchecker/milestones{/number}","notifications_url":"https://api.github.com/repos/petronny/nvchecker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/petronny/nvchecker/labels{/name}","releases_url":"https://api.github.com/repos/petronny/nvchecker/releases{/id}","created_at":"2015-06-27T15:46:08Z","updated_at":"2015-06-27T15:46:08Z","pushed_at":"2015-06-28T07:36:07Z","git_url":"git://github.com/petronny/nvchecker.git","ssh_url":"git@github.com:petronny/nvchecker.git","clone_url":"https://github.com/petronny/nvchecker.git","svn_url":"https://github.com/petronny/nvchecker","homepage":null,"size":910,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lilydjwg:master","ref":"master","sha":"00978b2a5bd1bab6692bf30c797139cfe88d8e7c","user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"repo":{"id":10294702,"name":"nvchecker","full_name":"lilydjwg/nvchecker","owner":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lilydjwg/nvchecker","description":"New version checker for software","fork":false,"url":"https://api.github.com/repos/lilydjwg/nvchecker","forks_url":"https://api.github.com/repos/lilydjwg/nvchecker/forks","keys_url":"https://api.github.com/repos/lilydjwg/nvchecker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lilydjwg/nvchecker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lilydjwg/nvchecker/teams","hooks_url":"https://api.github.com/repos/lilydjwg/nvchecker/hooks","issue_events_url":"https://api.github.com/repos/lilydjwg/nvchecker/issues/events{/number}","events_url":"https://api.github.com/repos/lilydjwg/nvchecker/events","assignees_url":"https://api.github.com/repos/lilydjwg/nvchecker/assignees{/user}","branches_url":"https://api.github.com/repos/lilydjwg/nvchecker/branches{/branch}","tags_url":"https://api.github.com/repos/lilydjwg/nvchecker/tags","blobs_url":"https://api.github.com/repos/lilydjwg/nvchecker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lilydjwg/nvchecker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lilydjwg/nvchecker/git/refs{/sha}","trees_url":"https://api.github.com/repos/lilydjwg/nvchecker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lilydjwg/nvchecker/statuses/{sha}","languages_url":"https://api.github.com/repos/lilydjwg/nvchecker/languages","stargazers_url":"https://api.github.com/repos/lilydjwg/nvchecker/stargazers","contributors_url":"https://api.github.com/repos/lilydjwg/nvchecker/contributors","subscribers_url":"https://api.github.com/repos/lilydjwg/nvchecker/subscribers","subscription_url":"https://api.github.com/repos/lilydjwg/nvchecker/subscription","commits_url":"https://api.github.com/repos/lilydjwg/nvchecker/commits{/sha}","git_commits_url":"https://api.github.com/repos/lilydjwg/nvchecker/git/commits{/sha}","comments_url":"https://api.github.com/repos/lilydjwg/nvchecker/comments{/number}","issue_comment_url":"https://api.github.com/repos/lilydjwg/nvchecker/issues/comments{/number}","contents_url":"https://api.github.com/repos/lilydjwg/nvchecker/contents/{+path}","compare_url":"https://api.github.com/repos/lilydjwg/nvchecker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lilydjwg/nvchecker/merges","archive_url":"https://api.github.com/repos/lilydjwg/nvchecker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lilydjwg/nvchecker/downloads","issues_url":"https://api.github.com/repos/lilydjwg/nvchecker/issues{/number}","pulls_url":"https://api.github.com/repos/lilydjwg/nvchecker/pulls{/number}","milestones_url":"https://api.github.com/repos/lilydjwg/nvchecker/milestones{/number}","notifications_url":"https://api.github.com/repos/lilydjwg/nvchecker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lilydjwg/nvchecker/labels{/name}","releases_url":"https://api.github.com/repos/lilydjwg/nvchecker/releases{/id}","created_at":"2013-05-26T07:02:08Z","updated_at":"2015-04-18T10:59:42Z","pushed_at":"2015-06-28T07:37:59Z","git_url":"git://github.com/lilydjwg/nvchecker.git","ssh_url":"git@github.com:lilydjwg/nvchecker.git","clone_url":"https://github.com/lilydjwg/nvchecker.git","svn_url":"https://github.com/lilydjwg/nvchecker","homepage":null,"size":910,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9"},"html":{"href":"https://github.com/lilydjwg/nvchecker/pull/9"},"issue":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/issues/9"},"comments":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/lilydjwg/nvchecker/statuses/e372cfca33153bb16df280475365d83297cbadcb"}}}}