feat(internal/automation): add stage-release command#2902
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new stage-release command to the automation toolset. The implementation is well-structured and follows the existing patterns for other commands. My review focuses on a missing feature and test improvements. The new command is missing support for the -push flag, which appears to be required by the CI/CD infrastructure. I've provided suggestions to add this functionality and to enhance the corresponding tests to ensure correctness. Overall, this is a good addition with the recommended changes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2902 +/- ##
=======================================
Coverage 83.32% 83.33%
=======================================
Files 132 133 +1
Lines 10902 10930 +28
=======================================
+ Hits 9084 9108 +24
- Misses 1406 1409 +3
- Partials 412 413 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: not available Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/librarian-release-container:latest <details><summary>librarian: 0.7.0</summary> ## [0.7.0](v0.6.0...v0.7.0) (2025-11-20) ### Features * add command execution package with logging (#2968) ([12f4e94](12f4e949)) * add branch support to RepositoryConfig (#2906) ([2cab5d6](2cab5d65)) * add image sha as a config in repositories config (#2954) ([3d1f537](3d1f5375)) * add initial config (#2965) ([502b063](502b063c)) * add fetch package (#2964) ([53de44d](53de44d8)) * parse gapic_metadata for API version release notes (#2815) ([7ee0328](7ee03283)) * onboard 25 repositories to automation for publish-release (#2907) ([87fae04](87fae04a)) * add version command (#2894) ([8f85be0](8f85be09)) * add RequireCommand test helper (#2978) ([a820a71](a820a710)) * add initial command (#2961) ([c959aea](c959aeae)) * add `stage-release` command (#2902) ([ee05006](ee050065)) ### Bug Fixes * require git v2.28.0 (#2963) ([265ee47](265ee47f)) * enums referenced outside the package (#2952) ([7331816](73318169)) </details>
Add a
stage-releasecommand for automation command set.For #2416