Commit graph

5685 commits

Author SHA1 Message Date
vilmibm
a2aa154794 port entirely to ColorScheme 2020-10-29 12:37:45 -07:00
Mislav Marohnić
5e89036d49
Merge pull request #2253 from emhagman/repo-clone-friendly-error
Print friendly error when "gh repo clone" is missing required argument
2020-10-29 17:02:53 +01:00
Mislav Marohnić
fc969281cf Better tests for clone argument parsing 2020-10-29 16:52:50 +01:00
Mislav Marohnić
6b953f2913 Simplify checks test 2020-10-29 13:08:25 +01:00
Irzhy Ranaivoarivony
03309930f0 add message on pr checks returns no CI with non-empty PR 2020-10-29 13:08:25 +01:00
Abhilash Gnan
9e03d01bdf Fetch all issue labels
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
2020-10-28 19:45:21 +01:00
Mislav Marohnić
e093d23521
Merge pull request #2276 from ianbillett/view-closed-prs
Allow `gh pr view <closed_pr_branch_name>` to view closed PRs
2020-10-28 17:50:10 +01:00
Mislav Marohnić
2ac68cc534 PullRequestForBranch: fix outdated error message
This method doesn't necessarily search through open pull requests.
2020-10-28 15:50:59 +01:00
Ian Billett
0f61272333 Allow PullRequestForBranch to search in closed pull requests 2020-10-28 15:50:59 +01:00
Sam
edecb2e4f7
Merge pull request #2207 from cli/codespaces
[Codespaces] Support "integration" tokens
2020-10-27 15:37:02 +03:00
Mislav Marohnić
e74e4310bb
Merge pull request #2208 from cli/merge-confirmation-fixup
Restore backwards compatibility in scripted `pr merge`
2020-10-27 13:25:18 +01:00
Mislav Marohnić
2d04292d44 Improve git config set git_protocol example
It's better to set this per-host in general, since setting the top-level
`git_protocol` key will not have any effect if the per-host setting
exists, and it does by default for anyone who ran `auth login`.
2020-10-26 14:42:24 +01:00
Mislav Marohnić
ae7d42a876 Centralize all known configuration options 2020-10-26 14:42:04 +01:00
Mislav Marohnić
ec64363085 Merge remote-tracking branch 'origin' into fix855 2020-10-26 14:05:49 +01:00
Cristian Dominguez
c6938941d5 Fix typo 2020-10-23 22:32:26 -03:00
Cristian Dominguez
69b64507ea Add support for git flags in gh repo fork 2020-10-23 19:08:55 -03:00
Nate Smith
78f047424b
Merge pull request #2205 from cli/garden-sigterm
Handle Ctrl-C in repo garden
2020-10-23 15:44:00 -05:00
Mislav Marohnić
c8b7dade30
Merge pull request #2262 from quiye/issue-report
Change feedback repo to github.com/cli/cli instead of cli/cli
2020-10-23 12:44:09 +02:00
zamasu
d5403fa5f5 Change feedback repo to github.com/cli/cli instead of cli/cli 2020-10-23 09:57:47 +09:00
Sam Coe
101bb90ab5
Add host back into repo flag description 2020-10-22 17:51:16 +02:00
Eric Hagman
af1d8a60e0 Print friendly error when "gh repo clone" is missing required argument 2020-10-21 23:23:39 -04:00
Mislav Marohnić
fbff1fcfd2 Clarify the --hostname flag 2020-10-21 16:45:06 +00:00
Mislav Marohnić
228191bf85 Document GH_HOST for api command 2020-10-21 16:43:48 +00:00
Mislav Marohnić
460d55f723 Move HostnameValidator to ghinstance 2020-10-21 16:31:20 +00:00
wilso199
3ecb9de1a7 Adding a hostname flag option for use with gh api 2020-10-21 16:31:20 +00:00
Mislav Marohnić
4b395c5dd2
Merge pull request #2234 from XD-DENG/stringsbuilder
Use strings.Builder for more efficient string concatenation
2020-10-21 18:22:43 +02:00
Mislav Marohnić
d5cb5574d0 💅 simplify generateCompareURL and test 2020-10-21 12:09:46 +00:00
Leonardo
d0bee19eaf Query escape branch names to allow branch/#123 names 2020-10-21 12:09:46 +00:00
Sam
becb316308
Merge pull request #2177 from jonathanlloyd/use-canonical-capitalization-in-remotes
Clone repos using canonical username/repo name capitalization
2020-10-20 09:23:21 +02:00
Sam
f8fd61cc6c
Merge pull request #2157 from rista404/print-auth-token-1514
Add ability to print auth token
2020-10-20 08:46:45 +02:00
Sam
5a8c0713c2
Merge pull request #2138 from cristiand391/validate-git-protocol-config
Validate git protocol config before setting it
2020-10-20 08:44:57 +02:00
XD-DENG
7e9f1c7147 Use strings.Builder for more efficient string concatenation
It minimizes memory copying.

Reference: https://golang.org/pkg/strings/#Builder
2020-10-19 20:51:51 +02:00
div_bhasin
8b0618f45e refactoring 2020-10-17 16:13:42 -04:00
div_bhasin
5f67ddc975 added to repo struct and working on fetching merge opts for repo 2020-10-17 13:12:26 -04:00
Ryan Nystrom
f1ea9102c4
Merge pull request #2201 from cli/rn/login-scopes
Add --scopes to login
2020-10-16 18:43:21 -04:00
Mislav Marohnić
14a222bade Let the receiver choose how to format the cfg.Set() value error 2020-10-16 18:54:36 +00:00
Mislav Marohnić
89529674f9 Restore backwards compatibility in scripted pr merge 2020-10-16 18:27:12 +00:00
Mislav Marohnić
7d317a81be
Merge pull request #1622 from ShubhankarKG/prMergeConfirmations
PR Merge confirmations
2020-10-16 20:17:54 +02:00
Mislav Marohnić
4bda6fceec auth status: fix reporting the token source 2020-10-16 17:11:14 +00:00
Ryan Nystrom
02883a89e3 add tests 2020-10-16 15:59:41 +00:00
Mislav Marohnić
7660b66c6c go fmt 2020-10-16 14:07:01 +00:00
Mislav Marohnić
49378fb60f Handle Ctrl-C in repo garden 2020-10-16 13:20:23 +00:00
Ryan Nystrom
93bc389269 Add scopes flag to login 2020-10-15 22:04:18 +00:00
Mislav Marohnić
813fbc9b8d Ensure that we don't reuse the same deserialization struct over pagination iterations
This is to avoid subtle deserialization issues in nested slices.
2020-10-14 15:38:21 +02:00
Jonathan Lloyd
8f44aee76a Load repo and parent in single query 2020-10-13 20:41:16 +01:00
AliabbasMerchant
8487a18169
Warn when an unknown config key is set 2020-10-13 15:56:54 +05:30
Jonathan Lloyd
a5ec03d000 Improve test args 2020-10-12 23:57:47 +01:00
Jonathan Lloyd
487b62d3b9 Clone repos using canonical username/repo name capitalization
GitHub user/repo names are case insentitive. This can cause issues when dealing with
repos programmatically using systems that aren't aware of this (e.g. go packages).

This commit updates the cloning logic of the CLI to query the API for the canonical
capitalization and uses that for the clone operation.

Fixes: #1845
2020-10-12 23:39:18 +01:00
rista404
2bdfc10e0a
Add ability to print auth token 2020-10-11 12:55:34 +02:00
Mislav Marohnić
a2aa07d497
Merge pull request #2134 from ShubhankarKG/updates
Update shouldCheckForUpdate
2020-10-09 18:30:48 +02:00