Mislav Marohnić
8d82a96349
Fix fetching issue/PR comments
...
The "Author" struct was too overloaded in different types of queries that treat struct fields in incompatible ways. This change defines a simpler CommentAuthor struct for use in comments until we can figure out how to query `... on User` information for comments too.
2022-12-23 17:14:06 +01:00
Mislav Marohnić
f8f206e063
Group PR, release, and repo subcommands
2022-12-21 14:47:59 +01:00
Mislav Marohnić
fcd86c00b4
Merge remote-tracking branch 'origin' into cobra-update
2022-12-21 13:23:41 +01:00
Nate Smith
1f85a92463
Merge pull request #5333 from chemotaxis/gh-issue-lock
...
Add `lock` and `unlock` commands for issues and pull requests
2022-12-20 18:04:34 -06:00
Mislav Marohnić
a55dd656f3
Merge remote-tracking branch 'origin' into cobra-update
2022-12-20 17:15:25 +01:00
vilmibm
b52d452168
wip: tweak output, update to Prompter, start on tests
2022-12-16 13:01:09 -08:00
vilmibm
5a6b4ce934
Merge remote-tracking branch 'origin/trunk' into gh-issue-lock
2022-12-16 10:10:59 -08:00
vilmibm
f5d19b831e
error instead of prompt when no base repo + fixes
2022-12-15 11:44:37 -08:00
Natthakit Susanthitanon
33779630da
Exclude the current user from reviewers when creating pr ( #6464 )
2022-12-08 08:51:35 +02:00
vilmibm
91445d2df3
Merge remote-tracking branch 'origin/trunk' into pr-prompter
2022-12-05 11:27:55 -08:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
chemotaxis
8cdff1327c
Merge remote-tracking branch 'upstream/trunk' into gh-issue-lock
...
Resolved conflicts mainly around pinning comments.
2022-11-13 19:12:19 -05:00
Mislav Marohnić
b12ea845ef
Migrate to the new Cobra command grouping feature
2022-11-09 16:42:13 +01:00
Sam Coe
f96b2fce57
Refactor git client and add tests ( #6525 )
2022-11-03 11:58:38 +01:00
Mislav Marohnić
8c32ca925c
Enable gh pr create --repo <repo> from outside of a local git repository
...
When failing to read information from the local git repository, silence that failure if `--repo` was given.
2022-10-28 18:22:37 +02:00
Mislav Marohnić
5d3a8e380a
Fix double import
2022-10-28 17:58:04 +02:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
vilmibm
afcfd78852
use Prompter in pr merge
2022-10-19 13:05:00 -07:00
vilmibm
42c017b887
use Prompter in Commentable
2022-10-19 13:05:00 -07:00
vilmibm
47eebe0c64
use Prompter in template manager
2022-10-19 13:05:00 -07:00
vilmibm
a3b1bb7fb2
use Prompter in pr create
...
Note that this isn't done; it's leaving the metadata piece alone until
better testing utils are in place
2022-10-19 13:05:00 -07:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
ffalor
e7270e401d
add --web flag to pr diff command ( #6439 )
2022-10-18 09:02:53 +00: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
Sam Coe
2944f7c3ab
Create git client ( #6354 )
2022-10-14 07:47:03 +00: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
Nate Smith
99e76a709f
Merge pull request #6292 from lpessoa/lp-checks
...
feat: adding checks at GH PR view
2022-10-06 14:27:38 -05:00
lpessoa
fb6f538f88
Adding no checks message when PR has no checks
...
Including additional tests.
2022-10-05 22:10:38 -03:00
Nate Smith
9e7a6ebe4e
Merge pull request #6382 from aacoakley/merge-author-email-flag
...
Add flag to pr merge allowing the selection of the merge commit email
2022-10-04 14:50:57 -05:00
Ariel Deitcher
577d42280c
surface merge conflicts in pr status ( #5999 )
2022-10-03 09:32:48 +00:00
Austin Coakley
6d4b10edf0
Added flag to pr merge allowing the selection of the merge commit email
2022-10-01 12:16:05 -05:00
Nate Smith
666470744d
Merge pull request #6313 from cli/context-prompter
...
use Prompter in context
2022-09-21 19:28:54 -05:00
Mislav Marohnić
d4e9b1f6a2
Merge pull request #6314 from cli/fix-git-push-prompt
...
Allow `git push` during PR create operation to prompt on stdin
2022-09-21 21:07:37 +02:00
Ariel Deitcher
49f6b20d3d
Add undo option to pr ready command to convert PR to draft ( #5995 )
2022-09-21 19:00:13 +00:00
Mislav Marohnić
6ca9406554
pr create: allow git push step to prompt on stdin
2022-09-21 20:57:53 +02:00
vilmibm
7b21a3ea45
use Prompter in context
2022-09-21 11:33:28 -07:00
lpessoa
6246f89690
Adding new tests for 'view' and 'shared display'
...
Added all passed, all failed, some failed and pending scenarios.
Added tests for PrCheckStatusSummaryWithColor.
2022-09-19 16:41:01 -05:00
lpessoa
742b50c929
Adding new tests for 'view' and 'shared display'
...
Added all passed, all failed, some failed and pending scenarios.
Added tests for PrCheckStatusSummaryWithColor.
2022-09-19 16:37:22 -05:00
lpessoa
e8767b9706
feat: adding checks at GH PR view
...
Fixes #6117
Adding checks to PR view as a new line along with changes information.
Isolated 'status' display logic into a shared method in order to reuse it in 'view'.
Updated existing 'view' tests.
TODO: add new tests for PRs with checks.
2022-09-16 13:56:10 -03: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
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
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