I abhore manual, tedious and repetitive tasks as any normal developer should. Recently I realized - creating pull requests on numerous git repos taking up too much of my time. And most of the time you have to follow almost exact steps over and over:
- log into git provider's web client - we use Stash
- click, click, click until you find "Create Pull Request" button, then click it
- select a branch - usually it's a branch that's just been pushed
- select a target branch - most of the time it's "develop"
- add reviewers - most of the time exact same people
- add description - optional
At some point I started wondering if I could do all that without using web client. And it seems to be possible. Stash and Bitbucket have an api, Github has one as well (although it is different - the first one uses ssh and the latter http)
Now, this thing would probably simplify some things, yet I feel it can be even better.
I use Emacs (Spacemacs distro, to be specific).
Now I'm wondering if anyone already built anything that integrates with magit
, or maybe I could do it myself?
I mean how difficult would it be?
Script should let you commit and then push the branch and then create a pull-request based of that branch against "develop", using given defaults. Has anyone done anything like that?
Can you guys point me at some elisp
plugins that utilize power of magit
for doing similar stuff. Maybe I'd be able to write something myself.