Commit graph

479 commits

Author SHA1 Message Date
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count 2020-03-18 09:26:05 -07:00
Nate Smith
3334bdd9b7
Merge pull request #668 from cli/mislav/check-if-pr-exists
Check for existing pull request on `pr create`
2020-03-18 08:37:28 -07:00
Nate Smith
75ebf1694f
Merge pull request #670 from cli/pr-status-branch-err
Allow `pr status` in cases where there is no current git branch
2020-03-18 08:34:41 -07:00
Mislav Marohnić
206844681b
Merge pull request #669 from doi-t/add-pr-status-tests
Add unit tests for Closed and Merged states of the current branch
2020-03-18 14:21:42 +01:00
Mislav Marohnić
a40fb04fc3 Allow pr status use when on detached HEAD 2020-03-18 14:14:45 +01:00
Mislav Marohnić
bec667964c Allow pr status -R <repo> usage from outside of a git repo 2020-03-18 14:13:17 +01:00
Mislav Marohnić
e80c2f852d
Merge pull request #656 from sh7dm/fix-repo-not-found
Don't list remotes when --repo flag is set
2020-03-18 13:53:57 +01:00
Toshiya Doi
a2d3923d21 Add unit tests for Closed and Merged states of the current branch 2020-03-18 21:35:06 +09:00
Mislav Marohnić
5b76881624 Improve detecting existing PR on pr create
- Only check for existing PRs if `--web` wasn't given
- Fix detecting PRs from forks
- Improve order of error handling: local validation errors are handled
  earlier than the ones that have to consult the API
2020-03-18 13:09:02 +01:00
Mislav Marohnić
23dfeff84f Merge remote-tracking branch 'origin/master' into check-if-pr-exists 2020-03-18 12:04:08 +01:00
Mislav Marohnić
cb06812d19
Merge pull request #532 from mingrammer/consistent-printing
fix: inconsistent format between issue list and status
2020-03-18 11:59:17 +01:00
vilmibm
0344e9543a humanize branch name for title 2020-03-17 16:18:32 -05:00
vilmibm
98a2281f45 more nuanced error handling 2020-03-17 16:09:40 -05:00
Dmitry Sharshakov
d755288cdf Implement review comments 2020-03-17 20:05:53 +03:00
vilmibm
af46fcb1ff --fill for pr create 2020-03-16 15:32:47 -05:00
vilmibm
2d90c09f48 review feedback 2020-03-16 15:32:35 -05:00
Tarasovych
d0c32e7a3d changed error message and pr check 2020-03-16 16:01:03 +02:00
Dmitry Sharshakov
45c2a16d49 Don't list remotes when --repo flag is set 2020-03-14 23:14:38 +03:00
UmairShahzad
f51669e228 Merge remote-tracking branch 'origin/master' into pr-count 2020-03-14 19:02:51 +05:00
vilmibm
a23549001e cleanup 2020-03-13 15:14:32 -05:00
vilmibm
1b7840326c actually add tests for computing defaults 2020-03-13 15:14:03 -05:00
vilmibm
fba4f4d19e InitCmdStubber 2020-03-13 15:12:23 -05:00
vilmibm
c4c967fa0f add AskStubber 2020-03-13 15:12:17 -05:00
vilmibm
ed8aaa83e3 add CmdStubber 2020-03-13 15:12:09 -05:00
vilmibm
8769299731 titlebody prepopulation 2020-03-13 15:12:03 -05: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
Tarasovych
f3c9406e76 fixed repo argument 2020-03-13 16:01:37 +02:00
Tarasovych
b544583b26 added check if pr already exists 2020-03-13 14:02:29 +02: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
mingrammer
0d38f1f6dc fix: don't truncate field (tablewriter will do) 2020-03-07 22:06:47 +09:00