使用Github GraphQL API按消息搜索提交? [英] Search commits by message with Github GraphQL API?

查看:57
本文介绍了使用Github GraphQL API按消息搜索提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Github GraphQL API通过消息搜索提交.在Github REST API中,我只需要发送POST请求到 https://api.github.com/search/commits?q=examplemsg&sort=committer-date ,但是在GraphQL API中,我找不到我该怎么做.

I'm trying to use Github GraphQL API to search commits by message. In Github REST API, I just need to send POST request to https://api.github.com/search/commits?q=examplemsg&sort=committer-date, but in GraphQL API, I cannot find how I can do this.

我尝试使用 search 查询,但枚举 SearchType 仅具有3种类型,即 ISSUE REPOSITORY ,和 USER .有可能找到它吗?

I tried to use search query, but enum SearchType has only 3 types, ISSUE, REPOSITORY, and USER. Is it possible to find it?

谢谢.

推荐答案

当前,不可能通过Github GraphQL API搜索提交,但尚不支持.您将需要使用REST API.

Currently, it is not possible to search commits by Github GraphQL API, it has not been supported yet. You will need use REST API instead.

这篇关于使用Github GraphQL API按消息搜索提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆