feat(functions): support auto-rebasing onto advanced push bookmarks in jj_check_conflicts#110
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the jj_check_conflicts function by extracting helper functions and adding support for auto-detecting trunk bookmarks (dev or main) and tracking auto-created push bookmarks when they advance. The feedback suggests removing a redundant newline concatenation in the jj log template to prevent empty elements in the target list, and refining the final status message to be more accurate when no trunk bookmark is present.
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.
ed24d17 to
a859d95
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors jj_check_conflicts in functions/jj_check_conflicts.fish to support auto-detecting trunk bookmarks (dev or main) and tracking auto-created push bookmarks on @- when they advance. It introduces helper functions (_jj_check_conflicts_bookmark_exists, _jj_check_conflicts_merged_into, and _jj_check_conflicts_warn_if_merged) to modularize the logic. The review feedback points out that argparse failures are not handled, which could cause the function to continue executing with unintended side effects (like fetching and rebasing). It is recommended to append ; or return 1 to the argparse call to return early on failure.
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.
a859d95 to
39a02c4
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request enhances the jj_check_conflicts Fish function by introducing an auto mode that automatically detects trunk bookmarks (dev or main) and tracks auto-created push bookmarks on @-. It refactors the script to use modular helper functions for checking bookmark existence and merge status, handles conflicted push bookmarks, and falls back to manual override when a bookmark is explicitly provided. I have no feedback to provide.
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.
Summary
Changed files
Modified
functions/jj_check_conflicts.fish(+113/-28)Commits