Skip to content

feat(functions): support auto-rebasing onto advanced push bookmarks in jj_check_conflicts#110

Merged
dclong merged 1 commit into
mainfrom
push-qumoulvspyqm
Jun 29, 2026
Merged

feat(functions): support auto-rebasing onto advanced push bookmarks in jj_check_conflicts#110
dclong merged 1 commit into
mainfrom
push-qumoulvspyqm

Conversation

@dclong

@dclong dclong commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • feat: support auto-rebasing onto advanced push bookmarks in jj_check_conflicts

Changed files

Modified

  • functions/jj_check_conflicts.fish (+113/-28)

Commits

  • ed24d17 feat: support auto-rebasing onto advanced push bookmarks in jj_check_conflicts

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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

Comment thread functions/jj_check_conflicts.fish
Comment thread functions/jj_check_conflicts.fish Outdated
@dclong dclong force-pushed the push-qumoulvspyqm branch from ed24d17 to a859d95 Compare June 29, 2026 01:35
@dclong

dclong commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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

Comment thread functions/jj_check_conflicts.fish
@dclong dclong force-pushed the push-qumoulvspyqm branch from a859d95 to 39a02c4 Compare June 29, 2026 01:44
@dclong

dclong commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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

@dclong dclong merged commit d544f76 into main Jun 29, 2026
2 checks passed
@dclong dclong deleted the push-qumoulvspyqm branch June 30, 2026 12:12
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