Commit graph

446 commits

Author SHA1 Message Date
Toshiya Doi
0cfa4be86a Add tests for utilities of PR/issue state format 2020-03-18 07:30:28 +09:00
Toshiya Doi
46a632c8f6 Fix utility function scopes 2020-03-18 04:52:03 +09:00
Toshiya Doi
e85259d84f Remove labels from the issue preview header
See https://github.com/cli/cli/issues/652#issuecomment-598940740
2020-03-18 04:42:50 +09:00
Toshiya Doi
9a6026e9fc Format PR/Issue states with color 2020-03-16 04:32:41 +09:00
Toshiya Doi
c8a72c3bcb Add a test for viewing an issue without labels in CLI 2020-03-16 04:26:32 +09:00
Toshiya Doi
5a23113b5b Add tests for the Closed/Merged PR preview 2020-03-16 04:21:35 +09:00
Toshiya Doi
8cd6932f9e Add a test for the closed issue preview 2020-03-16 04:12:26 +09:00
Toshiya Doi
0475cf0112 Extract test fixtures for 'issue view --preview' 2020-03-16 03:21:03 +09:00
Toshiya Doi
e0bfd67c69 Fix tests for preview messages with a issue/PR state 2020-03-16 03:13:05 +09:00
Toshiya Doi
b8edb9f62d Show the PR state for viewing PRs in CLI 2020-03-16 02:41:02 +09:00
Toshiya Doi
caf26e4093 Show the issue state for viewing issues in CLI 2020-03-16 02:40:49 +09:00
Toshiya Doi
faa4bed67a Move colorFuncForState for a PR/issue state to the utils package 2020-03-16 02:32:11 +09:00
Toshiya Doi
102cfdb1a2 Rearrange the order of command initialization 2020-03-13 23:59:18 +09:00
Toshiya Doi
5e3aa31cf1 Fix 'gh issue view' usage description 2020-03-13 23:58:41 +09:00
Mislav Marohnić
8a4fd432ea
Merge pull request #638 from doi-t/show-the-most-recent-pr
Only show the most recent PR for the current branch
2020-03-13 10:07:12 +01:00
Toshiya Doi
4c4aeb5ec6 Return the latest PR belonging to the current branch 2020-03-13 09:49:20 +09:00
Mislav Marohnić
8913f6466d
Merge pull request #625 from eddumelendez/add_author_flag_issues
Add filter issues by author
2020-03-12 19:06:17 +01:00
Toshiya Doi
bc27ba2a75 Only show the most recent PR for the current branch 2020-03-13 00:25:17 +09:00
Toshiya Doi
3c4f006eff Add a test for the current branch 2020-03-13 00:24:44 +09:00
Mislav Marohnić
d323783a0f
Merge pull request #629 from sibis/verify-view-repo
Verify repository before viewing in the browser #598
2020-03-11 20:21:40 +01:00
sibis
0fc9dfac37 refactor: code cleanup incorporating the PR suggestions and removed blank lines 2020-03-12 00:44:07 +05:30
Mislav Marohnić
14603f43d4
Merge pull request #624 from rista404/pr-state-merged-closed-613
Show state instead of checks/reviews for closed/merged PRs
2020-03-11 19:10:30 +01:00
Nate Smith
a55b473188
Merge pull request #591 from cli/powershell-completions
Add support for PowerShell completion
2020-03-10 14:56:28 -07:00
Nate Smith
6886795a2d
Merge pull request #617 from cli/repo-create-homepage
Fix setting homepage URL in `repo create`
2020-03-10 14:52:49 -07:00
Nate Smith
80f4cdde82
Merge pull request #618 from cli/pr-create-validate
Ensure `pr create` validates all inputs before forking+pushing
2020-03-10 14:51:00 -07:00
rista404
e803470b03 Print merged/closed in the same line as PR title 2020-03-10 20:56:45 +01:00
sibis
0cef66dc67 Verify repo before viewing in the browser 2020-03-11 01:11:39 +05:30
Mislav Marohnić
7c11f7655a No need to opt in to shadow-cat API preview
This was needed for draft pull requests, but these APIs were public
since Feburary 2020.
2020-03-10 13:59:56 +01:00
Mislav Marohnić
42b40b1179 No longer need to opt into pe_mobile API flag
`pe_mobile` was required to get access to `reviewDecision` and
`statusCheckRollup`, but both are now public in GitHub API.
2020-03-10 13:58:06 +01:00
Eddú Meléndez
8e7ba907b1 Add filter issues by author 2020-03-09 18:50:23 -06:00
rista404
e739d95c93 Show state instead of checks for closed/merged PRs 2020-03-09 23:59:34 +01:00
Mislav Marohnić
d584a9692c Raise error if --draft was used in pr create --web
Since we cannot pass the "draft" option as query parameter, this raises
an error instead of proceeding to open the browser and potentially
confuse the user as to why `--draft` wasn't respected.
2020-03-09 14:53:27 +01:00
Mislav Marohnić
7777307588 Avoid forking/pushing until pr create inputs have been processed
This avoids fork or push operation if there were errors processing the
input arguments or if the operation has been cancelled during
interactive survey.
2020-03-09 14:51:40 +01:00
Mislav Marohnić
f9c32654e9 Fix setting homepage URL in repo create 2020-03-09 12:53:41 +01:00
Alisson Santos
dcedacd4f7 Remove duplicates 2020-03-05 13:55:36 +01:00
Mislav Marohnić
fa595596de Improve completion docs 2020-03-05 09:34:05 +01:00
Mislav Marohnić
aa07c5366e Add support for PowerShell completion 2020-03-05 09:33:49 +01:00
Billy Griffin
f2262cfcae
Consistent punctuation in usage 2020-03-04 10:22:46 -07:00
Christian Muehlhaeuser
fdfcecfcb6 Fix typo in 'overridden' 2020-03-04 14:20:55 +00:00
Billy Griffin
be32459de1
Update repo usage 2020-03-03 15:38:50 -07:00
Mislav Marohnić
74cd5b3837 Use overridable Confirm 2020-03-03 22:59:50 +01:00
Mislav Marohnić
15b758aaa9 Tweak repo docs 2020-03-03 22:59:35 +01:00
Mislav Marohnić
52cc04e300 Merge remote-tracking branch 'origin/master' into repo-create 2020-03-03 22:55:49 +01:00
Nate Smith
3d7733870e
Merge branch 'master' into repo-fork 2020-03-03 15:40:54 -06:00
vilmibm
44c0d115fc usage 2020-03-03 15:40:19 -06:00
vilmibm
90d2f99d2a this fetch was redundant since AddRemote fetches 2020-03-03 15:38:05 -06:00
Mislav Marohnić
a73880f5dd
Merge pull request #567 from cli/pr-selector-base
Fix detecting PR for current branch pushed to fork
2020-03-03 22:02:21 +01:00
Mislav Marohnić
232453173c
Merge pull request #574 from cli/help-flag
Ensure that `gh <command> -h` is equivalent to `--help`
2020-03-03 21:57:07 +01:00
Mislav Marohnić
be09717918 Add ability to repo create within an org 2020-03-03 21:49:47 +01:00
Mislav Marohnić
8deb0d8783 repo create NAME offers to set up when ran outside of a git repo 2020-03-03 21:07:51 +01:00