You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
I have some automation that's firing off a POST to /api/plan but is receiving a 500 error back.
When checking the logs of Atlantis server, I see that Atlantis is trying to pull pull/0/head which doesn't work.
We're also using the merge checkout strategy.
To fix this issue, I believe we should add the c.pr.Num > 0 condition to this if check, as the pr number is an optional parameter to plan/apply API endpoints:
Community Note
Overview of the Issue
I have some automation that's firing off a POST to
/api/plan
but is receiving a 500 error back.When checking the logs of Atlantis server, I see that Atlantis is trying to pull
pull/0/head
which doesn't work.We're also using the
merge
checkout strategy.To fix this issue, I believe we should add the
c.pr.Num > 0
condition to this if check, as the pr number is an optional parameter to plan/apply API endpoints:atlantis/server/events/working_dir.go
Line 334 in 42e2dc7
Reproduction Steps
Set ATLANTIS_CHECKOUT_STRATEGY=merge
Note that the PR parameter is optional, and as such, is omitted:
Logs
Environment details
ATLANTIS_CHECKOUT_STRATEGY=merge
The text was updated successfully, but these errors were encountered: