Get Pipeline Value of GitHub Issues?

不打扰是莪最后的温柔 提交于 2020-12-03 06:06:09

问题


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.

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?enter image description here


回答1:


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.




回答2:


Pipeline is purely a ZenHub feature.

As such, it is not exposed in the Github API Issues (or in any other GitHub API)

A ZenHub public API is in the making (issue 172).

Update: The API is available: ZenHub API



来源:https://stackoverflow.com/questions/28683303/get-pipeline-value-of-github-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!