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

Daniel DeFisher

04/06/2023, 4:19 PM
Hey I am trying to use the API to run an APPLY on a schedule against main (or atleast the latest merged PR) is running apply against main or a merged PR supported? Some things I have run into when trying to apply are not selecting a PR defaults to 0 which does not exist so atlantis fails to get pulls/0 from github and if I do select a merged PR I can’t use that either because a merged PR does not meet merge requirements.
👀 1
p

PePe Amengual

04/06/2023, 4:34 PM
it could give you some pointers
d

Daniel DeFisher

04/06/2023, 5:56 PM
Just to clarify I am specifically struggling with the
/api/apply
endpoint which I could be wrong but that repo above only runs plans right?
Further context I am trying to reconcile changes without human intervention and near when they happen . So instead of doing a plan then opening an automated PR on a schedule I would like to just do plan then apply against main on schedule.
I was hoping to basically just hit the
/api/apply
endpoint with PR set to 0 and ref set to main on schedule but I am starting to think that is not really what that endpoint is for (which makes sense in hindsight that this would not work).
p

PePe Amengual

04/06/2023, 6:25 PM
ohhhh yes that repo does plan and from the change creates the PR and then you do regular apply