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
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
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count
2020-03-18 09:26:05 -07:00
Mislav Marohnić
cb06812d19
Merge pull request #532 from mingrammer/consistent-printing
...
fix: inconsistent format between issue list and status
2020-03-18 11:59:17 +01:00
vilmibm
00de6b9c09
switch defaults for issue view
2020-03-17 17:06:42 -05: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
Eddú Meléndez
8e7ba907b1
Add filter issues by author
2020-03-09 18:50:23 -06:00
Mislav Marohnić
9cd53b8f19
Simplify listHeader tests
2020-03-05 13:32:01 +01: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ć
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ć
f6eb710462
Fix test expectation on Windows
...
On Windows, `&` characters in URLs need to be escaped with `^`, but that
messes up the test expectation for other platforms, so this normalizes it.
2020-02-24 13:53:37 +01:00
Mislav Marohnić
38b58a4914
Respect explicit title & body with issue create --web
2020-02-24 13:41:46 +01:00
mingrammer
39ea067328
fix: inconsistent format between issue list and status
2020-02-23 18:36:49 +09: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
2c2c8a9991
added fix for empty body in issue preview
2020-02-13 01:44:03 -08:00
vilmibm
6732aa9725
fix tests
2020-02-12 08:48:25 -06:00
vilmibm
a998a650cd
still WIP, need to pause and refactor
2020-02-12 08:15:10 -06:00
vilmibm
c8a4ac66d8
start on fixing tests
2020-02-11 21:56:20 -06:00
vilmibm
d7bf83a82c
strip color, add whitespace
2020-01-30 14:00:43 -06:00
vilmibm
34248f9892
fix tests
2020-01-29 17:51:18 -06:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +01:00
vilmibm
8c84fe3e3c
just augment existing queries
2020-01-22 12:37:00 -06:00
vilmibm
f09b05e628
test for disabled issues
2020-01-21 15:47:36 -06:00
vilmibm
5bc6d220c4
review feedback
2020-01-13 15:32:07 -06:00
vilmibm
bbdf30c8f8
add tests for pr/issue previewing in terminal
2020-01-10 15:40:09 -06:00
Corey Johnson
f2afbbce74
Fix test output
2019-12-20 12:07:53 -08:00
Corey Johnson
58761a8dfc
Fix tests
2019-12-20 12:04:23 -08:00
Corey Johnson
8f74b658b2
Merge remote-tracking branch 'origin/master' into appropriate-context-and-feedback
2019-12-20 11:51:37 -08:00
Corey Johnson
bcf1f98702
Do a better job of reverting test changes
2019-12-20 11:32:27 -08:00
Corey Johnson
d025d2d4f3
Revert test changes
2019-12-20 11:24:03 -08:00
Mislav Marohnić
00cede9e5f
Fix issue list re: issues that have an assignee
...
Given the GraphQL query:
issues(filterBy: {assignee: $assignee})
It turns out that passing a query variable `"assignee": null` is NOT
equivalent to omitting the variable altogether:
- `"assignee": null` seems to filter out issues that HAVE an assignee;
- omitting `assignee` correctly returns all issues.
2019-12-20 13:07:11 +01:00
Mislav Marohnić
bd9b3b9bb5
Add tests for issue status/list/create on repos with issues disabled
2019-12-19 15:54:08 +01:00
Mislav Marohnić
66534e504b
Warn about repo issues disabled on issue create
2019-12-19 15:44:20 +01:00
Mislav Marohnić
915dd8b0ef
Warn about repo issues disabled on issue status/list
2019-12-19 15:44:20 +01:00
Mislav Marohnić
d9ca764ac2
Look up the repository only once in issue status GraphQL
2019-12-19 15:44:20 +01:00
Mislav Marohnić
2c1fc56967
Update output expectations
2019-12-17 13:01:45 +01:00
Mislav Marohnić
7b7c985e79
Merge remote-tracking branch 'origin/master' into appropriate-context-and-feedback
2019-12-17 13:00:10 +01:00
Mislav Marohnić
4ad89829c5
Merge remote-tracking branch 'origin/master' into stderr-tests
2019-12-17 12:42:01 +01:00
Corey Johnson
91267a65fa
Fix tests
2019-12-16 13:18:16 -08:00
Nate Smith
00da5c2788
Merge pull request #158 from github/issue-create-web
...
Add "Opening URL in your browser" notice to `issue create --web`
2019-12-16 10:53:31 -06:00
Mislav Marohnić
48aeff1ca7
Assert stdout separarely from stderr in command tests
...
This stubs stderr separately from stdout in command tests (before those
streams were combined) and improves test assertions around output.
Additionally, no longer use the `cmd.Print*()` family of Cobra functions
because their name sounds like the text will go to stdout, but they
write to stderr instead. Use the more explicit `cmd.ErrOrStderr()` as
output destination instead.
2019-12-16 15:46:42 +01:00
Mislav Marohnić
57c7266328
Fix displaying "There are no issues assigned to you" notice
2019-12-16 14:08:55 +01:00