jerrygreen / git-pr Goto Github PK
View Code? Open in Web Editor NEWa helper script for git and github to create new or open existing PR for your branch
License: MIT License
a helper script for git and github to create new or open existing PR for your branch
License: MIT License
It will help to quickly create branches like foo2
, foo3
P.S. maybe not needed
P.P.S. maybe to make it some kind of git extension? so the command will look like git pr
, not git-pr
git-pr qwe
doesn't open a link suggesting to create a PR
Using a command git-pr cool_feature
I'll should have a branch: jerrygreen/cool_feature
Long story short: microsoft actively uses it
Long version:
Github uses yourname:yourbranch
if it's a fork. However, it looks fine for non-forks to use yourname/yourbranch
. It's especially important for big projects because you bypass naming conflicts. There is also a thing called "groups" (more info on stackoverflow) - so there's already some naming convention.
Where to get the username?
I can setup it with git config --global user.github jerrygreen
So git config --global user.github
will return:
jerrygreen
It's possible to setup already, however, this key, user.github
is not standard, so it's needed to add some info about configuration to README.md
. Also, if the value is not set, need to print a hint of how to set it up.
Use git stash
& git apply
functionality instead of git reset
& git add
Here in the code:
Currently the git-pr-new
command is adding unstaged changes to staged (if the same file has some staged changes and unstaged changes simultaneously)
Some helpful links:
git-pr
from master branch should open /team/project/pulls
url (i.e. list of PRs)
git-pr
from master branch currently does nothing. So having this feature would be useful and save time while jumping between projects and urls.
For a PR title it could be cool to automatically translate branch name:
branch_name
branch-name
To humanized title:
Branch name
For title, and for commit message
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.