Open monkindey opened 6 years ago
Good idea!
But somebody has to do it :wink:
It should be able to auto-detect (see if the commit exists) maybe? Instead of having a flag for it
Feature request: git open
opens the latest pull request opened for the current branch.
@ILI4S it was attempted here https://github.com/paulirish/git-open/pull/53 but currently resolving the pull request URL is nontrivial, so we prefer one of two options:
load the branch page (which has a link to the PR in the ui):
use issue branch naming and use the --issue
flag, as documented in the readme.
Pull request #144 added this option:
-c, --commit open current commit
As documented it is only for the current commit; trying to open a commit with an explicit value results in an error:
git-open --commit=8bb53b52560ea
error: option `commit' takes no value
And git-open -c 8bb53b52560ea
results in a nonsense URL like https://8bb53b52560ea/8bb53b52560ea/commit/56ddf13245a99490b5c079cdc4ab66b77809dae4
We may have to change the way the current commit works, or even with the flag do what derimagia said and check values so that existing commits aren't misinterpreted.
PR #155 allows me to pass a specific commit hash
Does anyone still need this feature?
How about
git open --commit xxxx
?