mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
47e7c8e01a
When searching for previous workflow runs by branch, GitHub currently includes matches within forks. If a contributor opens a pull request from their fork with a `head_ref` matching a Core branch that triggers a workflow on `push` event, the outcomes of the workflows associated with that pull request are currently used to determine if the previous workflow run had failed. The result is a false “fixed” notifications when a commit immediately follows a failed workflow run from the pull request. This adds a check to skip any workflow runs not triggered by a `push` event to prevent these inaccurate notifications. Props SergeyBiryukov. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53466 602fd350-edb4-49c9-b593-d223f7449a82