Skip to main content

Change detection

gluon can narrow inspection and planning to changed files or changed components. That is useful in pull requests, preview environments, and incremental review workflows.

Commands that support change detection

  • gluon plan
  • gluon component

Use those commands when you want to focus on the parts of the platform graph that were touched by a branch, commit range, or explicit file list.

Available flags

FlagPurpose
--changedEnable change-aware filtering based on git state
--base <ref>Set the base ref used for comparison
--head <ref>Set the head ref used for comparison
--files <path,...>Override git diff resolution with an explicit file list
--uncommittedScope detection to uncommitted changes
--untrackedScope detection to untracked files

Pull request review flow

gluon component \
--intent examples/intent.yaml \
--changed \
--base main \
--long

gluon plan \
--intent examples/intent.yaml \
--changed \
--base main \
--output /tmp/pr-plan.json

Explicit file lists

When your CI system already knows the changed files, pass them directly instead of asking gluon to compute the diff:

gluon plan \
--intent examples/intent.yaml \
--files examples/services/web-app/component.yaml,examples/intent.yaml \
--output /tmp/filtered-plan.json

Local development flow

For uncommitted work in a repository checkout:

gluon component \
--intent examples/intent.yaml \
--changed \
--uncommitted

Use change detection to reduce noise during review, not to hide full-environment validation when you need a canonical plan for release.