Skip to content

[feature request] Build-level autoDeployPaths for push-triggered auto deploy #121

@AntonRatnick

Description

@AntonRatnick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions