You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: annotation for matching PipelineRun on paths
Introduce easier-to-use annotations for matching PipelineRuns by file
path changes:
- `on-path-changed`: Matches PipelineRun if specified paths have
changes.
- `on-path-changed-ignore`: Matches PipelineRun if specified paths **do
not** have changes.
Examples:
1. `on-path-changed: ["pkg/*", "cli/*"]` matches if files in `pkg` or
`cli` changed.
2. `on-path-changed-ignore: ["docs/**"]` matches if no changes occurred
in the `docs` directory.
Annotations can be combined for more specific use cases:
- `on-path-changed: ["docs/**"]`
- `on-path-changed-ignore: ["docs/generated/**"]`
This setup triggers a PipelineRun when there are changes in the `docs`
directory, except for files under `docs/generated`.
Enhanced annotation options also support:
- Targeting specific events (`on-target-event`: e.g., `pull_request`,
`push`).
- Matching specific branches (`on-target-branch`: e.g., `main`).
This improves usability over existing CEL-based configuration and makes
defining file-based triggers more intuitive.
**Jira**: https://issues.redhat.com/browse/SRVKP-6464
Signed-off-by: Chmouel Boudjnah <[email protected]>
0 commit comments