https://www.runatlantis.io/ logo
Title
j

JT

05/23/2023, 7:50 PM
automerge
is set to true here but is not working, anyone know why that would be? project ran applied successfully atlantis.yaml
version: 3
automerge: true
delete_source_branch_on_merge: true
parallel_plan: true
parallel_apply: true
projects:
  - name: 'project-dev'
    dir: ./server/
    workflow: normal
    terraform_version: v1.4.6
    autoplan:
      enabled: true
      when_modified: ["**/*.tf"]
workflows:
  normal:
    plan:
      steps:
        - init
        - plan
r

ross strickland

05/23/2023, 8:01 PM
what version of atlantis. what does the server config look like?
j

JT

05/23/2023, 8:05 PM
I'm running the docker image with the tag
v0.23.5-debian
, and the repo configuration looks like this:
repos:
  - id: /.*/
    branch: /.*/
    allowed_overrides: [workflow]
    allow_custom_workflows: true
    pre_workflow_hooks:
      - run: terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel --create-workspace
        description: "Generating Terragrunt Configuration Files"
    workflow: tf-plan
workflows:
  tf-plan:
    plan:
      steps:
        - init
        - plan
        - run: ./script.sh
issue was the prework flow, i guess the server config and the repo level config get merged?
d

Dylan Page

05/23/2023, 9:04 PM
There's a PR to preperly handle per-repo override for "global" values
automerge currently implemented only works per-repo and is not a global option
It wasn't implemented properly
r

ross strickland

05/23/2023, 9:07 PM
i believe the setting works per-repo so long as global is not set to true, which then overrides any repo config.
☝️ 1
speaking of which, i need to wrap that up. apologies. been busy.
d

Dylan Page

05/23/2023, 9:09 PM
heh, no worries