-
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
fix: Ignore apply check(s) even if missing from rollup when determining mergeability for GitHub #4974
Merged
X-Guardian
merged 4 commits into
runatlantis:main
from
nordnet:f/henriklundstrom/atlantis-apply-expected
Nov 4, 2024
Merged
fix: Ignore apply check(s) even if missing from rollup when determining mergeability for GitHub #4974
X-Guardian
merged 4 commits into
runatlantis:main
from
nordnet:f/henriklundstrom/atlantis-apply-expected
Nov 4, 2024
+63
−2
Conversation
This file contains 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
…ng mergeability minus apply
henriklundstrom
requested review from
jamengual,
lukemassa and
nitrocode
and removed request for
a team
October 2, 2024 10:18
X-Guardian
requested changes
Nov 2, 2024
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.
Can you update the PR title to indicate that this is for GitHub
...er/events/vcs/testdata/github-pull-request-mergeability/ruleset-atlantis-apply-expected.json
Outdated
Show resolved
Hide resolved
…leset-atlantis-apply-expected.json Co-authored-by: Simon Heather <32168619+X-Guardian@users.noreply.github.com> Signed-off-by: Henrik Lundström <henrik94lundstrom@gmail.com>
henriklundstrom
changed the title
fix: Ignore apply check(s) even if missing from rollup when determining mergeability
fix: Ignore apply check(s) even if missing from rollup when determining mergeability for GitHub
Nov 4, 2024
X-Guardian
approved these changes
Nov 4, 2024
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.
Looks good @henriklundstrom.
1 task
terakoya76
pushed a commit
to terakoya76/atlantis
that referenced
this pull request
Dec 31, 2024
…ng mergeability for GitHub (runatlantis#4974) Signed-off-by: Henrik Lundström <henrik94lundstrom@gmail.com>
kvanzuijlen
pushed a commit
to kvanzuijlen/atlantis
that referenced
this pull request
Jan 4, 2025
…ng mergeability for GitHub (runatlantis#4974) Signed-off-by: Henrik Lundström <henrik94lundstrom@gmail.com> Signed-off-by: kvanzuijlen <8818390+kvanzuijlen@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
go
Pull requests that update Go code
lgtm
This PR has been approved by a maintainer
provider/github
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
Ignores the atlantis/apply check even if it's missing in the API rollup response.
why
The previous implementation would only ignore the status of the atlantis/apply check, but the absence of the check (if required by ruleset or branch protection) would not be ignored.
In practice this hardly makes any difference since there are no normal situations where an apply would be attempted when the apply check was not already set (typically it would be set to PENDING by the preceding plan) and such attempts to apply would be rejected for other reasons anyway. However I think it would be best for this function to not rely on the check being created beforehand.
tests
Adds a test case for the situation when atlantis/apply is required by a ruleset, but the check is missing in the rollup response from GitHub.
references