Skip to content

feat: add --pull-request/-r, --path, and enhanced --issue support - #231

Open
maooc wants to merge 1 commit into
paulirish:masterfrom
maooc:feature/kimi-enhancements
Open

feat: add --pull-request/-r, --path, and enhanced --issue support#231
maooc wants to merge 1 commit into
paulirish:masterfrom
maooc:feature/kimi-enhancements

Conversation

@maooc

@maooc maooc commented Mar 22, 2026

Copy link
Copy Markdown

This PR adds three major enhancements to git-open, modified by Kimi AI model.

New Features

  1. --pull-request / -r: Open PR/MR list page
  2. --path: Open current directory path in browser
  3. Enhanced --issue: Support multiple branch name formats

All 85 tests pass, no shellcheck warnings.

This commit adds three major enhancements to git-open:

1. --pull-request / -r: Open PR/MR list page
   - Supports GitHub (/pulls), GitLab (/-/merge_requests),
     Bitbucket (/pull-requests), Azure DevOps (/_git/pullrequests),
     and cnb.cool (/-/merge_requests)

2. --path: Open current directory path in browser
   - Automatically uses current working directory relative to repo root
   - Works without requiring --file parameter

3. Enhanced --issue: Support multiple branch name formats
   - issue/123, issues/123
   - bugfix-123, bugfix/123
   - feature-123, feature/123
   - fix-123, fix/123
   - hotfix-123, hotfix/123
   - paulirish#123 (pure number with hash)
   - Shows clear error message when format is not recognized

Also updates README.md, git-open.1.md documentation and adds
comprehensive BATS tests for all new features.

Modified by Kimi AI model.
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