-
-
Notifications
You must be signed in to change notification settings - Fork 355
feat: Remove not used parameter atlantis_allowed_repo_names
#221
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
feat: Remove not used parameter atlantis_allowed_repo_names
#221
Conversation
a6d102f
to
7c95954
Compare
atlantis_allowed_repo_names
atlantis_allowed_repo_names
31276fe
to
7c95954
Compare
atlantis_github_user = var.github_user | ||
atlantis_github_user_token = var.github_token | ||
atlantis_repo_allowlist = ["github.com/${var.github_owner}/*"] | ||
atlantis_allowed_repo_names = var.allowed_repo_names |
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.
this variable is also used in the webhook sub-module - we will need to somehow accommodate that as well with this change otherwise it breaks the webhooks. even though atlantis doesn't use this param anymore, we still need to repo names for the webhooks
# module.github_repository_webhook.github_repository_webhook.this[0] must be replaced
-/+ resource "github_repository_webhook" "this" {
+ etag = (known after apply)
~ id = "xxxxxxxxx" -> (known after apply)
~ repository = "scritchity-scratch" -> "github.com/clowdhaus/*" # forces replacement
~ url = "https://api.github.com/repos/clowdhaus/scritchity-scratch/hooks/xxxxxxxxx" -> (known after apply)
# (2 unchanged attributes hidden)
# (1 unchanged block hidden)
}
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.
@bryantbiggs thanks for your comment, but I think you are missing, that instead of atlantis_allowed_repo_names
is removed, it is renamed to atlantis_repo_allowlist
for consistency naming in submodules as well.
Please check this commit 3849654
Now both module and submodules are using the same naming and also the same list of repositories.
Is there any reason, that those two repository lists (white-list for atlantis + webhooked repositories) should be separated?
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.
we can't completely remove this variable since we need it (or something similar) for creating the webhooks
@bryantbiggs please read my comments. this parameter is not removed. |
Rebased to |
atlantis_allowed_repo_names
atlantis_allowed_repo_names
## [3.9.0](v3.8.0...v3.9.0) (2022-02-08) ### Features * Remove not used parameter `atlantis_allowed_repo_names` ([#221](#221)) ([6cbd47d](6cbd47d))
This PR is included in version 3.9.0 🎉 |
LGTM. I made this release as a minor (not patch) since it will replace a value in the outputs. |
## [3.9.0](terraform-aws-modules/terraform-aws-atlantis@v3.8.0...v3.9.0) (2022-02-08) ### Features * Remove not used parameter `atlantis_allowed_repo_names` ([terraform-aws-modules#221](terraform-aws-modules#221)) ([6cbd47d](terraform-aws-modules@6cbd47d))
## [3.9.0](terraform-aws-modules/terraform-aws-atlantis@v3.8.0...v3.9.0) (2022-02-08) ### Features * Remove not used parameter `atlantis_allowed_repo_names` ([terraform-aws-modules#221](terraform-aws-modules#221)) ([6cbd47d](terraform-aws-modules@6cbd47d))
## [3.9.0](terraform-aws-modules/terraform-aws-atlantis@v3.8.0...v3.9.0) (2022-02-08) ### Features * Remove not used parameter `atlantis_allowed_repo_names` ([terraform-aws-modules#221](terraform-aws-modules#221)) ([6cbd47d](terraform-aws-modules@6cbd47d))
## [3.9.0](terraform-aws-modules/terraform-aws-atlantis@v3.8.0...v3.9.0) (2022-02-08) ### Features * Remove not used parameter `atlantis_allowed_repo_names` ([terraform-aws-modules#221](terraform-aws-modules#221)) ([6cbd47d](terraform-aws-modules@6cbd47d))
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
One of the parameters is not used and could be removed.
Motivation and Context
--repo-whitelist
) in atlantis-docsBreaking Changes
atlantis_allowed_repo_names
atlantis_allowed_repo_names
->atlantis_repo_allowlist
atlantis_allowed_repo_names
->atlantis_repo_allowlist
How Has This Been Tested?
examples/*
projectsterraform plan
inexamples/github-complete