feat: add --pull-request/-r, --path, and enhanced --issue support - #231
Open
maooc wants to merge 1 commit into
Open
feat: add --pull-request/-r, --path, and enhanced --issue support#231maooc wants to merge 1 commit into
maooc wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds three major enhancements to git-open, modified by Kimi AI model.
New Features
All 85 tests pass, no shellcheck warnings.