从发行ID中获取Github发行信息 [英] Fetch Github Issue informatiom from Issue ID

查看:64
本文介绍了从发行ID中获取Github发行信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找Github API,找不到一个仅从Issue ID中获取问题详细信息的端点.发行ID(53454563)与发行编号(#1,#2等)不同.问题ID是问题表的主键.

I have been looking around the Github API and couldn't find an endpoint which fetches me the issue details from just an Issue ID. The Issue ID(53454563) is different from an Issue number(#1,#2 etc.). Issue ID is the primary key of the Issue table.

从Github API文档中,获取问题详细信息的方法是通过对/repos/:owner/:repo/issues/:number的GET请求.我需要发行号,所有者名称和回购名称来获取详细信息.

From the Github API documentation, the way to fetch issue details is with a GET request to /repos/:owner/:repo/issues/:number. I'll need the issue number, the owner name and the repo name to fetch the details.

是否可以仅使用问题ID来获取问题详细信息?

Is there a way to fetch issue details with just the issue Id?

推荐答案

是否可以仅使用问题ID来获取问题详细信息?

Is there a way to fetch issue details with just the issue Id?

否,目前无法使用.您可以使用存储库ID和发行号(例如, https://api.github.com/repositories/1725199/issues/1234

No, not possible currently. You could do it with a repository ID and issue number, e.g. https://api.github.com/repositories/1725199/issues/1234.

这篇关于从发行ID中获取Github发行信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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