Mislav Marohnić
f87680e804
Explain multiple code paths
2019-12-03 19:52:45 +01:00
Mislav Marohnić
2621bccc44
Use RunCommand in tests to ensure flags reset between runs
2019-12-03 17:26:28 +01:00
Mislav Marohnić
723cd06b8a
Add pr list --assignee test
2019-12-03 16:01:03 +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ć
508f6787f0
Have PullRequestForBranch accept "owner:branch" value for forks
...
When on a `patch-1` branch locally, `gh pr view` would happily open the
first open PR it finds with "patch-1" as its head, even those coming
from forks.
2019-11-20 15:20:36 +01:00
Mislav Marohnić
0c2d8879d1
Use OWNER:BRANCH syntax for cross-repo PRs
...
This affects `pr status` and `pr list`.
2019-11-14 16:46:59 +01:00
Mislav Marohnić
b2c06caf51
Merge remote-tracking branch 'origin/master' into pr-list
2019-11-06 19:47:05 +01:00
Mislav Marohnić
5fcda2b5b5
Merge remote-tracking branch 'origin/master' into pr-list
2019-11-06 19:45:10 +01:00
Mislav Marohnić
524fe0a69b
🔥 last instance of mockOpenInBrowser
2019-11-06 19:41:18 +01:00
Mislav Marohnić
32e36d2fe0
Merge branch 'master' into exec-cmd-error-info
2019-11-06 19:36:12 +01:00
nate smith
e3a11c8ffb
fix pr filtering
2019-11-06 18:10:22 +01:00
Mislav Marohnić
667704d574
Add pr list command
...
Old `pr list` is now `pr status`
2019-11-06 17:33:45 +01:00
Mislav Marohnić
8ee97d72cd
Extract outputStub into testing.go
2019-11-01 23:20:15 +01:00
Mislav Marohnić
f6fcdf114e
Use SetPrepareCmd hook to spy on OpenInBrowser
...
We are now able to assert that the browse command was called with the correct URL
2019-11-01 22:18:12 +01:00
Corey Johnson
cf1feb847e
Add gh issue list and gh issue view ISSUE_NUMBER
2019-10-31 11:02:27 -07:00
Mislav Marohnić
f786802e9e
Customizable API client
2019-10-29 21:07:03 +01:00
Corey Johnson
a25fa5d66b
Merge remote-tracking branch 'origin/master' into pr-view-tests
2019-10-17 10:39:49 -07:00
Mislav Marohnić
8016d80884
Create overridable Context interface
2019-10-17 02:25:59 +02:00
Corey Johnson
32c9cb9892
Great work corey
2019-10-16 16:28:56 -07:00
Corey Johnson
19d02404cd
Add PRView test
2019-10-16 16:25:51 -07:00
Corey Johnson
a8b7e4c5f3
Add PRView tests
2019-10-16 14:47:47 -07:00
Corey Johnson
b31f42180c
Use the entire fixture path
2019-10-16 10:59:28 -07:00
Corey Johnson
2a3315097c
rename to helpers
2019-10-14 11:25:59 -07:00
Corey Johnson
f88b3bb7c5
Use fixture directory
2019-10-14 11:02:56 -07:00
Corey Johnson
ef1a8a80f1
Tests use temp git repo
2019-10-14 10:18:27 -07:00
Corey Johnson
1303204b80
Clean some things up
2019-10-11 10:43:06 -07:00
Corey Johnson
5b28291762
Clean up tests
2019-10-11 10:07:40 -07:00
Corey Johnson
8a0e6f5d1d
Add test for gh pr list
2019-10-11 09:50:18 -07:00