Toshiya Doi
531bfbc295
Update unit tests for PR metadata
2020-04-08 20:07:19 +09:00
Toshiya Doi
85d8f808f2
Test pr metadata in CLI preview
2020-04-04 13:14:34 +09:00
Mislav Marohnić
e10ccefaf5
Merge pull request #667 from doi-t/view-the-current-state
...
Show the state (open, closed, merged) in issue view and pr view
2020-04-03 19:41:29 +02:00
Mislav Marohnić
734497a8d8
Code fixes informed by golangci-lint failures ( #738 )
2020-04-03 16:33:34 +02:00
Toshiya Doi
7eabbf5881
Simplify expected output definitions with new line testing helper
2020-04-03 00:35:48 +09:00
Toshiya Doi
0095fe9a13
Merge branch 'master' into view-the-current-state
2020-04-02 23:52:41 +09:00
vilmibm
44acdd4ec3
Merge branch 'master' into pr-status-no-commits
2020-03-30 12:04:02 -05:00
Mislav Marohnić
beb0a6a322
Merge pull request #683 from cli/pr-status-unicode
...
Add unicode to pr status
2020-03-26 13:30:26 +01:00
vilmibm
f4b8851011
Merge remote-tracking branch 'origin/master' into pr-status-no-commits
2020-03-25 12:00:58 -05:00
Nate Smith
e4b8ae0ec4
Merge pull request #665 from cli/preview-default
...
switch {pr,issue} view default
2020-03-25 11:32:46 -05:00
Nate Smith
26022bc684
Merge pull request #690 from cli/repo-view-terminal
...
Add ability to view repo in terminal and do it by default
2020-03-25 11:32:26 -05:00
Toshiya Doi
7d42f46cda
Merge branch 'master' into view-the-current-state
2020-03-25 22:46:12 +09:00
Mislav Marohnić
88cbcc9ec5
Merge remote-tracking branch 'origin/master' into pr-status-unicode
2020-03-25 09:06:27 +01:00
vilmibm
dd1e2a2dfc
add StubError to CmdStubber
2020-03-24 14:19:35 -05:00
vilmibm
5187ad4431
move preparecmd and Runnable to its own package
2020-03-23 16:32:29 -05:00
vilmibm
ff96f48479
add ExpectLines helper
2020-03-20 16:26:49 -05:00
Mislav Marohnić
88c060c610
Fix broken pr view test
2020-03-20 18:15:09 +01:00
Toshiya Doi
0ba0a0757d
Merge branch 'master' into view-the-current-state
2020-03-20 18:16:47 +09:00
Toshiya Doi
1a5e9f1b61
Apply table driven testing for pr/issue preview commands
2020-03-20 16:32:52 +09:00
Amanda Pinsker
fe7def13d3
Update tests
2020-03-19 13:16:07 -07:00
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count
2020-03-18 09:26:05 -07:00
Toshiya Doi
a2d3923d21
Add unit tests for Closed and Merged states of the current branch
2020-03-18 21:35:06 +09:00
Toshiya Doi
a5bd3130c4
Cleanup
2020-03-18 10:03:04 +09:00
Toshiya Doi
327a804959
Fix tests to support the "Draft" state badge
2020-03-18 09:57:46 +09:00
Toshiya Doi
7ceffd0827
Merge branch 'master' into view-the-current-state
2020-03-18 08:51:04 +09:00
Toshiya Doi
762e806c9e
Add tests for viewing a Draft PR in CLI
2020-03-18 08:23:29 +09:00
Toshiya Doi
0cfa4be86a
Add tests for utilities of PR/issue state format
2020-03-18 07:30:28 +09:00
vilmibm
c30b482bf0
switch defaults for pr view
2020-03-17 17:06:42 -05:00
Toshiya Doi
9a6026e9fc
Format PR/Issue states with color
2020-03-16 04:32:41 +09:00
Toshiya Doi
5a23113b5b
Add tests for the Closed/Merged PR preview
2020-03-16 04:21:35 +09:00
Toshiya Doi
e0bfd67c69
Fix tests for preview messages with a issue/PR state
2020-03-16 03:13:05 +09:00
UmairShahzad
f51669e228
Merge remote-tracking branch 'origin/master' into pr-count
2020-03-14 19:02:51 +05:00
vilmibm
ed8aaa83e3
add CmdStubber
2020-03-13 15:12:09 -05:00
Toshiya Doi
3c4f006eff
Add a test for the current branch
2020-03-13 00:24:44 +09:00
rista404
e739d95c93
Show state instead of checks for closed/merged PRs
2020-03-09 23:59:34 +01:00
Alisson Santos
dcedacd4f7
Remove duplicates
2020-03-05 13:55:36 +01:00
Mislav Marohnić
9cd53b8f19
Simplify listHeader tests
2020-03-05 13:32:01 +01:00
Mislav Marohnić
1ba577ca36
Merge remote-tracking branch 'origin/master' into pr-count
2020-03-05 12:31:05 +01:00
UmairShahzad
debedf98cf
include int in command reset to reset 'Limit'
2020-03-04 02:36:38 +05:00
UmairShahzad
77a6caa84d
test for all possible titles
2020-03-04 01:47:30 +05:00
UmairShahzad
945d4ffb55
Merge branch 'master' of https://github.com/cli/cli into pr-count
2020-03-04 00:09:35 +05:00
Mislav Marohnić
201217d88a
Fix detecting PR for current branch pushed to fork
...
Now passing base repo as reference to `prSelectorForCurrentBranch()` so
that it doesn't have to (inexactly) determine the base repo itself and
risk it being different than the base repo determined during `pr
status/view`.
2020-03-02 11:35:20 +01:00
Mislav Marohnić
f5b0354ae3
Fix tests
2020-02-27 12:11:49 +01:00
Myk
038e5e5342
Accept #<num> syntax as issue/PR number
2020-02-27 12:11:49 +01:00
UmairShahzad
3c687ed111
moved getTitle to common; changed title string
2020-02-27 00:57:42 +05:00
UmairShahzad
b8a7c87142
Merge remote-tracking branch 'cli/master' into pr-count
2020-02-27 00:11:38 +05:00
Mislav Marohnić
861b231344
Have --state=closed include merged PRs
...
Since we currently offer no way of querying PRs by combining multiple
states with an OR, the best way to handle the `closed` state is to match
what the web UI is doing; that is to include merged PRs.
2020-02-20 13:53:44 +01:00
UmairShahzad
c50f6f324e
updated list tests
2020-02-15 23:06:08 +05:00
UmairShahzad
906f49659f
updated title and tests
2020-02-15 22:37:13 +05:00
Anowar Islam
8f9574be35
added fix for empty body in pr preview
2020-02-13 01:43:51 -08:00