Skip to content

🔧 (worktrunk): Push rebased mmnoff branches - #68

Merged
ladislas merged 1 commit into
mainfrom
ladislas/feature/worktrunk-mmnoff-push
May 26, 2026
Merged

🔧 (worktrunk): Push rebased mmnoff branches#68
ladislas merged 1 commit into
mainfrom
ladislas/feature/worktrunk-mmnoff-push

Conversation

@ladislas

Copy link
Copy Markdown
Owner

No description provided.

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

Pull request overview

Updates the Worktrunk configuration to automatically push rebased mmnoff worktree branches (when explicitly enabled) before performing the merge workflow.

Changes:

  • Add a pre-merge hook that conditionally force-pushes the current HEAD to the branch on the configured remote.
  • Update the mmnoff alias to set WT_MMNOFF_PUSH=1 so the pre-merge push runs for that workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,5 +1,6 @@
worktree-path = "~/dev/worktrees/{{ owner }}/{{ repo }}/{{ branch | sanitize }}"
skip-commit-generation-prompt = true
pre-merge = 'if [ "${WT_MMNOFF_PUSH:-}" = 1 ]; then git push --force-with-lease {{ remote }} HEAD:refs/heads/{{ branch }}; fi'
@ladislas
ladislas merged commit f6ad072 into main May 26, 2026
4 checks passed
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.

2 participants