pcl / git-pull-request Goto Github PK
View Code? Open in Web Editor NEWA git subcommand to create a pull request for the head commit of the current branch
License: Apache License 2.0
A git subcommand to create a pull request for the head commit of the current branch
License: Apache License 2.0
It'd be nice to have a test suite that generates a GitHub repo somewhere, runs some happy-path and edge cases, and reports on status.
GitHub itself does some level of validation of this case (possibly focused on attempts to create multiple open PRs for the same branch name). These result in an ugly failure currently; it'd be good to change that to be pretty.
It'd be nice if people could install by doing brew install git-create-pr
or something.
... or alternately, support more protocols.
To reproduce:
git rebase ...
git pr push foo branchname
Output:
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Traceback (most recent call last):
File "/usr/local/bin/git-pr", line 713, in <module>
sys.exit(main(sys.argv))
File "/usr/local/bin/git-pr", line 700, in main
exit_code = git_pr(argv)
File "/usr/local/bin/git-pr", line 602, in git_pr
return args.func(PullRequestController(), args)
File "/usr/local/bin/git-pr", line 548, in <lambda>
parser_push.set_defaults(func=lambda prc, args: prc.do_push(args))
File "/usr/local/bin/git-pr", line 265, in do_push
return self.create_pr(args.remote, args.branch, args.reviewer)
File "/usr/local/bin/git-pr", line 172, in create_pr
title = sh('git', 'show', '-q', change, '--format=format:%s')
File "/usr/local/bin/git-pr", line 532, in sh
return str(check_output(args), 'utf-8').strip()
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 376, in check_output
**kwargs).stdout
File "/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 468, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('git', 'show', '-q', '', '--format=format:%s')' returned non-zero exit status 128.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.