feat: dynamic autoplan via OUTPUT_MODIFIED_FILES_FILE in pre-workflow hooks#6298
Draft
feat: dynamic autoplan via OUTPUT_MODIFIED_FILES_FILE in pre-workflow hooks#6298
Conversation
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Copilot stopped work on behalf of
nitrocode due to an error
March 10, 2026 03:37
…c autoplan Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement dynamic autoplanning with uncommitted files
feat: dynamic autoplan via OUTPUT_MODIFIED_FILES_FILE in pre-workflow hooks
Mar 10, 2026
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.
Tools like Atmos generate
tfvarsfrom stack YAML — those regenerated files are uncommitted and invisible to Atlantis, so affected projects never get planned. Pre-workflow hooks can now write repo-relative file paths to$OUTPUT_MODIFIED_FILES_FILE(one per line), and Atlantis will append them to the modified files list before project discovery.Changes
command.Context— addsExtraModifiedFiles []stringfieldpre_workflow_hook_runner— exposesOUTPUT_MODIFIED_FILES_FILEenv var to hook scripts (parallel to existingOUTPUT_STATUS_FILE), pointing to a file inrepoDirpre_workflow_hooks_command_runner— readsOUTPUT_MODIFIED_FILES_FILEafter all hooks complete; populatesctx.ExtraModifiedFilesproject_command_builder— appendsExtraModifiedFilesto the modified files list inbuildAllCommandsByCfg; also bypasses the skip-clone optimization when extra files are presentOUTPUT_MODIFIED_FILES_FILEadded to env vars referenceExample
The paths written to
OUTPUT_MODIFIED_FILES_FILEflow through the normalautoplan.when_modifiedmatching, so only projects whose patterns match will be planned.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
custom.domain/tmp/go-build8081991/b599/gitlab.test /tmp/go-build8081991/b599/gitlab.test -test.paniconexit0 -test.timeout=10m0s -test.count=1 .o rg/toolchain@v0.-errorsas 0.1-go1.25.4.lin-ifaceassert ux-amd64/pkg/tool/linux_amd64/vet s-through=-lgcc s-through=-lgcc_-test.paniconexit0 s-through=-lpthr-test.timeout=10m0s ux-amd64/pkg/too-test.count=1 s-th�� s/models/commit_status.go s/models/models.go 0.1-go1.25.4.linux-amd64/pkg/tool/linux_amd64/vet --gdwarf-5 --64(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.