Skip to content

Make template aware of private repos#555

Open
llucax wants to merge 10 commits intofrequenz-floss:v0.x.xfrom
llucax:private-repos
Open

Make template aware of private repos#555
llucax wants to merge 10 commits intofrequenz-floss:v0.x.xfrom
llucax:private-repos

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Mar 27, 2026

Add a new private_repo variable to the cookiecutter template. This variable defaults to true/yes when the license is Proprietary and will be used to automatically switch features on and off in templates.

Private repos now:

  • Disable link to discussion in issues template config.
  • Pass credentials when needed (no commented credentials are produced for public repos).
  • Do not get publish-docs and publish-to-pypi jobs in the CI workflow.

@llucax llucax requested a review from a team as a code owner March 27, 2026 15:14
@llucax llucax requested review from simonvoelcker and removed request for a team March 27, 2026 15:14
@llucax

This comment was marked as outdated.

@github-actions github-actions bot added the part:template Affects the cookiecutter template files label Mar 27, 2026
@llucax llucax marked this pull request as draft March 27, 2026 15:14
@llucax llucax modified the milestones: v0.17.0, v0.18.0 Mar 27, 2026
@llucax llucax marked this pull request as ready for review March 31, 2026 14:14
@llucax llucax enabled auto-merge March 31, 2026 14:14
@llucax
Copy link
Copy Markdown
Contributor Author

llucax commented Mar 31, 2026

Ready for review

@llucax llucax requested a review from Marenz March 31, 2026 16:09
@llucax llucax added the type:enhancement New feature or enhancement visitble to users label Mar 31, 2026
llucax added 7 commits March 31, 2026 18:09
This variable defaults to true/yes when the license is Proprietary and
will be used to automatically switch features on and off in templates.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Instead of adding credential passing to both private and public repos,
add them uncommented only for private repos.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Private repos should not publish-docs nor publish-to-pypi, so we only
create those jobs for public repos.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
This job is now only added for public repos, so there is no need to
pass credentials.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Golden tests are done for all repo types setting them as private repos,
and a full generation integration smoke test is done for an API private
repo.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
llucax added 2 commits April 1, 2026 12:57
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:template Affects the cookiecutter template files type:enhancement New feature or enhancement visitble to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant