获取GitHub问题的管道价值? [英] Get Pipeline Value of GitHub Issues?
问题描述
我使用ZenHub在GitHub上管理我的问题.当我查看问题的详细信息时,我可以在GitHub中看到属性"pipeline",该属性正是保存该问题的列.
I use ZenHub to manage my Issues on GitHub. When I go to the detail of an issue I can see the property "pipeline" in GitHub which is exactly the column where the Issue is saved.
现在,我想使用GitHub的API从问题中获取管道信息.但是没有一个发行方法 GET/repos/:owner/:repo/issues
或 GET/repos/:owner/:repo/issues/:number
似乎具有有关管道的任何信息.它是否隐藏在其他地方?
Now I want to get the pipeline information out of my issues using the API of GitHub. But none of the Issue-Methods
GET /repos/:owner/:repo/issues
or GET /repos/:owner/:repo/issues/:number
seem to have any information about the pipeline. Is it hidden anywhere else?
推荐答案
使用Github API v4,您可以查询状态上下文,并检查运行是否触发了管道.
With the Github API v4, you can query the combinedContexts of a commit to retrieve a list of status contexts and check runs for the commit triggering your pipelines.
这篇关于获取GitHub问题的管道价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!