问题
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?
回答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