Skip to content

Support worktrunks PR/MR worktree creation syntax #2

Description

@devashish2203

Support https://worktrunk.dev/switch/#pull-requests-and-merge-requests

Currently on giving a text manually to the herdr-worktrunk branch picker it assumes the given input is a new branch name and adds a --create to the wt switch command.

This breaks for inputs like pr:<123> or mr:<123> or https://github.com/devashish2203/pull/1 type of inputs.

An easy fix could be to detect that the input contains ":" and then drop the --create flag from the wt command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions