Skip to content

Main branch (not PR branch) is used when Digger is triggered via comment directly #926

Open
@ZIJ

Description

@ZIJ

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions