upsidr / merge-gatekeeper

Get better merge control
MIT License
85 stars 14 forks source link

Unable to detect jobs. #56

Closed Marellasai closed 1 year ago

Marellasai commented 1 year ago

Hello Guys, I have configured merge-gatekeeper as a workflow by following the doc, but when I do the PR to my repository merge-gatekeeper is getting triggered but it says 0 out of 0 jobs found. I need like if any of the other workflows in the repo fails that should stop the merge(as the merge-gatekeeper acts as a check). Please help.

image
rytswd commented 1 year ago

Hi @Marellasai ! The above description indicates that you are having the Merge Gatkeeper run against a commit ref that has no GitHub Actions / CI jobs associated. Merge Gatekeeper's main idea is to tie itself with a commit ref, and check its status via calling GitHub API. If GitHub API returns no associated job, it would show up with 0 for everything.

It would be difficult to debug further without the actual configurations for your CI suite (can be a mock) - would you be able to provide more?