Commit graph

228 commits

Author SHA1 Message Date
Sam Coe
f96b2fce57
Refactor git client and add tests (#6525) 2022-11-03 11:58:38 +01:00
vilmibm
afecf7e5d0 use tableprinter in issue develop 2022-10-24 15:23:52 -07:00
vilmibm
96372e5ac8 use new GitClient in issue develop 2022-10-24 15:02:24 -07:00
Nate Smith
a20192943d
Merge pull request #6254 from Bestra/create-linked-branch-command
Add `gh issue develop` command
2022-10-24 16:26:56 -05:00
Seito Tanaka
e523d50176
Add support for editing last issue/pr comment (#6384) 2022-10-18 08:10:12 +00:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh (#6346) 2022-10-17 15:15:39 +02:00
Natthakit Susanthitanon
4c3b123db6
Return empty error before starting a pager program (#6419)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-13 19:08:13 +02:00
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
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
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
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
Sam Coe
db85b1d3cb
Properly handle issue and pr state options when building search queries (#5513) 2022-04-25 20:18:58 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found (#5479)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00
Mislav Marohnić
adf274851e
Merge pull request #5396 from opelr/5346/issue-delete-confirm
Add 'confirm' flag for issue delete subcommand
2022-04-11 19:17:44 +02:00
Sam Coe
6fa8e4299c
Add ability to comment on close/reopen of issues/pull requests (#5437) 2022-04-11 17:06:35 +02:00