如何使用 Github GraphQL 搜索我自己的提交?

How to use Github GraphQL search for my own commits?

我正在尝试使用 Github GraphQL 来获取我的组织在本月和上个月之间的提交列表。我可以只指定前 100 个提交并向后分页,

repository(owner: "myOrg", name: "myRepo") {
    ref(qualifiedName: "master") {
        target {
        ... on Commit {
            history(first: 100) {

但似乎 API 应该设置为允许更具体的搜索,这样它就不必做那么多工作。我知道您可以查询 Repositories, Issues, and Users using a search query 但这似乎与仅询问我需要的特定结果的作用不同。

在不发出大量不必要请求的情况下,使用 GraphQL 过滤特定提交或任何信息的最佳方法是什么?

谢谢!

你试过sinceuntil了吗?

像这样:

repository(owner: "myOrg", name: "myRepo") {
    ref(qualifiedName: "master") {
        target {
        ... on Commit {
            history(since: "2018-04-01T22:29:24+00:00", until: "2018-05-14T22:29:24+00:00") {