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

paris

03/22/2023, 9:02 AM
Morning team 👋 Quick question, does anyone know if the Atlantis API is meant to comment on the actual GH PR when the plan completes? Trying smth like
curl --request POST '<http://localhost:4141/api/plan>' \
--header 'X-Atlantis-Token: hello123' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Repository": "demo-org/demo-repo",
    "Ref": "demo-branch",
    "Type": "Github",
    "PR": 123,
    "Paths": [{
    }]
}'
is not quite working. Anybody able to use the API successfully that could share some tips? This is on a locally running Atlantis
p

PePe Amengual

03/22/2023, 3:41 PM
mmmm let me check my PR
nope I do not believe it does comment back
but I actually wonder if you have autoplan it will plan for you or not….
I do not think it will
p

paris

03/23/2023, 8:34 AM
Thanks for checking that! I was certain though that it would be commenting back 😕 I’ll have another play. From Atlantis POV I don’t see what difference it would make where the plan command came from. Otherwise what’s the point of the API 🤔
I think I agree it’s not meant to comment back (since this is a synchronous request by the looks of it ie the plan is included in the response) However Atlantis tries to update the PR status when the API is used; I think this may be a bug
p

PePe Amengual

03/23/2023, 3:33 PM
yes, that is possible