Commit graph

5446 commits

Author SHA1 Message Date
Natthakit Susanthitanon
60d8cb085a Add gh auth token 2022-09-22 15:47:19 +07:00
Nate Smith
87a0db2a3b
Merge pull request #6317 from cli/cmbrose/local-ssh-test-fix
Ensure local keys don't interfere with ssh_test
2022-09-21 19:31:23 -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
vilmibm
d8a276e83b add and use ConfirmDeletion in {label,repo} delete 2022-09-21 17:19:13 -07:00
Caleb Brose
cc98ffd6fa Ensure local keys don't interfere with ssh_test 2022-09-21 19:43:31 +00: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
Isaac Shalom
f1be4dc51c
Fix looking up workflow name for workflow runs (#6266)
The API field `WorkflowRun.name` is not guaranteed to correspond to the workflow name anymore. This introduces additional API lookups that resolve Workflows by their ID and look up their name in a future-proof fashion.

It also adds two new JSON fields for export: `displayTitle` and `workflowName`.

Co-authored-by: Christina Guo <61271066+guo-chris@users.noreply.github.com>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-09-21 20:41:19 +02:00
vilmibm
7b21a3ea45 use Prompter in context 2022-09-21 11:33:28 -07:00
Mislav Marohnić
113acf9245
Add the option to generate a README for the created repository (#6264) 2022-09-21 16:08:26 +02:00
Mislav Marohnić
354cfbd1b1
Merge pull request #6306 from cli/typo
fix typo
2022-09-21 14:09:20 +02:00
Caleb Brose
bb6db4b309 PR suggestions 2022-09-20 22:00:27 +00:00
Caleb Brose
4a8047ed61 Improve error handling 2022-09-20 19:36:07 +00:00
vilmibm
198c57a4c6 fix typo 2022-09-20 12:11:36 -07:00
Caleb Brose
deedd35a2c Merge branch 'cmbrose/no-ssh-api-call' of https://github.com/cli/cli into cmbrose/no-ssh-api-call 2022-09-20 18:32:01 +00:00
Caleb Brose
373634ad75 Rename to generateAutomaticSSHKeys 2022-09-20 18:32:00 +00:00
Caleb Brose
045bb54157
Apply suggestions from code review
Co-authored-by: Jose Garcia <josebalius@github.com>
2022-09-20 13:22:38 -05:00
Caleb Brose
049a3676f4 Use filepath instead of path 2022-09-20 15:59:38 +00:00
Caleb Brose
83c67d3b57 Merge remote-tracking branch 'origin/trunk' into cmbrose/no-ssh-api-call 2022-09-20 15:22:27 +00:00
Caleb Brose
3b52df6f99 Don't add private key for -i 2022-09-20 15:21:59 +00:00
Caleb Brose
dba1259d32 Update tests 2022-09-20 01:02:06 +00: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
Mislav Marohnić
6267bd368a
Merge pull request #6275 from cli/ghe-gist-clone
Fix gist clone URL for GHE hosts
2022-09-19 18:50:50 +02:00
Nate Smith
24ff8fac40
Merge pull request #6253 from cli/auth-prompts
use Prompter in auth commands
2022-09-19 11:02:13 -05:00
Mislav Marohnić
b82884af2d
Merge pull request #6279 from 8Gitbrix/revert-6223-revert-6171-add-org-secrets-api
Revert "Revert "Added functionality for org-level codespaces secrets""
2022-09-19 15:24:35 +02:00
Sam Coe
de83df12d2
Stub out time.Now for search tests (#6299) 2022-09-19 14:54:18 +04:00
Heath Stewart
cd63b0eac5 Add more help to "template" flags
Resolves #6089
2022-09-17 23:12:48 -07:00
Caleb Brose
0c00ca911e Clean up API interface 2022-09-16 22:25:11 +00:00
Caleb Brose
939c7c71cd Remove API call for ssh keys 2022-09-16 22:22:13 +00:00
Chris Westra
9a38142a0f Add tests, update stubs for feature detection 2022-09-16 13:38:51 -04: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
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
Ashwin Jeyaseelan
b47ed57694 Revert "Revert "Added functionality for org-level codespaces secrets (#6171)" (#6223)"
This reverts commit eaabd35b76.
2022-09-15 15:53:28 -07:00
Mislav Marohnić
27294c197f gist clone: fix clone URL for GHE gists
Use `HOSTNAME/gist/ID` instead of `gist.HOSTNAME/ID` as clone URL for
Enterprise since it's not guaranteed that the `gist.` subdomain is
configured for a GHE instance.
2022-09-15 18:25:16 +02:00
Mislav Marohnić
cfb7e66d2b
Merge pull request #6260 from cli/fix-branch-delete
Fix deleting remote branches with `#` in their name
2022-09-15 11:06:04 +02: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
Mislav Marohnić
984cc9f441 Fix tests 2022-09-14 17:05:43 +02:00
Sam Coe
a30de8d72a
Output paid message for codespace create to stderr not stdout (#6258) 2022-09-14 11:33:55 +00: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
vilmibm
8f3032af36 use Prompter in auth commands 2022-09-13 13:22:50 -07: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