Skip to content

chore(release): auto-add RC tasks to checklist in create-rc#3894

Merged
rickeylev merged 2 commits into
bazel-contrib:mainfrom
rickeylev:auto-add-rc-task
Jul 3, 2026
Merged

chore(release): auto-add RC tasks to checklist in create-rc#3894
rickeylev merged 2 commits into
bazel-contrib:mainfrom
rickeylev:auto-add-rc-task

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Modify create-rc subcommand to automatically insert missing Tag RC tasks into the tracking issue checklist before Tag Final, rather than failing.

- Add `add_rc_task_to_body` to `release_issue.py` to dynamically insert new `Tag RC<N>` tasks into the checklist before `Tag Final`.
- Modify `create_rc.py` to detect if the next RC task is missing from the checklist, and if so, auto-add it and update the tracking issue body before proceeding.
- Add `test_create_rc_auto_add_task` to `create_rc_test.py` to verify this behavior.
@rickeylev rickeylev requested a review from aignas as a code owner July 3, 2026 08:08
@rickeylev rickeylev changed the title feat(release): auto-add RC tasks to checklist in create-rc chore(release): auto-add RC tasks to checklist in create-rc Jul 3, 2026

@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 functionality to automatically append a missing 'Tag RC' task to the release checklist issue body if it is not already present. The review feedback highlights a potential indexing bug in add_rc_task_to_body that could incorrectly raise a ValueError when 'Tag Final' is the first metadata line. Additionally, the reviewer suggests optimizing GitHub API usage by updating the issue body once instead of twice, and updating the unit tests to reflect this change.

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 thread tools/private/release/release_issue.py
Comment thread tools/private/release/create_rc.py
Comment thread tests/tools/private/release/create_rc_test.py
- Modify `process_backports.py` to check if a pending RC task exists when backports are added.
- If no pending RC task exists, auto-add the next `Tag RC<N>` task to the checklist.
- Add `test_process_backports_add_backports_and_auto_add_rc_task` to `process_backports_test.py` to verify this behavior.
@rickeylev rickeylev merged commit 12ce31b into bazel-contrib:main Jul 3, 2026
4 of 6 checks passed
@rickeylev rickeylev deleted the auto-add-rc-task branch July 3, 2026 08:16
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