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

Sarath S Kumar

03/05/2023, 5:45 AM
Hi I need to put a condition in atlantis after atlantis apply then only merge the PR Right now the flow is CODEOWNERS can review the PR and approve it. If accidently they merged the PR it will delete that particular branch got deleted before applying atlantis. I enabled automerge and delete source branch in atlantis workflow. Any workaround for this??
p

PePe Amengual

03/05/2023, 6:19 AM
workaround if someone merges the PR is to create a dummy PR ( empty commit or some readme change) and run plan and apply
there is not functionality to apply on merge
it will be nice to have
PRs are welcome
r

RB

03/05/2023, 12:59 PM
I set atlantis/apply as a required step in github so it's not possible to merge the pr without the apply. The gh bypass Atlantis flag needs to be enabled in order to do that
☝️ 1
c

Chastity Blackwell

03/06/2023, 2:54 PM
Ooooh. That's a good idea.