Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GraphQL通过github GraphQL API获取与github PR关联的文件_Github_Graphql_Github Api_Github Api V4 - Fatal编程技术网

GraphQL通过github GraphQL API获取与github PR关联的文件

GraphQL通过github GraphQL API获取与github PR关联的文件,github,graphql,github-api,github-api-v4,Github,Graphql,Github Api,Github Api V4,我刚刚开始使用GraphQL,我对合并PR的请求有以下查询。我想知道是否有办法获得与相关PR合并的文件?目前我不知道如何获取这些数据 我的问题 变量 { “query_str”:“repo:/is:pr is:merged合并:2017-01-01T01:01:00..2021-01-01T01:01:00作者:语言:python” } query getUsersPullRquest($query_str:String!) { search(query: $query

我刚刚开始使用GraphQL,我对合并PR的请求有以下查询。我想知道是否有办法获得与相关PR合并的文件?目前我不知道如何获取这些数据

我的问题 变量
{
“query_str”:“repo:/is:pr is:merged合并:2017-01-01T01:01:00..2021-01-01T01:01:00作者:语言:python”
}
query getUsersPullRquest($query_str:String!) {
            search(query: $query_str, type: ISSUE, first: 100 ) {
                edges {
                    node {
                        ... on PullRequest {
                        url
                        title
                        createdAt
                        additions
                        deletions
                        changedFiles
                        mergedAt
                        author {
                            login
                        }
                        
                        }
                    }
                }
                pageInfo {
                    startCursor
                    endCursor
                    hasNextPage
                    hasPreviousPage
                }
            }
        }
{
    "query_str":"repo:<OWNER>/<REPO> is:pr is:merged merged:2017-01-01T01:01:00..2021-01-01T01:01:00 author:<AUTHOR> language:python"
}