Skip to content
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

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

igaskin
Copy link
Contributor

@igaskin igaskin commented Mar 21, 2023

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

documents the optional PR parameter for the plan/apply endpoints
@igaskin igaskin requested a review from a team as a code owner March 21, 2023 17:05
@github-actions github-actions bot added the docs Documentation label Mar 21, 2023
@@ -52,7 +53,8 @@ curl --request POST 'https://<ATLANTIS_HOST_NAME>/api/plan' \
"Paths": [{
"Directory": ".",
"Workspace": "default"
}]
}],
"PR": 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Contributor

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

@jamengual
Copy link
Contributor

thanks for the contribution @igaskin

@jamengual jamengual merged commit 6e3a9eb into runatlantis:main Mar 21, 2023
@nitrocode nitrocode added this to the v0.23.4 milestone Mar 23, 2023
nitrocode pushed a commit that referenced this pull request May 5, 2023
documents the optional PR parameter for the plan/apply endpoints
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…tis#3255)

documents the optional PR parameter for the plan/apply endpoints
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…tis#3255)

documents the optional PR parameter for the plan/apply endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants