Idea
Introduce an optional environment.autoDeployPaths list in lifecycle.yaml to limit
push-triggered redeploys to relevant file changes.
autoDeploy stays the main toggle.
autoDeployPaths is an additional include filter for push events only.
Expected behavior
- If
autoDeploy is true and autoDeployPaths is set:
- redeploy only when changed files (from push
before..after) match at least one path
pattern.
- If no match, skip push-triggered redeploy.
- If changed-files lookup fails, fail open (keep current behavior).
- If there are failed deploys, keep current priority behavior (still redeploy).
- Manual/API/comment-triggered redeploy flows are unchanged.
Scope
- Add compare-based changed-files helper.
- Add path matching utility (glob include match).
- Add config validation for
autoDeployPaths.
- Wire gate into push webhook flow.
Acceptance criteria
- Matching path change triggers push redeploy.
- Non-matching change does not trigger push redeploy.
- Missing
autoDeployPaths keeps current behavior.
- Retrieval failures do not block current behavior.
Idea
Introduce an optional
environment.autoDeployPathslist inlifecycle.yamlto limitpush-triggered redeploys to relevant file changes.
autoDeploystays the main toggle.autoDeployPathsis an additional include filter for push events only.Expected behavior
autoDeployistrueandautoDeployPathsis set:before..after) match at least one pathpattern.
Scope
autoDeployPaths.Acceptance criteria
autoDeployPathskeeps current behavior.