{"action":"created","comment":{"url":"https://api.github.com/repos/esikachev/abc-server/pulls/comments/120545729","pull_request_review_id":42515319,"id":120545729,"diff_hunk":"@@ -4,46 +4,55 @@\n from abc_server import config\n from abc_server.flask import abc_server\n from abc_server.flask import request\n+from abc_server.flask import jsonify\n from abc_server.git import client as git_client\n from abc_server import settings\n from abc_server import utils\n \n \n-def sync_method():\n-    configs = config.read_config()\n-    for item in configs['watch']:\n-        utils.copy_files(item)\n-    git = git_client.GitClient()\n-    git.commit()\n-    git.push()\n-    threading.Timer(24 * 3600, sync_method).start()\n-\n-\n @abc_server.route('/')\n def index():\n-    return ''\n+    return return_200()\n \n \n @abc_server.route('/init', methods=['POST'])\n def init():\n     user = auth.authenticate()\n     repo = user.create_repo()\n+\n     with utils.YamlEditor(settings.CONFIG_PATH) as config:\n         config['repo_url'] = repo.ssh_url\n+\n     git = git_client.GitClient(repo_url=repo.ssh_url)\n     git.clone()\n \n-    return ''\n+    return return_200()\n \n \n @abc_server.route('/add', methods=['POST'])\n def add():\n     with utils.YamlEditor(settings.CONFIG_PATH) as yaml:\n         yaml['watch'].extend(request.json[\"files\"])\n-    return ''\n+\n+    return return_200()\n \n \n @abc_server.route('/sync', methods=['POST'])\n def sync():\n     sync_method()\n-    return ''\n+\n+    return return_200()","path":"abc_server/flask/routes.py","position":55,"original_position":55,"commit_id":"5895de4e5a23a0b8d696d94af27682be70482c14","original_commit_id":"5895de4e5a23a0b8d696d94af27682be70482c14","user":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"body":"in this patch, I try to fix the bug with returning the empty lines. You can file a new bug for it. This is a good case.","created_at":"2017-06-07T06:46:04Z","updated_at":"2017-06-07T06:46:04Z","html_url":"https://github.com/esikachev/abc-server/pull/17#discussion_r120545729","pull_request_url":"https://api.github.com/repos/esikachev/abc-server/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/comments/120545729"},"html":{"href":"https://github.com/esikachev/abc-server/pull/17#discussion_r120545729"},"pull_request":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/esikachev/abc-server/pulls/17","id":123875039,"html_url":"https://github.com/esikachev/abc-server/pull/17","diff_url":"https://github.com/esikachev/abc-server/pull/17.diff","patch_url":"https://github.com/esikachev/abc-server/pull/17.patch","issue_url":"https://api.github.com/repos/esikachev/abc-server/issues/17","number":17,"state":"open","locked":false,"title":"Added handler for 200 code","user":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"body":"We can use json for client creation\r\nclose #16","created_at":"2017-06-04T11:49:14Z","updated_at":"2017-06-07T06:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a81899fed660fb9dea5e45f1f36bafcdaff8f2a7","assignee":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"assignees":[{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/esikachev/abc-server/milestones/1","html_url":"https://github.com/esikachev/abc-server/milestone/1","labels_url":"https://api.github.com/repos/esikachev/abc-server/milestones/1/labels","id":2486579,"number":1,"title":"0.0.1","description":"We can store files and this files available on GitHub for sharing.","creator":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":11,"state":"open","created_at":"2017-04-27T17:18:38Z","updated_at":"2017-06-06T13:22:58Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/esikachev/abc-server/pulls/17/commits","review_comments_url":"https://api.github.com/repos/esikachev/abc-server/pulls/17/comments","review_comment_url":"https://api.github.com/repos/esikachev/abc-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esikachev/abc-server/issues/17/comments","statuses_url":"https://api.github.com/repos/esikachev/abc-server/statuses/5895de4e5a23a0b8d696d94af27682be70482c14","head":{"label":"esikachev:es-response","ref":"es-response","sha":"5895de4e5a23a0b8d696d94af27682be70482c14","user":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"repo":{"id":89621096,"name":"abc-server","full_name":"esikachev/abc-server","owner":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esikachev/abc-server","description":null,"fork":false,"url":"https://api.github.com/repos/esikachev/abc-server","forks_url":"https://api.github.com/repos/esikachev/abc-server/forks","keys_url":"https://api.github.com/repos/esikachev/abc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esikachev/abc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esikachev/abc-server/teams","hooks_url":"https://api.github.com/repos/esikachev/abc-server/hooks","issue_events_url":"https://api.github.com/repos/esikachev/abc-server/issues/events{/number}","events_url":"https://api.github.com/repos/esikachev/abc-server/events","assignees_url":"https://api.github.com/repos/esikachev/abc-server/assignees{/user}","branches_url":"https://api.github.com/repos/esikachev/abc-server/branches{/branch}","tags_url":"https://api.github.com/repos/esikachev/abc-server/tags","blobs_url":"https://api.github.com/repos/esikachev/abc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esikachev/abc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esikachev/abc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/esikachev/abc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esikachev/abc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/esikachev/abc-server/languages","stargazers_url":"https://api.github.com/repos/esikachev/abc-server/stargazers","contributors_url":"https://api.github.com/repos/esikachev/abc-server/contributors","subscribers_url":"https://api.github.com/repos/esikachev/abc-server/subscribers","subscription_url":"https://api.github.com/repos/esikachev/abc-server/subscription","commits_url":"https://api.github.com/repos/esikachev/abc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/esikachev/abc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/esikachev/abc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/esikachev/abc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/esikachev/abc-server/contents/{+path}","compare_url":"https://api.github.com/repos/esikachev/abc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esikachev/abc-server/merges","archive_url":"https://api.github.com/repos/esikachev/abc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esikachev/abc-server/downloads","issues_url":"https://api.github.com/repos/esikachev/abc-server/issues{/number}","pulls_url":"https://api.github.com/repos/esikachev/abc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/esikachev/abc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/esikachev/abc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esikachev/abc-server/labels{/name}","releases_url":"https://api.github.com/repos/esikachev/abc-server/releases{/id}","deployments_url":"https://api.github.com/repos/esikachev/abc-server/deployments","created_at":"2017-04-27T17:01:12Z","updated_at":"2017-04-28T06:06:10Z","pushed_at":"2017-06-06T13:22:58Z","git_url":"git://github.com/esikachev/abc-server.git","ssh_url":"git@github.com:esikachev/abc-server.git","clone_url":"https://github.com/esikachev/abc-server.git","svn_url":"https://github.com/esikachev/abc-server","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"esikachev:master","ref":"master","sha":"ce81ebf8c475d2f54b17468ec3cb5dfc5d078c00","user":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"repo":{"id":89621096,"name":"abc-server","full_name":"esikachev/abc-server","owner":{"login":"esikachev","id":9658588,"avatar_url":"https://avatars3.githubusercontent.com/u/9658588?v=3","gravatar_id":"","url":"https://api.github.com/users/esikachev","html_url":"https://github.com/esikachev","followers_url":"https://api.github.com/users/esikachev/followers","following_url":"https://api.github.com/users/esikachev/following{/other_user}","gists_url":"https://api.github.com/users/esikachev/gists{/gist_id}","starred_url":"https://api.github.com/users/esikachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esikachev/subscriptions","organizations_url":"https://api.github.com/users/esikachev/orgs","repos_url":"https://api.github.com/users/esikachev/repos","events_url":"https://api.github.com/users/esikachev/events{/privacy}","received_events_url":"https://api.github.com/users/esikachev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esikachev/abc-server","description":null,"fork":false,"url":"https://api.github.com/repos/esikachev/abc-server","forks_url":"https://api.github.com/repos/esikachev/abc-server/forks","keys_url":"https://api.github.com/repos/esikachev/abc-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esikachev/abc-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esikachev/abc-server/teams","hooks_url":"https://api.github.com/repos/esikachev/abc-server/hooks","issue_events_url":"https://api.github.com/repos/esikachev/abc-server/issues/events{/number}","events_url":"https://api.github.com/repos/esikachev/abc-server/events","assignees_url":"https://api.github.com/repos/esikachev/abc-server/assignees{/user}","branches_url":"https://api.github.com/repos/esikachev/abc-server/branches{/branch}","tags_url":"https://api.github.com/repos/esikachev/abc-server/tags","blobs_url":"https://api.github.com/repos/esikachev/abc-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esikachev/abc-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esikachev/abc-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/esikachev/abc-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esikachev/abc-server/statuses/{sha}","languages_url":"https://api.github.com/repos/esikachev/abc-server/languages","stargazers_url":"https://api.github.com/repos/esikachev/abc-server/stargazers","contributors_url":"https://api.github.com/repos/esikachev/abc-server/contributors","subscribers_url":"https://api.github.com/repos/esikachev/abc-server/subscribers","subscription_url":"https://api.github.com/repos/esikachev/abc-server/subscription","commits_url":"https://api.github.com/repos/esikachev/abc-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/esikachev/abc-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/esikachev/abc-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/esikachev/abc-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/esikachev/abc-server/contents/{+path}","compare_url":"https://api.github.com/repos/esikachev/abc-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esikachev/abc-server/merges","archive_url":"https://api.github.com/repos/esikachev/abc-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esikachev/abc-server/downloads","issues_url":"https://api.github.com/repos/esikachev/abc-server/issues{/number}","pulls_url":"https://api.github.com/repos/esikachev/abc-server/pulls{/number}","milestones_url":"https://api.github.com/repos/esikachev/abc-server/milestones{/number}","notifications_url":"https://api.github.com/repos/esikachev/abc-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esikachev/abc-server/labels{/name}","releases_url":"https://api.github.com/repos/esikachev/abc-server/releases{/id}","deployments_url":"https://api.github.com/repos/esikachev/abc-server/deployments","created_at":"2017-04-27T17:01:12Z","updated_at":"2017-04-28T06:06:10Z","pushed_at":"2017-06-06T13:22:58Z","git_url":"git://github.com/esikachev/abc-server.git","ssh_url":"git@github.com:esikachev/abc-server.git","clone_url":"https://github.com/esikachev/abc-server.git","svn_url":"https://github.com/esikachev/abc-server","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/17"},"html":{"href":"https://github.com/esikachev/abc-server/pull/17"},"issue":{"href":"https://api.github.com/repos/esikachev/abc-server/issues/17"},"comments":{"href":"https://api.github.com/repos/esikachev/abc-server/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esikachev/abc-server/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/esikachev/abc-server/statuses/5895de4e5a23a0b8d696d94af27682be70482c14"}}}}
{"actor":{"display_login":"esikachev"}}