-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: updating api-endpoints.md doc to include PR parameter #3255
Conversation
documents the optional PR parameter for the plan/apply endpoints
@@ -52,7 +53,8 @@ curl --request POST 'https://<ATLANTIS_HOST_NAME>/api/plan' \ | |||
"Paths": [{ | |||
"Directory": ".", | |||
"Workspace": "default" | |||
}] | |||
}], | |||
"PR": 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is a respond not part of the POST request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing it hear as part of the POST
request: https://github.com/runatlantis/atlantis/blob/main/server/controllers/api_controller.go#L39
Looks like it was added in a subsequent commit: 71233ef
I've tested this parameter locally, and it works as expected. If PR
is not specified it defaults to 0
, which in my environment will cause an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are correct, I was looking at the old commit
thanks for the contribution @igaskin |
documents the optional PR parameter for the plan/apply endpoints
…tis#3255) documents the optional PR parameter for the plan/apply endpoints
…tis#3255) documents the optional PR parameter for the plan/apply endpoints
what
documents the optional PR parameter for the plan/apply endpoints
why
This parameter is currently undocumented, but helpful
tests
rendering the markdown locally
references