Open perryao opened 1 month ago
It looks like this API call returns the last runs and all their attempts by default, not just the last runs and their last attempt.
There would need to be code added to filter out just the previous runs and only look at the most recent attempts. IMO, that makes sense for this check to do.
For type edited
, the event payload.pull_request.head.sha is unchanged from the previous workflow run on the PR. Since this is the commit SHA used to locate the check runs, the check runs from the previous workflow run are visible. So the failed check-pr-title
check run from the prior execution is visible before the new execution completes and updates the check run result to success. You probably need some other synchronization to ensure the check-pr-title job_id runs before the check status action checks it.
It fails even after you manually re-run the wait for status check. Only pushing a new commit allows it to pass.
We have a workflow that checks the format of a PR title and it runs on
If I open a PR with a title that fails this check, our summary workflow below fails as expected:
However, if I edit the PR title and get the PR title workflow to run again and pass, the require-all-checks workflow still fails.
Is there a way to ignore previous failures on pull request edited triggers?