-
Story
-
Resolution: Unresolved
-
Major
-
Pipelines 1.18.0
-
8
-
False
-
None
-
False
-
KONFLUX-134 - Cancel PipelineRuns on PR update
-
-
-
Currently, the pipelinesascode.tekton.dev/cancel-in-progress: "true" annotation enables users to cancel a PipelineRun that is actively in progress. However, this feature does not automatically handle scenarios where the associated pull request (PR) is closed or merged.
This feature request aims to extend the functionality of the cancel-in-progress annotation by introducing an automated mechanism to cancel ongoing PipelineRuns when the PR linked to the PipelineRun is closed or merged.
Proposed Functionality:
- Trigger Condition: When a pull request linked to a PipelineRun is closed or merged, any active PipelineRun should automatically be canceled.
- Annotation Handling: The pipelinesascode.tekton.dev/cancel-in-progress: "true" annotation should be respected and applied in this automated workflow.
Benefits:
- Reduces manual intervention for managing PipelineRuns.
- Conserves computational resources by stopping unnecessary builds triggered by closed or merged PRs.
Acceptance Criteria:
- When a PR is closed or merged, any PipelineRuns associated with it are automatically canceled.
- No impact on completed or previously canceled runs.
- Logs or metrics provide visibility into automated cancellations.
- Comprehensive testing to ensure seamless integration with existing event-driven workflows.