我在许多用户群相当小的 GitHub 存储库(> 10)上工作。我有时会忘记较少使用的存储库的问题。
有没有办法(在 GitHub 中或使用外部工具)在存储库列表中查看所有开放的 PR 和问题?
我知道有一个“通知”页面,但这并不容易找到旧的、开放的问题和 PR。
您可以使用 GitHub GraphQL API ( https://docs.github.com/en/graphql )。
这是我在 GraphQl Explorer 中测试的随机用户存储库的示例(https://docs.github.com/en/graphql/overview/explorer):
query {
repo1: repository(owner: "amitukind", name: "architect3d") {
issues(states: OPEN, first:100) {
totalCount
nodes {
title
url
}
}
pullRequests(states: OPEN, first:100) {
totalCount
nodes {
title
url
}
}
}
repo2: repository(owner: "apernet", name: "OpenGFW") {
issues(states: OPEN, first:100) {
totalCount
nodes {
title
url
}
}
pullRequests(states: OPEN, first:100) {
totalCount
nodes {
title
url
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
如果您进行身份验证并允许使用权限,则可以在浏览器中使用资源管理器,或者您可以将该功能放入自定义应用程序中。
| 归档时间: |
|
| 查看次数: |
139 次 |
| 最近记录: |