Commit graph

444 commits

Author SHA1 Message Date
Chris Westra
48f527fdd3 Show repo url for linked branches in tty 2022-09-26 14:39:04 -04:00
Chris Westra
9a38142a0f Add tests, update stubs for feature detection 2022-09-16 13:38:51 -04:00
Chris Westra
76d975524e Add feature detection query 2022-09-16 12:13:22 -04:00
Chris Westra
6f0bf82696 Properly check for omitted name param, fix stubs 2022-09-16 10:41:10 -04:00
Chris Westra
1f26eb6899
Merge branch 'trunk' into create-linked-branch-command 2022-09-14 16:28:54 -04:00
Chris Westra
79783162f4 self-review cleanup 2022-09-14 16:26:49 -04:00
Chris Westra
bc72d6b983 Omit name param from mutation when blank
As it currently sits the backend won't ignore the param. I'll be looking to
add a PR for this but for now we'll remove it.
2022-09-14 14:54:43 -04:00
Chris Westra
48512176d8 Error when issue-repo doesn't match issue url 2022-09-14 11:57:51 -04:00
Sam Coe
e14d14cef2
Add support for issue state reason (#6245) 2022-09-14 12:39:15 +04:00
Sam Coe
e7102f9d84
Migrate to go-gh text package (#6236) 2022-09-14 09:23:55 +04:00
Chris Westra
0f1924ba7e WIP tests for --list flag 2022-09-13 17:06:27 -04:00
Chris Westra
07e84ea7a9 Add tests for checkout flag 2022-09-13 15:01:19 -04:00
Chris Westra
398c86b8a2 Use shared fn to look up issue and its repo 2022-09-13 10:47:57 -04:00
Chris Westra
ac4fc388bf List linked branches works 2022-09-13 07:28:33 -04:00
Chris Westra
8cf8a16e6a WIP add --checkout option 2022-09-12 17:20:24 -04:00
Chris Westra
6248e62611 Use GraphQLQuery test helper
GraphQLMutation expects a single `input` variable
2022-09-12 11:28:49 -04:00
Chris Westra
e1b83496fa Make sure struct fields are public 2022-09-12 10:30:38 -04:00
Chris Westra
2e98e8a4a7 Get that test mostly working 2022-09-08 17:17:06 -04:00
Chris Westra
5734df806b FIll in all the missing stuff in the test setup 2022-09-08 12:18:37 -04:00
Chris Westra
5f3f00f909 WIP 2022-09-08 10:04:12 -04:00
Chris Westra
0e1bae7be0 WIP 2022-09-06 17:04:37 -04:00
Chris Westra
152b861001 WIP 2022-09-01 16:36:48 -04:00
Mark Woods
e876b22963
Change markdown wrap limit match terminal width (#6016) 2022-09-01 07:36:25 +00:00
ffalor
665e4e3446
Add new commands issue pin and issue unpin (#5597) 2022-08-31 10:16:45 +00:00
Chris Westra
711591c92b WIP 2022-08-26 15:25:19 -04:00
Sam Coe
2fc0ffd0be
Fix auth refresh prompter initialization (#6141)
* Fix prompter not being initialized in auth refresh

* fix broken issue list test
2022-08-25 12:07:40 +03:00
satotake
b3ab76818c Refactor issue list and pr list tests
following #6085

* Inject fake `Now` function to tests of `issue list` / `pr list`
* Remove `regexp` from the tests
2022-08-25 00:01:29 +09:00
chemotaxis
7a5ed08185 Test reasonsMap construction
Make sure reasons were added in the correct order.
2022-08-23 23:24:42 -04:00
chemotaxis
077ab39738 Implicitly return the nil value when no lock reason given
While I usually like explicitly setting all values, getting rid of
setting the empty string streamlines map construction and testing.

The reasonsMap will return the nil value because the empty string is not
in the map.
2022-08-23 23:16:15 -04:00
chemotaxis
4bb6e0d585 Alphabetize fields 2022-08-23 14:29:21 -04:00
chemotaxis
2970555cea Update comments 2022-08-23 14:24:13 -04:00
chemotaxis
cf822e4d9c Remove direct calls to graphql library
Similar to commit 45f1a71c8b
2022-08-23 01:35:19 -04:00
chemotaxis
b5c18423a4 Merge remote-tracking branch 'upstream/trunk' into gh-issue-lock
Add recent changes, especially changes to `api`.
2022-08-23 01:08:53 -04:00
Sam Coe
45f1a71c8b
Remove all direct calls to shurcool-graphql 2022-08-18 21:40:41 +03:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages (#6084) 2022-08-18 09:04:13 +03:00
vilmibm
41385477c3 fix linting 2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115 Revert "update linter checks"
This reverts commit 40ecb8c188.
2022-07-27 13:30:41 -05:00
vilmibm
40ecb8c188 update linter checks 2022-07-26 16:06:52 -05:00
chemotaxis
a485303391 Merge remote-tracking branch 'upstream/trunk' into gh-issue-lock
Update a somewhat stale feature branch with the latest stable commits.
2022-07-26 04:23:27 -04:00
Sam Coe
074ed50b8a
Integrate go-gh API package (#5614) 2022-06-23 04:05:31 +01:00
Mislav Marohnić
4d9a6ecb25 pr create: ensure clear error when --body is missing in nonTTY mode 2022-05-18 19:13:59 +02:00
Sam Coe
d244346960
Replace uses of strings.Title (#5623) 2022-05-12 13:52:21 +00:00
Mislav Marohnić
5cb4e4d862
Merge pull request #5570 from koskeller/submit-as-draft-option-pr-create
pr create: add "Submit as draft" interactive option
2022-05-10 17:17:07 +02:00
Konstantin Keller
dea446d2a8
"Submit as draft" option for pr create 2022-05-03 22:20:22 +03:00
Mohammed Anas
b352648259
Fix non-working gh issue view usage example (#5563) 2022-05-03 07:55:00 +00:00
chemotaxis
718bb80fbd Add failure icon 2022-04-29 00:30:02 -04:00
chemotaxis
11fde2ee29 Restructured switch statement
As much as I like keeping statements as flat as possible, this
not-as-flat revision just seems easier to read.
2022-04-29 00:23:36 -04:00
chemotaxis
3723ab9230 Polished things 2022-04-29 00:23:36 -04:00
chemotaxis
c429726b53 Polished error message 2022-04-29 00:23:36 -04:00
chemotaxis
e0573fa68d Use if/else if on error checking
Use switch statements for regular branching code.
2022-04-29 00:23:36 -04:00