Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix cancel in progress to act on same pr/branch #1826

Merged
merged 1 commit into from
Nov 22, 2024

Commits on Nov 22, 2024

  1. 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]>
    chmouel committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    bb7375f View commit details
    Browse the repository at this point in the history