Skip to content

Add script for bulk-creating rules repos in GitLab - #488

Merged
lbarcziova merged 2 commits into
packit:mainfrom
lbarcziova:rules-repos-script
May 18, 2026
Merged

lbarcziova merged 2 commits into
packit:mainfrom
lbarcziova:rules-repos-script

Conversation

@lbarcziova

Copy link
Copy Markdown
Member

create_rules_repos.py creates public repos in a GitLab group with a README, supporting both JSON input and individual --name arguments.

Part of PACKIT-4997

Assisted-by: Claude Opus 4.6

create_rules_repos.py creates public repos in a GitLab group with
a README, supporting both JSON input and individual --name arguments.

Part of PACKIT-4997

Assisted-by: Claude Opus 4.6

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Python script to automate the creation of GitLab repositories within a specified group, including an initial README commit. The review feedback highlights several areas for improvement: adding timeouts to API requests to prevent hanging, robustly parsing the Retry-After header, implementing error handling for JSON input files, and ensuring that failures during the README creation phase are correctly tracked in the final error summary.

Comment thread scripts/create_rules_repos.py Outdated
Comment thread scripts/create_rules_repos.py Outdated
Comment thread scripts/create_rules_repos.py Outdated
Comment thread scripts/create_rules_repos.py
Add request timeout, robust Retry-After parsing, JSON input
validation, and README commit failure tracking.

Assisted-by: Claude Opus 4.6

@majamassarini majamassarini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏🏻

@lbarcziova
lbarcziova merged commit da50bb9 into packit:main May 18, 2026
9 checks passed
@lbarcziova
lbarcziova deleted the rules-repos-script branch May 18, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants