Rewrite the required checks process to look for check runs of the commit #473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were looking for the corresponding workflow runs, which could cause all kinds of race conditions. We now always get the latest info from the API instead of relying on what we received, which might be out of date by the time we actually run.
Here is the example of a dependabot pull request, which essentially creates 2 different runs (one for the
pull_request
event and one for thepush
event). Thepull_request
event results in a skipped run, and thepush
event eventually succeeds.check-required.yml
workflow runs for the first time, its summary looks like this:push
event run eventually succeeds, thecheck-required.yml
workflow run that gets triggered looks like this: