fix: Add env vars for PR approval and mergeable status#5919
Merged
jamengual merged 2 commits intorunatlantis:mainfrom Oct 31, 2025
Merged
fix: Add env vars for PR approval and mergeable status#5919jamengual merged 2 commits intorunatlantis:mainfrom
jamengual merged 2 commits intorunatlantis:mainfrom
Conversation
b28c1ee to
faabb60
Compare
Adds 2 env vars ATLANTIS_PR_APPROVED and ATLANTIS_PR_MERGEABLE. This makes it easier for the shell command to decide if the command can proceed or not depending on the PR status Signed-off-by: Filipe Felisbino <filipe@felisbino.dev>
faabb60 to
5f522bd
Compare
lukemassa
approved these changes
Oct 30, 2025
Contributor
|
thanks @filipenf for the contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
Adds 2 env vars ATLANTIS_PR_APPROVED and ATLANTIS_PR_MERGEABLE. This makes it easier for the shell command to decide if the command can proceed or not depending on the PR status
why
Makes it easier to enable custom workflows that depend on approval / mergeable status (see #5779)
In scenarios where there's custom logic needed on top of the built-in
apply_requirements, this gives extra context to the shell command being executedtests
references
#5779