Skip to content

Merge push-yovnpzrwmkvt Into main#62

Merged
dclong merged 1 commit into
mainfrom
push-yovnpzrwmkvt
May 21, 2026
Merged

Merge push-yovnpzrwmkvt Into main#62
dclong merged 1 commit into
mainfrom
push-yovnpzrwmkvt

Conversation

@dclong

@dclong dclong commented May 20, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@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 upgrades the project to Python 3.12+, adds new dependencies, and introduces several automation scripts for container management and GitHub repository operations. It also enhances the GitHub client with pagination support and updates CI workflows. Feedback identifies critical issues such as incorrect API usage in porcelain.commit, potential CI hangs due to getpass, security risks regarding hardcoded tokens, and a mismatch between the required Python version and CI test configurations.

Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/add_github_repo.py
Comment thread github_rest_api/actions/github/release_on_github.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py Outdated
Comment thread github_rest_api/actions/container/update_version_containerfile.py Outdated
Comment thread github_rest_api/actions/container/config_container.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/workflows/python/test.yml Outdated
@dclong dclong force-pushed the push-yovnpzrwmkvt branch 4 times, most recently from d6b0548 to 656c984 Compare May 20, 2026 08:12
@dclong

dclong commented May 20, 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 introduces a comprehensive suite of GitHub Action utility scripts for container management (building, pushing, configuring, and version updating) and GitHub repository automation (creating repos, PRs, releases, and branch cleanup). It also updates the core GitHub class to support result limiting and pagination across various API calls, bumps the project to Python 3.12, and adds dependencies like tenacity and tomli-w. Feedback focused on improving the robustness of the new scripts, specifically handling existing git branches, ensuring private repository support via authentication tokens, avoiding protected method access, and accounting for environment-specific limitations when managing system services.

Comment thread github_rest_api/actions/github/add_github_repo.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py Outdated
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/config_container.py
@dclong dclong force-pushed the push-yovnpzrwmkvt branch from 656c984 to 7492142 Compare May 20, 2026 08:37
@dclong

dclong commented May 20, 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 adds a comprehensive set of utility scripts for GitHub Actions, covering container image builds, repository setup, release management, and branch maintenance. It also upgrades the project to Python 3.12 and enhances the core GitHub API wrapper with improved pagination and filtering. Feedback highlights several areas for improvement, including adding error handling for file operations, optimizing API usage to prevent rate limiting, ensuring script compatibility with restricted runner environments, and refining Git staging and branch management to follow standard practices.

Comment thread github_rest_api/actions/container/build_container_images.py
Comment thread github_rest_api/actions/container/config_container.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/add_github_repo.py Outdated
Comment thread github_rest_api/actions/github/release_on_github.py Outdated
Comment thread github_rest_api/actions/github/remove_branch.py Outdated
Comment thread github_rest_api/actions/github/remove_branch.py
Comment thread github_rest_api/github.py
@dclong

dclong commented May 20, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@dclong dclong force-pushed the push-yovnpzrwmkvt branch from 7492142 to 24b34e2 Compare May 20, 2026 15:19

@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 several new utility scripts for GitHub Actions, including repository creation, container configuration, version management, and branch cleanup. It also updates the project to require Python 3.12+ and adds necessary dependencies. Review feedback suggests improving error handling for branch operations, addressing privilege requirements for system commands, ensuring private repository support via token passing, adding input validation for repository strings, and correcting the GitHub Actions schedule configuration.

Comment thread github_rest_api/actions/github/add_github_repo.py Outdated
Comment thread github_rest_api/actions/container/config_container.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/add_github_repo.py
Comment thread github_rest_api/actions/github/workflows/remove_branch.yml
@dclong dclong force-pushed the push-yovnpzrwmkvt branch 2 times, most recently from 7c7befd to 47a0dd4 Compare May 21, 2026 01:30
@dclong

dclong commented May 21, 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 updates the project to Python 3.12 and introduces several automation scripts for container management and GitHub Actions, including image building, runtime configuration, and branch cleanup. The core GitHub API wrapper was refactored to support result limiting and improved pagination, while pyproject.toml was updated with a version bump and new entry point scripts. Feedback focuses on enhancing the robustness of the new scripts by handling potential runtime errors related to missing system utilities, empty configuration files, and environment variables. A more reliable approach for parsing git branch names was also recommended to avoid issues with complex branch structures.

Comment thread github_rest_api/actions/container/config_container.py
settings: dict = {}
if path.is_file():
with path.open("r", encoding="utf-8") as fin:
settings = json.load(fin)

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

json.load() will raise a json.JSONDecodeError if the file exists but is empty. It is safer to handle this exception or check the file size before attempting to load it.

Comment thread github_rest_api/actions/container/config_container.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/add_github_repo.py Outdated
@dclong dclong force-pushed the push-yovnpzrwmkvt branch from 47a0dd4 to 1e91259 Compare May 21, 2026 02:15
@dclong

dclong commented May 21, 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 updates the project to Python 3.12 and introduces a suite of utility scripts for container image building, runtime configuration, and GitHub repository management. It also refactors the core GitHub class to support result limiting in API requests and adds new CI workflows. The reviewer identified several critical issues: the use of interactive getpass calls which would cause automation scripts to hang in CI environments, a potential bug in configuration handling that could lead to data loss upon JSON decode errors, and violations of encapsulation and type safety conventions.

Comment thread github_rest_api/actions/github/add_github_repo.py
Comment thread github_rest_api/actions/github/release_on_github.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py Outdated
Comment on lines +22 to +23
except json.JSONDecodeError:
settings = {}

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

When a JSONDecodeError occurs, the settings dictionary is initialized to empty. This will cause the subsequent json.dump to overwrite the existing configuration file with an empty object, potentially losing important settings. Consider aborting the operation or logging a warning instead of overwriting.

Comment thread github_rest_api/actions/container/build_container_images.py Outdated
@dclong dclong force-pushed the push-yovnpzrwmkvt branch from 1e91259 to f5c40a2 Compare May 21, 2026 02:28
@dclong

dclong commented May 21, 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 updates the project to Python 3.12+, adds new dependencies (tenacity, tomli-w), and introduces a comprehensive suite of automation scripts for container management and GitHub operations. Key additions include utilities for building container images based on git diffs, configuring container runtimes, updating versions in Dockerfiles, and managing GitHub repositories, releases, and branches. The core GitHub class was also enhanced to support result limiting in API calls. Feedback focuses on improving the robustness of these new scripts for CI environments, specifically regarding authenticated API access, handling missing environment variables, and avoiding interactive prompts in non-TTY sessions.

Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/container/update_version_containerfile.py
Comment thread github_rest_api/actions/github/add_github_repo.py
Comment thread github_rest_api/actions/github/release_on_github.py
@dclong dclong force-pushed the push-yovnpzrwmkvt branch from f5c40a2 to 4a166da Compare May 21, 2026 02:44
@dclong dclong force-pushed the push-yovnpzrwmkvt branch from 4a166da to acf1b84 Compare May 21, 2026 02:45
@dclong dclong merged commit be8617d into main May 21, 2026
3 of 8 checks passed
@dclong dclong deleted the push-yovnpzrwmkvt branch May 22, 2026 12:20
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