{"action":"created","comment":{"url":"https://api.github.com/repos/clsaa/dop/pulls/comments/278797987","pull_request_review_id":230966188,"id":278797987,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3ODc5Nzk4Nw==","diff_hunk":"@@ -213,4 +213,96 @@ public String findProjectDefaultBranch(String id, Long userId) {\n     }\n \n \n+    /**\n+     * 查询用户可以拉取代码的所有仓库地址(http)\n+     * 包括所有的public项目和当前作为成员并且权限在guest以上(不包括guest)的项目\n+     *\n+     * @param userId 用户id\n+     * @return 地址列表\n+     */\n+    public List<String> findProjectUrlList(Long userId) {\n+\n+        String path = \"/projects\";\n+        List<ProjectUrlBo> projectUrlBos = RequestUtil.getList(path, userId, ProjectUrlBo.class);\n+        List<String> res = new ArrayList<>();\n+        for (ProjectUrlBo projectUrlBo : projectUrlBos) {\n+            if (projectUrlBo.getVisibility().equals(\"public\") || projectUrlBo.getPermissions().getProject_access().getAccess_level() > 10) {\n+                res.add(projectUrlBo.getHttp_url_to_repo());\n+            }\n+        }\n+        return res;\n+\n+    }\n+\n+    /**\n+     * 查询项目的成员列表\n+     * @param id 项目id\n+     * @param userId 用户id\n+     * @return 成员列表\n+     */\n+    public List<MemberBo> findProjectMemberList(String id,Long userId){\n+\n+        id=URLUtil.encodeURIComponent(id);\n+\n+        String path=\"/projects/\"+id+\"/members\";","path":"code-server/src/main/java/com/clsaa/dop/server/code/service/ProjectService.java","position":35,"original_position":35,"commit_id":"f83a55e16c823af33d61e29a7407a11dc6a0fa84","original_commit_id":"f83a55e16c823af33d61e29a7407a11dc6a0fa84","user":{"login":"clsaa","id":32028545,"node_id":"MDQ6VXNlcjMyMDI4NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32028545?v=4","gravatar_id":"","url":"https://api.github.com/users/clsaa","html_url":"https://github.com/clsaa","followers_url":"https://api.github.com/users/clsaa/followers","following_url":"https://api.github.com/users/clsaa/following{/other_user}","gists_url":"https://api.github.com/users/clsaa/gists{/gist_id}","starred_url":"https://api.github.com/users/clsaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clsaa/subscriptions","organizations_url":"https://api.github.com/users/clsaa/orgs","repos_url":"https://api.github.com/users/clsaa/repos","events_url":"https://api.github.com/users/clsaa/events{/privacy}","received_events_url":"https://api.github.com/users/clsaa/received_events","type":"User","site_admin":false},"body":"String path=\"/projects/\"+id+\"/members\"; 最好封装为函数，不要在代码中硬编码。 可以创建一个 Paths工具类，里面提供一些静态方法 生成各种路径","created_at":"2019-04-26T03:23:51Z","updated_at":"2019-04-26T03:24:31Z","html_url":"https://github.com/clsaa/dop/pull/186#discussion_r278797987","pull_request_url":"https://api.github.com/repos/clsaa/dop/pulls/186","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/clsaa/dop/pulls/comments/278797987"},"html":{"href":"https://github.com/clsaa/dop/pull/186#discussion_r278797987"},"pull_request":{"href":"https://api.github.com/repos/clsaa/dop/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/clsaa/dop/pulls/186","id":271991069,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcxOTkxMDY5","html_url":"https://github.com/clsaa/dop/pull/186","diff_url":"https://github.com/clsaa/dop/pull/186.diff","patch_url":"https://github.com/clsaa/dop/pull/186.patch","issue_url":"https://api.github.com/repos/clsaa/dop/issues/186","number":186,"state":"open","locked":false,"title":"Feature code","user":{"login":"waszqt","id":32014294,"node_id":"MDQ6VXNlcjMyMDE0Mjk0","avatar_url":"https://avatars1.githubusercontent.com/u/32014294?v=4","gravatar_id":"","url":"https://api.github.com/users/waszqt","html_url":"https://github.com/waszqt","followers_url":"https://api.github.com/users/waszqt/followers","following_url":"https://api.github.com/users/waszqt/following{/other_user}","gists_url":"https://api.github.com/users/waszqt/gists{/gist_id}","starred_url":"https://api.github.com/users/waszqt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waszqt/subscriptions","organizations_url":"https://api.github.com/users/waszqt/orgs","repos_url":"https://api.github.com/users/waszqt/repos","events_url":"https://api.github.com/users/waszqt/events{/privacy}","received_events_url":"https://api.github.com/users/waszqt/received_events","type":"User","site_admin":false},"body":"增加了项目总览中md文档的显示样式\r\n使用插件完成了commit的具体文件改动内容的展示功能,tag,file和branch中可以跳转到该页面\r\ntag功能\r\n分支保护功能\r\n成员管理功能","created_at":"2019-04-19T12:57:11Z","updated_at":"2019-04-26T03:24:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cbb01bc3e9409e923217e6fba2cb66e817d3487","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clsaa/dop/pulls/186/commits","review_comments_url":"https://api.github.com/repos/clsaa/dop/pulls/186/comments","review_comment_url":"https://api.github.com/repos/clsaa/dop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clsaa/dop/issues/186/comments","statuses_url":"https://api.github.com/repos/clsaa/dop/statuses/f83a55e16c823af33d61e29a7407a11dc6a0fa84","head":{"label":"clsaa:feature_code","ref":"feature_code","sha":"f83a55e16c823af33d61e29a7407a11dc6a0fa84","user":{"login":"clsaa","id":32028545,"node_id":"MDQ6VXNlcjMyMDI4NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32028545?v=4","gravatar_id":"","url":"https://api.github.com/users/clsaa","html_url":"https://github.com/clsaa","followers_url":"https://api.github.com/users/clsaa/followers","following_url":"https://api.github.com/users/clsaa/following{/other_user}","gists_url":"https://api.github.com/users/clsaa/gists{/gist_id}","starred_url":"https://api.github.com/users/clsaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clsaa/subscriptions","organizations_url":"https://api.github.com/users/clsaa/orgs","repos_url":"https://api.github.com/users/clsaa/repos","events_url":"https://api.github.com/users/clsaa/events{/privacy}","received_events_url":"https://api.github.com/users/clsaa/received_events","type":"User","site_admin":false},"repo":{"id":161884521,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE4ODQ1MjE=","name":"dop","full_name":"clsaa/dop","private":false,"owner":{"login":"clsaa","id":32028545,"node_id":"MDQ6VXNlcjMyMDI4NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32028545?v=4","gravatar_id":"","url":"https://api.github.com/users/clsaa","html_url":"https://github.com/clsaa","followers_url":"https://api.github.com/users/clsaa/followers","following_url":"https://api.github.com/users/clsaa/following{/other_user}","gists_url":"https://api.github.com/users/clsaa/gists{/gist_id}","starred_url":"https://api.github.com/users/clsaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clsaa/subscriptions","organizations_url":"https://api.github.com/users/clsaa/orgs","repos_url":"https://api.github.com/users/clsaa/repos","events_url":"https://api.github.com/users/clsaa/events{/privacy}","received_events_url":"https://api.github.com/users/clsaa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/clsaa/dop","description":"DevOpsPlatform","fork":false,"url":"https://api.github.com/repos/clsaa/dop","forks_url":"https://api.github.com/repos/clsaa/dop/forks","keys_url":"https://api.github.com/repos/clsaa/dop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clsaa/dop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clsaa/dop/teams","hooks_url":"https://api.github.com/repos/clsaa/dop/hooks","issue_events_url":"https://api.github.com/repos/clsaa/dop/issues/events{/number}","events_url":"https://api.github.com/repos/clsaa/dop/events","assignees_url":"https://api.github.com/repos/clsaa/dop/assignees{/user}","branches_url":"https://api.github.com/repos/clsaa/dop/branches{/branch}","tags_url":"https://api.github.com/repos/clsaa/dop/tags","blobs_url":"https://api.github.com/repos/clsaa/dop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clsaa/dop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clsaa/dop/git/refs{/sha}","trees_url":"https://api.github.com/repos/clsaa/dop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clsaa/dop/statuses/{sha}","languages_url":"https://api.github.com/repos/clsaa/dop/languages","stargazers_url":"https://api.github.com/repos/clsaa/dop/stargazers","contributors_url":"https://api.github.com/repos/clsaa/dop/contributors","subscribers_url":"https://api.github.com/repos/clsaa/dop/subscribers","subscription_url":"https://api.github.com/repos/clsaa/dop/subscription","commits_url":"https://api.github.com/repos/clsaa/dop/commits{/sha}","git_commits_url":"https://api.github.com/repos/clsaa/dop/git/commits{/sha}","comments_url":"https://api.github.com/repos/clsaa/dop/comments{/number}","issue_comment_url":"https://api.github.com/repos/clsaa/dop/issues/comments{/number}","contents_url":"https://api.github.com/repos/clsaa/dop/contents/{+path}","compare_url":"https://api.github.com/repos/clsaa/dop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clsaa/dop/merges","archive_url":"https://api.github.com/repos/clsaa/dop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clsaa/dop/downloads","issues_url":"https://api.github.com/repos/clsaa/dop/issues{/number}","pulls_url":"https://api.github.com/repos/clsaa/dop/pulls{/number}","milestones_url":"https://api.github.com/repos/clsaa/dop/milestones{/number}","notifications_url":"https://api.github.com/repos/clsaa/dop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clsaa/dop/labels{/name}","releases_url":"https://api.github.com/repos/clsaa/dop/releases{/id}","deployments_url":"https://api.github.com/repos/clsaa/dop/deployments","created_at":"2018-12-15T08:14:28Z","updated_at":"2019-04-26T03:16:44Z","pushed_at":"2019-04-26T03:16:39Z","git_url":"git://github.com/clsaa/dop.git","ssh_url":"git@github.com:clsaa/dop.git","clone_url":"https://github.com/clsaa/dop.git","svn_url":"https://github.com/clsaa/dop","homepage":null,"size":4527,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":25,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":25,"watchers":6,"default_branch":"master"}},"base":{"label":"clsaa:master","ref":"master","sha":"011fd4191f7c9b3e92539eb63152b8670b003253","user":{"login":"clsaa","id":32028545,"node_id":"MDQ6VXNlcjMyMDI4NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32028545?v=4","gravatar_id":"","url":"https://api.github.com/users/clsaa","html_url":"https://github.com/clsaa","followers_url":"https://api.github.com/users/clsaa/followers","following_url":"https://api.github.com/users/clsaa/following{/other_user}","gists_url":"https://api.github.com/users/clsaa/gists{/gist_id}","starred_url":"https://api.github.com/users/clsaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clsaa/subscriptions","organizations_url":"https://api.github.com/users/clsaa/orgs","repos_url":"https://api.github.com/users/clsaa/repos","events_url":"https://api.github.com/users/clsaa/events{/privacy}","received_events_url":"https://api.github.com/users/clsaa/received_events","type":"User","site_admin":false},"repo":{"id":161884521,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE4ODQ1MjE=","name":"dop","full_name":"clsaa/dop","private":false,"owner":{"login":"clsaa","id":32028545,"node_id":"MDQ6VXNlcjMyMDI4NTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/32028545?v=4","gravatar_id":"","url":"https://api.github.com/users/clsaa","html_url":"https://github.com/clsaa","followers_url":"https://api.github.com/users/clsaa/followers","following_url":"https://api.github.com/users/clsaa/following{/other_user}","gists_url":"https://api.github.com/users/clsaa/gists{/gist_id}","starred_url":"https://api.github.com/users/clsaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clsaa/subscriptions","organizations_url":"https://api.github.com/users/clsaa/orgs","repos_url":"https://api.github.com/users/clsaa/repos","events_url":"https://api.github.com/users/clsaa/events{/privacy}","received_events_url":"https://api.github.com/users/clsaa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/clsaa/dop","description":"DevOpsPlatform","fork":false,"url":"https://api.github.com/repos/clsaa/dop","forks_url":"https://api.github.com/repos/clsaa/dop/forks","keys_url":"https://api.github.com/repos/clsaa/dop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clsaa/dop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clsaa/dop/teams","hooks_url":"https://api.github.com/repos/clsaa/dop/hooks","issue_events_url":"https://api.github.com/repos/clsaa/dop/issues/events{/number}","events_url":"https://api.github.com/repos/clsaa/dop/events","assignees_url":"https://api.github.com/repos/clsaa/dop/assignees{/user}","branches_url":"https://api.github.com/repos/clsaa/dop/branches{/branch}","tags_url":"https://api.github.com/repos/clsaa/dop/tags","blobs_url":"https://api.github.com/repos/clsaa/dop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clsaa/dop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clsaa/dop/git/refs{/sha}","trees_url":"https://api.github.com/repos/clsaa/dop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clsaa/dop/statuses/{sha}","languages_url":"https://api.github.com/repos/clsaa/dop/languages","stargazers_url":"https://api.github.com/repos/clsaa/dop/stargazers","contributors_url":"https://api.github.com/repos/clsaa/dop/contributors","subscribers_url":"https://api.github.com/repos/clsaa/dop/subscribers","subscription_url":"https://api.github.com/repos/clsaa/dop/subscription","commits_url":"https://api.github.com/repos/clsaa/dop/commits{/sha}","git_commits_url":"https://api.github.com/repos/clsaa/dop/git/commits{/sha}","comments_url":"https://api.github.com/repos/clsaa/dop/comments{/number}","issue_comment_url":"https://api.github.com/repos/clsaa/dop/issues/comments{/number}","contents_url":"https://api.github.com/repos/clsaa/dop/contents/{+path}","compare_url":"https://api.github.com/repos/clsaa/dop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clsaa/dop/merges","archive_url":"https://api.github.com/repos/clsaa/dop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clsaa/dop/downloads","issues_url":"https://api.github.com/repos/clsaa/dop/issues{/number}","pulls_url":"https://api.github.com/repos/clsaa/dop/pulls{/number}","milestones_url":"https://api.github.com/repos/clsaa/dop/milestones{/number}","notifications_url":"https://api.github.com/repos/clsaa/dop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clsaa/dop/labels{/name}","releases_url":"https://api.github.com/repos/clsaa/dop/releases{/id}","deployments_url":"https://api.github.com/repos/clsaa/dop/deployments","created_at":"2018-12-15T08:14:28Z","updated_at":"2019-04-26T03:16:44Z","pushed_at":"2019-04-26T03:16:39Z","git_url":"git://github.com/clsaa/dop.git","ssh_url":"git@github.com:clsaa/dop.git","clone_url":"https://github.com/clsaa/dop.git","svn_url":"https://github.com/clsaa/dop","homepage":null,"size":4527,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":25,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":25,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clsaa/dop/pulls/186"},"html":{"href":"https://github.com/clsaa/dop/pull/186"},"issue":{"href":"https://api.github.com/repos/clsaa/dop/issues/186"},"comments":{"href":"https://api.github.com/repos/clsaa/dop/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/clsaa/dop/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/clsaa/dop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clsaa/dop/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/clsaa/dop/statuses/f83a55e16c823af33d61e29a7407a11dc6a0fa84"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"clsaa"}}