Repository navigation
fix: change workflow glob pattern from .yml to .yaml - #102
Conversation
There was a problem hiding this comment.
Code Review
This pull request renames the add_github_repo function and script to create_github_repo, updates the corresponding entry point in pyproject.toml, and bumps the package version to 0.46.0. Additionally, it changes the workflow file search pattern from *.yml to *.yaml. The reviewer feedback suggests supporting both .yml and .yaml extensions to ensure that no existing workflow templates are missed, which is a highly recommended improvement.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
fcdf644 to
27dd92d
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request renames the add_github_repo function and script to create_github_repo, updates the corresponding CLI entry point in pyproject.toml, and bumps the package version to 0.46.0. It also changes the workflow file globbing pattern from *.yml to *.yaml. The review feedback correctly points out that restricting the search to *.yaml will ignore existing .yml workflow files, and suggests supporting both extensions to ensure all valid workflows are copied.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| for yaml in workflow_dir.glob("*.yaml"): | ||
| if not (dir_dest / yaml.name).exists(): | ||
| shutil.copy2(yaml, dir_dest) |
There was a problem hiding this comment.
Restricting the search pattern to *.yaml will ignore any existing workflow files with the .yml extension. Since GitHub Actions supports both .yml and .yaml formats, it is better to support both extensions to prevent missing valid workflows.
| for yaml in workflow_dir.glob("*.yaml"): | |
| if not (dir_dest / yaml.name).exists(): | |
| shutil.copy2(yaml, dir_dest) | |
| for pattern in ("*.yml", "*.yaml"): | |
| for yaml in workflow_dir.glob(pattern): | |
| if not (dir_dest / yaml.name).exists(): | |
| shutil.copy2(yaml, dir_dest) |
| for yaml in lang_dir.glob("*.yaml"): | ||
| if not (dir_dest / yaml.name).exists(): | ||
| shutil.copy2(yaml, dir_dest) |
There was a problem hiding this comment.
Restricting the search pattern to *.yaml will ignore any existing workflow files with the .yml extension. Since GitHub Actions supports both .yml and .yaml formats, it is better to support both extensions to prevent missing valid workflows.
| for yaml in lang_dir.glob("*.yaml"): | |
| if not (dir_dest / yaml.name).exists(): | |
| shutil.copy2(yaml, dir_dest) | |
| for pattern in ("*.yml", "*.yaml"): | |
| for yaml in lang_dir.glob(pattern): | |
| if not (dir_dest / yaml.name).exists(): | |
| shutil.copy2(yaml, dir_dest) |
Summary
Changed files
Modified
pyproject.toml(+2/-2)uv.lock(+1/-1)Renamed
github_rest_api/scripts/github/create_github_repo.py(+5/-5)Commits