Mislav Marohnić
7a614ce697
Support triangular git workflows in pr create
...
- The local git remotes are scanned and resolved to GitHub repositories
- The "base" repo is the first result resolved to its parent repo (if a fork)
- The name of the default branch is read from the base repo
- The "head" repo is the first repo that has push access
2020-01-21 18:26:08 +01:00
Mislav Marohnić
eff8847513
Improve detecting PR for the current branch
...
Now reads git branch configuration and handles these cases:
branch ["foo"]
remote origin
merge refs/heads/bar
branch ["foo"]
remote other-remote
merge refs/heads/foo
branch ["foo"]
remote https://github.com/OWNER/REPO.git
merge refs/heads/bar
branch ["foo"]
remote origin
merge refs/pull/123/head
2019-11-20 15:20:36 +01:00
Mislav Marohnić
4fab43a667
Cover more pr checkout test scenarios
2019-11-14 20:53:34 +01:00
Mislav Marohnić
dc0de147c9
Add pr checkout command
2019-11-14 19:59:42 +01:00
Mislav Marohnić
f786802e9e
Customizable API client
2019-10-29 21:07:03 +01:00
Mislav Marohnić
641de86427
Eliminate package-level state in git remote parsing
2019-10-25 21:48:25 +02:00
Mislav Marohnić
79e8766d8f
Use eq in more tests
2019-10-17 14:44:53 +02:00
Mislav Marohnić
c09eb742c3
Keep original order of remotes
2019-10-17 13:46:35 +02:00
Mislav Marohnić
a8aa5feb02
Test remote parsing
2019-10-17 02:25:59 +02:00
Mislav Marohnić
8016d80884
Create overridable Context interface
2019-10-17 02:25:59 +02:00
nate smith
d7ee9a0ade
move remote to context package
2019-10-10 17:42:52 -05:00