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
ffalor
e5b37ee661
add --required flag to gh pr checks ( #5648 )
2022-09-10 08:00:29 +00:00
Mislav Marohnić
436d9ef859
Fix "missing method Fd" crash on Windows ( #6200 )
...
This ensures that `IOStreams.Out` always keeps the original `Fd()` value even if it's wrapped as a Colorable stream for Windows in cases when enabling virtual terminal processing has failed.
2022-09-06 17:29:06 +02:00
Mark Woods
e876b22963
Change markdown wrap limit match terminal width ( #6016 )
2022-09-01 07:36:25 +00: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
6955db471d
Set default value for all Select prompts ( #6131 )
2022-08-24 09:10:38 +03:00
Nate Smith
1da31c8b8f
Merge pull request #6085 from satotake/add-age-to-pr
...
Add age field to `pr list` / `pr view`
2022-08-23 11:55:29 -05: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
satotake
61e0c5a294
Add age field to pr view
2022-08-17 02:02:53 +09:00
satotake
837fac0da3
Add age column to pr list
2022-08-17 01:23:53 +09:00
Nate Smith
5ab5b45d2b
Merge pull request #5968 from cli/prompt-factory
...
Add Prompter
2022-08-15 16:35:26 -05:00
Nate Smith
9f8862e919
Merge pull request #6074 from vbh/pr-diff-name-only
...
Add name-only flag to `gh pr diff` sub command
2022-08-15 16:25:07 -05:00
vilmibm
6bc89ebbc2
Merge remote-tracking branch 'origin/trunk' into prompt-factory
2022-08-15 16:24:28 -05:00
vilmibm
2d61fdc493
linter appeasement
2022-08-15 16:13:49 -05:00
vilmibm
d5b2a06be9
gofmt
2022-08-15 16:11:13 -05:00
vilmibm
1b05c971a9
simple argument test for name-only
2022-08-15 16:11:08 -05:00
Bindu
7036d055b5
Add name-only flag to gh pr diff sub command
2022-08-14 06:47:37 -07:00
vilmibm
5f41801813
modernize the tests for pr create
2022-08-10 15:04:11 -05:00
vilmibm
dfd6908cd0
refactor determineTrackingBranch tests
2022-08-10 15:03:45 -05: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
f7d5c5f725
move prompter to own package
2022-07-26 16:41:13 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
vilmibm
710212fb3d
use Prompter in pr review
2022-07-26 14:53:10 -05:00
Mislav Marohnić
02881b4783
Correctly determine run started/elapsed timestamps ( #5945 )
...
This switches `run list` and `run view` commands to measure how long ago did the run happen by using `run_started_at`, which is the timestamp of the latest run in a series, instead of `created_at`, which is the timestamp of the first run. This change also fixes accurate duration for in-progress runs.
2022-07-21 17:30:46 +02:00
vilmibm
1bcf97b914
Merge remote-tracking branch 'origin' into issue5679
2022-07-12 15:40:29 -05:00
Mislav Marohnić
dea1af1227
pr checks: avoid deduplicating same-named checks under different workflows ( #5919 )
2022-07-12 09:48:39 +00:00
Mislav Marohnić
1037917d67
Merge pull request #5916 from cli/fork-without-rename
...
repo fork: directly fork under the desired name
2022-07-12 11:37:59 +02:00
ffalor
821f8ba1d2
Add error message to pr close when missing args ( #5885 )
2022-07-11 15:30:12 +00:00
Mislav Marohnić
5656296ade
repo fork: directly fork under the desired name
...
A new GitHub feature landed where the API client can specify the desired
name of the new fork. This avoids the necessity of subsequently having
to rename the forked repo after the fork operation has created one.
For backwards compatibility, the renaming logic is still here, but
activates only if the resulting repo name is not the desired name.
2022-07-11 13:54:58 +02:00
Mislav Marohnić
04485144ea
pr status: fix detecting PR for curent branch
2022-07-11 13:16:33 +02:00
Sam Coe
074ed50b8a
Integrate go-gh API package ( #5614 )
2022-06-23 04:05:31 +01:00
wilhelm
0f02371734
clear pr create multiselect on select
2022-06-22 17:43:41 +10:00
ffalor
2388f51927
Add --match-head-commit field to gh pr merge ( #5692 )
...
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-06-20 17:18:00 +02:00
Mislav Marohnić
4c6358dcbf
Guard PR merge queue queries behind feature detection
2022-06-08 12:25:22 +02:00
Ariel Deitcher
53a8737c87
pr merge: add support for Merge Queue
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-08 12:24:36 +02:00
Mislav Marohnić
f184d7ec58
pr create: allow forking repositories with INTERNAL visibility
...
The IsPrivate field of "internal" repositories is always true, but those
repositories aren't truly private and absolutely can be forked. We
shouldn't be checking for platform permissions in the client anyway, so
let's just drop this check and have the platform decide whether this is
a valid operation.
2022-06-07 17:56:06 +02:00
Heath Stewart
be4b392530
Use alternate screen buffer for watching runs
...
Resolves #5679
2022-05-23 22:18:11 -07:00
Mislav Marohnić
2139e763fb
Write Cobra deprecation messages to stderr
...
We used to do the equivalent of `rootCmd.SetOut(os.Stdout)` because we
thought that Cobra's "Out" stream represents standard output. However,
upon closer inspection it turns out that this is Cobra's stream for
usage errors and deprecation warnings, and those we want written to
stderr as well. It is not clear to me why Cobra maintains a distinction
between "Out" and "Err" streams since both seem to go to sdterr by
default.
This change also ceases our usage of `command.Print()` functions in
favor of explicitly writing to `IOStreams.Out/ErrOut`.
2022-05-23 20:23:42 +02:00
Heath Stewart
3574240fa7
Always clear screen when watching PR checks ( #5678 )
2022-05-23 08:38:50 +02: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
539b150833
Extract feature detection package ( #5494 )
2022-05-17 19:07:44 +00: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
Mislav Marohnić
cf92705d4c
pr create: default to "Submit as draft" when --draft was used
2022-05-10 17:09:40 +02:00
Ariel Deitcher
c1345296ab
Merge pull request #5514 from mntlty/pr_merge_refactor
...
refactor merge command
2022-05-09 11:56:36 -07:00
Mislav Marohnić
2c178cedd5
Dis-ambiguate "currentBranch"
2022-05-04 22:38:19 +02:00
Mislav Marohnić
b9026ab862
💅
2022-05-04 22:23:52 +02:00