feat: add dependency file triggers for terraform matching#2640
Open
vedant-rox wants to merge 1 commit into
Open
feat: add dependency file triggers for terraform matching#2640vedant-rox wants to merge 1 commit into
vedant-rox wants to merge 1 commit into
Conversation
This was referenced Apr 12, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR is the new first reviewable slice of #791.
It adds an opt-in
dependency_file_triggersfeature for Terraform/OpenTofu projects that narrows changed-file matching by following localmoduleimports recursively and adding the imported module*.tf*files to each project's trigger patterns.Scope
This PR intentionally stays within
docs/andlibs/digger_config/.Included here:
dependency_file_triggersExplicitly not included here:
Safety
dependency_file_triggers: trueinclude_patterns/exclude_patternsbehavior remains in placeexclude_patternsstill take precedence over derived trigger pathsdependency_file_triggersexplicitly in this sliceValidation
cd libs && env GOTOOLCHAIN=local GOTELEMETRY=off GOCACHE=/tmp/digger-go-cache GOMODCACHE=/tmp/digger-go-modcache /opt/homebrew/opt/go@1.25/bin/go test ./digger_config/...Docs
dependency_file_triggersFollow-up
The inferred dependency-edge / hard-mode propagation behavior is being kept as a separate follow-up PR because that is where the recent review feedback and CI-semantic risk has been concentrated.
AI disclosure
This PR was prepared with assistance from Codex (OpenAI).