Skip to content

fix: change workflow glob pattern from .yml to .yaml - #102

Merged
dclong merged 4 commits into
mainfrom
push-mykoovvqlrxo
Jul 19, 2026
Merged

dclong merged 4 commits into
mainfrom
push-mykoovvqlrxo

Conversation

@dclong

@dclong dclong commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • refactor(scripts): rename add_github_repo to create_github_repo
  • fix(scripts): change workflow glob pattern from .yml to .yaml
  • chore: bump version to 0.46.0

Changed files

Modified

  • pyproject.toml (+2/-2)
  • uv.lock (+1/-1)
    Renamed
  • github_rest_api/scripts/github/create_github_repo.py (+5/-5)

Commits

  • 6a9bfb8 refactor(scripts): rename add_github_repo to create_github_repo
  • 4c0a125 fix(scripts): change workflow glob pattern from .yml to .yaml
  • fcdf644 chore: bump version to 0.46.0

@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 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.

@dclong
dclong force-pushed the push-mykoovvqlrxo branch from fcdf644 to 27dd92d Compare July 19, 2026 06:37
@dclong

dclong commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@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 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.

Comment on lines +120 to 122
for yaml in workflow_dir.glob("*.yaml"):
if not (dir_dest / yaml.name).exists():
shutil.copy2(yaml, dir_dest)

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.

medium

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.

Suggested change
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)

Comment on lines +128 to 130
for yaml in lang_dir.glob("*.yaml"):
if not (dir_dest / yaml.name).exists():
shutil.copy2(yaml, dir_dest)

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.

medium

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.

Suggested change
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)

@dclong
dclong merged commit bbde5c8 into main Jul 19, 2026
8 checks passed
@dclong
dclong deleted the push-mykoovvqlrxo branch July 20, 2026 12:21
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.

1 participant