-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix cancel in progress to act same pr/branch
We need to ensure that we only cancel the pipeline run that is running on the same branch as the current PR or push event. This ensures that we don't cancel the wrong pipeline run. On PullRequest events, we only cancel the pipeline run that is running on the same Pull Request number. On Push events, we only cancel the pipeline run that is running on the same SourceBranch (which is the same as HeadBranch on push) This avoids the issue when you have multiple pull request running on a repo and we don't cancel the wrong ones that are running for a different PR. Signed-off-by: Chmouel Boudjnah <[email protected]>
- Loading branch information
Showing
4 changed files
with
278 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.