Open
Description
Discussed in #2690
Related to #2538
Currently Atlantis finds changes in files that were committed to the PR.
Here is an example in the github vcs client.
atlantis/server/events/vcs/github_client.go
Lines 104 to 120 in 89e035c
atlantis/server/events/project_command_builder.go
Lines 213 to 215 in 89e035c
It would be nice to use a pre_workflow_run to modify terraform in other directories and have Atlantis pick it up automatically.
We could do this by using the native git client. We already have context of the prs base repo and base branch and pr branch. Once we run the pre workflow run, we should not hit the vcs api and instead just run the following.
git diff --name-only SHA1 SHA2