我试图使用将pull请求合并到master分支中的提交者数量.但是,我不能考虑拒绝行动.
在GitHub中,有没有办法可以看到其他人的存储库中的协作者数量?
GitHub API v3具有用于列出协作者的端点:
GET /repos/:owner/:repo/collaborators
Run Code Online (Sandbox Code Playgroud)
要使用它,您需要进行身份验证,并且您必须是其中的合作者之一,否则您将看到以下信息:
GET /repos/:owner/:repo/collaborators
Run Code Online (Sandbox Code Playgroud)
我注意到,当您转到存储库的“问题”部分并按作者或受让人进行筛选时,您会看到一个下拉列表,其中列出了存储库的合作者。该下拉列表的HTML内容按需在单独的GET请求中加载,例如:
https://github.com/Leaflet/Leaflet/issues/show_menu_content?partial=issues/filters/authors_content
Run Code Online (Sandbox Code Playgroud)
rya*_*lon -1
在您的存储库页面中,单击Settings选项卡,然后单击Collaborators。
网址示例
https://github.com/<username>/<repo name>/settings/collaboration
Run Code Online (Sandbox Code Playgroud)
要检查谁对不属于您的存储库做出了贡献,您可以转到该存储库,单击Graphs,然后单击Members。
网址示例
https://github.com/<owner username>/<repo name>/network/members
Run Code Online (Sandbox Code Playgroud)