Open alita-moore opened 2 years ago
Yeah seems like it could fit behind a config flag, something like, require_skipped_checks = true
We need to update the evaluation logic:
Currently we check the failing checks and compare them against the branch protection's required checks.
I think this current behavior is correct, but we could add this as an enhancement.
GitHub considers "skipped" checks as passing. If you want to block merging if a check has been skipped, I think you could use a GitHub Action to fail the build.
I think this current behavior is correct, but we could add this as an enhancement.
GitHub considers "skipped" checks as passing. If you want to block merging if a check has been skipped, I think you could use a GitHub Action to fail the build.
do you mean to use a separate github action to fail the builds that skip so that kodiak would not merge skipped checks? Do you have any in mind?
In any case, you could simply fail the skipped check instead of skipping it if a criteria is not met, but then you will be showing the user that the check failed when in reality it was skipped. Which (imo) is confusing.
@alita-moore Maybe this will help for your use case? https://github.com/chdsbd/kodiak/issues/719#issuecomment-912681682
I think the https://github.com/technote-space/workflow-conclusion-action action can be used to fail the build if the conclusion of some jobs is failure
@chdsbd we can't use kodiak until this feature is implemented because it allows for circumventing required checks when you go from draft -> PR: https://github.com/ethereum/EIPs/pull/4749
@alita-moore I've deployed #785 to production, so you can enable the merge.block_on_neutral_required_check_runs
setting (currently undocumented) to stop Kodiak from merging a PR if a required check run has a neutral status.
Thank you 🙏🙇♀️
if the check is skipped instead of failed; see https://github.com/alita-moore/EIPs/pull/388
In this case the "greetings" was the only required check. But the bot kodiak still merged. It would be nice to have an option to consider skips as fails, just to be safe.