{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments/120543468","pull_request_review_id":42495136,"id":120543468,"diff_hunk":"@@ -0,0 +1,131 @@\n+package paddlecloud","path":"go/paddlecloud/pfsls.go","position":1,"original_position":1,"commit_id":"24858916314068ce9f36b5ad5bb19eb13a7ffdfb","original_commit_id":"24858916314068ce9f36b5ad5bb19eb13a7ffdfb","user":{"login":"typhoonzero","id":13348433,"avatar_url":"https://avatars2.githubusercontent.com/u/13348433?v=3","gravatar_id":"","url":"https://api.github.com/users/typhoonzero","html_url":"https://github.com/typhoonzero","followers_url":"https://api.github.com/users/typhoonzero/followers","following_url":"https://api.github.com/users/typhoonzero/following{/other_user}","gists_url":"https://api.github.com/users/typhoonzero/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoonzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoonzero/subscriptions","organizations_url":"https://api.github.com/users/typhoonzero/orgs","repos_url":"https://api.github.com/users/typhoonzero/repos","events_url":"https://api.github.com/users/typhoonzero/events{/privacy}","received_events_url":"https://api.github.com/users/typhoonzero/received_events","type":"User","site_admin":false},"body":"Can we merge content of these files(`pfscp.go`, `pfsls.go`, `pfsmkdir.go`, `pfsrm.go`) to `filemanager/pfsmodules/*.go`?\r\n\r\nFor example, in `ls.go`:\r\n```go\r\n// LsCmd means LsCommand structure.\r\ntype LsCmd struct {\r\n\tMethod string\r\n\tR      bool\r\n\tArgs   []string\r\n}\r\n// for subcommand\r\nfunc (*LsCmd) Name() string { return \"ls\" }\r\nfunc (*LsCommand) Synopsis() string { return \"List files on PaddlePaddle Cloud\" }\r\n...\r\n// original command implementations\r\nfunc (p *LsCmd) ToURLParam() url.Values {\r\n...\r\n```\r\n\r\nIn `cmd/paddlecloud/paddlecloud.go`:\r\n```go\r\nsubcommands.Register(&pfsmod.LsCmd{}, \"\")\r\n```","created_at":"2017-06-07T06:27:08Z","updated_at":"2017-06-07T06:27:39Z","html_url":"https://github.com/PaddlePaddle/cloud/pull/112#discussion_r120543468","pull_request_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments/120543468"},"html":{"href":"https://github.com/PaddlePaddle/cloud/pull/112#discussion_r120543468"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112","id":122967548,"html_url":"https://github.com/PaddlePaddle/cloud/pull/112","diff_url":"https://github.com/PaddlePaddle/cloud/pull/112.diff","patch_url":"https://github.com/PaddlePaddle/cloud/pull/112.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/112","number":112,"state":"open","locked":false,"title":"FileManager","user":{"login":"gongweibao","id":10721757,"avatar_url":"https://avatars0.githubusercontent.com/u/10721757?v=3","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-30T03:49:12Z","updated_at":"2017-06-07T06:27:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bbac104f8e68f8fb8dfa58c57abb3d4d859f003","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/112/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/24858916314068ce9f36b5ad5bb19eb13a7ffdfb","head":{"label":"gongweibao:filemanager2","ref":"filemanager2","sha":"24858916314068ce9f36b5ad5bb19eb13a7ffdfb","user":{"login":"gongweibao","id":10721757,"avatar_url":"https://avatars0.githubusercontent.com/u/10721757?v=3","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"repo":{"id":89660105,"name":"cloud","full_name":"gongweibao/cloud","owner":{"login":"gongweibao","id":10721757,"avatar_url":"https://avatars0.githubusercontent.com/u/10721757?v=3","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gongweibao/cloud","description":"PaddleCloud web site and utilities","fork":true,"url":"https://api.github.com/repos/gongweibao/cloud","forks_url":"https://api.github.com/repos/gongweibao/cloud/forks","keys_url":"https://api.github.com/repos/gongweibao/cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gongweibao/cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gongweibao/cloud/teams","hooks_url":"https://api.github.com/repos/gongweibao/cloud/hooks","issue_events_url":"https://api.github.com/repos/gongweibao/cloud/issues/events{/number}","events_url":"https://api.github.com/repos/gongweibao/cloud/events","assignees_url":"https://api.github.com/repos/gongweibao/cloud/assignees{/user}","branches_url":"https://api.github.com/repos/gongweibao/cloud/branches{/branch}","tags_url":"https://api.github.com/repos/gongweibao/cloud/tags","blobs_url":"https://api.github.com/repos/gongweibao/cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gongweibao/cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gongweibao/cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/gongweibao/cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gongweibao/cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/gongweibao/cloud/languages","stargazers_url":"https://api.github.com/repos/gongweibao/cloud/stargazers","contributors_url":"https://api.github.com/repos/gongweibao/cloud/contributors","subscribers_url":"https://api.github.com/repos/gongweibao/cloud/subscribers","subscription_url":"https://api.github.com/repos/gongweibao/cloud/subscription","commits_url":"https://api.github.com/repos/gongweibao/cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/gongweibao/cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/gongweibao/cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/gongweibao/cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/gongweibao/cloud/contents/{+path}","compare_url":"https://api.github.com/repos/gongweibao/cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gongweibao/cloud/merges","archive_url":"https://api.github.com/repos/gongweibao/cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gongweibao/cloud/downloads","issues_url":"https://api.github.com/repos/gongweibao/cloud/issues{/number}","pulls_url":"https://api.github.com/repos/gongweibao/cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/gongweibao/cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/gongweibao/cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gongweibao/cloud/labels{/name}","releases_url":"https://api.github.com/repos/gongweibao/cloud/releases{/id}","deployments_url":"https://api.github.com/repos/gongweibao/cloud/deployments","created_at":"2017-04-28T02:38:40Z","updated_at":"2017-04-28T02:38:42Z","pushed_at":"2017-06-07T01:57:30Z","git_url":"git://github.com/gongweibao/cloud.git","ssh_url":"git@github.com:gongweibao/cloud.git","clone_url":"https://github.com/gongweibao/cloud.git","svn_url":"https://github.com/gongweibao/cloud","homepage":null,"size":7068,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"5065ed012997cefcac70bc600a80c0b21fc1e1a0","user":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars0.githubusercontent.com/u/23534030?v=3","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":89484677,"name":"cloud","full_name":"PaddlePaddle/cloud","owner":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars0.githubusercontent.com/u/23534030?v=3","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/cloud","description":"PaddleCloud web site and utilities","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/cloud","forks_url":"https://api.github.com/repos/PaddlePaddle/cloud/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/cloud/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/cloud/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/cloud/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/cloud/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/cloud/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/cloud/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/cloud/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/cloud/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/cloud/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/cloud/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/cloud/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/cloud/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/cloud/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/cloud/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/cloud/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/cloud/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/cloud/deployments","created_at":"2017-04-26T13:35:42Z","updated_at":"2017-05-18T02:17:27Z","pushed_at":"2017-06-07T04:02:43Z","git_url":"git://github.com/PaddlePaddle/cloud.git","ssh_url":"git@github.com:PaddlePaddle/cloud.git","clone_url":"https://github.com/PaddlePaddle/cloud.git","svn_url":"https://github.com/PaddlePaddle/cloud","homepage":null,"size":2410,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":25,"forks":6,"open_issues":25,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112"},"html":{"href":"https://github.com/PaddlePaddle/cloud/pull/112"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/issues/112"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/24858916314068ce9f36b5ad5bb19eb13a7ffdfb"}}}}
{"actor":{"display_login":"typhoonzero"}}