Open
Description
When Digger is triggered via comment directly and not via backend orchestrator, the version of the workflow file and digger.yml will not taken from the PR branch, but from the main branch instead.
This can lead to confusing behaviours. For example, user introduces digger.yml together with terraform in a single PR (common scenario). Plan works fine; but then they run digger apply
it'd say "no projects impacted" because digger.yml is taken from the main branch.
Ideally the "direct trigger" mode without an orchestrator backend shouldn't be used at all but in reality people use it anyways, so we need to handle it better somehow.
Workarounds
Two options:
- Switch to triggering via Github App from the backend as per Quickstart. The guide is for using managed version at cloud.digger.dev but you can also self-host the orchestrator for free.
- Merge changes to workflow and digger.yml separately, before proceeding to running digger plan / digger apply. This will resolve the issue but obviously not convenient.