-
Notifications
You must be signed in to change notification settings - Fork 26
feat: enable configuration of repository visibility #83
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
base: main
Are you sure you want to change the base?
Conversation
feat: enable repo visibility configuration
|
I have an additional question regarding documentation changes. Am I expected to create a pull request in the below repository? |
|
@microsoft-github-policy-service agree [company="{blinQ}"] |
|
@microsoft-github-policy-service agree company="blinQ" |
|
@kimfy There are many features that don't work with private repositories in a Free plan, hence why we set them to public. If we implement this setting we would need to also add logic to all those features and turn them off. You can see all the features that are only available for public repos here: https://github.com/pricing#compare-features |
|
|
@jaredfholgate I understand. I'll have a look at the work that needs to be done to support this then. Thanks. By the way, it is currently not possible to create new issues in this repository. Edit: it's probably a preview-bug. If I go directly to https://github.com/Azure/accelerator-bootstrap-modules/issues/new/ it works. |
Yes, we are aware of this problem with the preview. It should be redirecting you here to raise all issues, but is currently broken in the preview: https://github.com/Azure/ALZ-PowerShell-Module/issues |


Overview/Summary
This pull request enables the configuration of GitHub repository visibility via a new configuration parameter
repository_visibility. This allows users to set the visibility to eitherprivate,publicorinternalexplicitly.The current implementation defaults to public visibility if the organization has the free plan. Which you may not want out of the box.
For reference, GitHub supports private repositories for any plan.

This PR fixes/adds/changes/removes
repository_visibilityrepository_visibilityto privateBreaking Changes
repository_visibilityis set toprivatefor any plan. So GitHub Users/Organizations with the free plan changes frompublictoprivate.Testing Evidence
When testing, I ran the bootstrap procedure 4 times (using ALZ-PowerShell-Module). On each run I set
repository_visibilityto:private|public|internaland lastly commented it completely out (from input-github.yaml). Once the firstterraform planwas finished I confirmed with the plan output (tfplan) andterraform.tfvars.jsonthat it would create the GitHub repositories withrepository_visibilityset to the configured value.As part of this Pull Request I have
mainbranch