You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Why: Using boolean values instead of integers aligns with Terraform best practices and improves code readability significantly.
8
Simplify resource creation logic by using the input variable directly in the count parameter
Consider using the count parameter instead of the local.use_existing_project variable for the gitlab_project resource to improve readability and follow Terraform best practices.
Why: This suggestion simplifies the code and improves readability by directly using the input variable, adhering to Terraform best practices.
8
Enhancement
Rename the variable to better reflect its purpose and simplify the conditional logic
Consider using a more descriptive name for the use_existing_project variable. A name like create_new_project might be clearer, as it directly indicates the action being taken.
Why: The suggestion improves code readability by using a more descriptive variable name, but the logic change might introduce subtle differences in behavior.
7
Maintainability
Remove commented out code to improve maintainability
The commented out line #group_id = data.gitlab_project.this.namespace_id in the data "gitlab_group" "root_namespace" block should be removed if it's no longer needed.
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.
PR Type
Enhancement
Description
gitlab_project_name
is setgitlab_project_name
andgitlab_root_namespace
for project creation and namespace specificationChanges walkthrough 📝
main.tf
Implement GitLab project creation and flexible project referencing
main.tf
ID
outputs.tf
Update project ID output for flexibility
outputs.tf
gitlab_agents_project_id
output to use the newlocal.project_id
variables.tf
Add new variables for project creation and root namespace
variables.tf
gitlab_project_name
andgitlab_root_namespace
gitlab_project_path_with_namespace
CHANGELOG.md
Update CHANGELOG for version 0.7.0
CHANGELOG.md
README.md
Update README with new project creation feature
README.md
automatically