go-github icon indicating copy to clipboard operation
go-github copied to clipboard

List of check runs configurations

Open MytsYurii opened this issue 2 years ago • 4 comments

we are collecting the check runs for each PR, by using next API: client.Checks.ListCheckRunsForRef and ref as PR. is it possible to collect check runs configuration? For example: is it required manual approval for this check, it is allowed to failed, the yaml code for this check as well.

MytsYurii avatar Sep 12 '23 09:09 MytsYurii

@WillAbides, check it out please

MytsYurii avatar Sep 12 '23 09:09 MytsYurii

@gabriel-samfira

MytsYurii avatar Sep 12 '23 11:09 MytsYurii

@willnorris, @sagar23sj, @dmitshur . Can you give me some answer on that? without code details, just the logic if it is possible.

MytsYurii avatar Sep 12 '23 11:09 MytsYurii

I'm not aware of any way to do that, and I don't think there will be a direct link between the two because checks aren't directly connected to workflow runs.

Generally it is probably more productive to get answers about what you can do with the GitHub API from either the docs or GitHub community discussions. Once you have that, this is where you come to figure out how to use go-github to make the API requests you need.

WillAbides avatar Sep 12 '23 14:09 WillAbides