Standardize URLs
This commit is contained in:
parent
cdb44f8298
commit
026f64ce6f
5 changed files with 7 additions and 7 deletions
|
|
@ -201,12 +201,12 @@ func NewCmdApi(f *cmdutil.Factory, runF func(*ApiOptions) error) *cobra.Command
|
|||
Annotations: map[string]string{
|
||||
"help:environment": heredoc.Doc(`
|
||||
GH_TOKEN, GITHUB_TOKEN (in order of precedence): an authentication token for
|
||||
github.com API requests.
|
||||
<github.com> API requests.
|
||||
|
||||
GH_ENTERPRISE_TOKEN, GITHUB_ENTERPRISE_TOKEN (in order of precedence): an
|
||||
authentication token for API requests to GitHub Enterprise.
|
||||
|
||||
GH_HOST: make the request to a GitHub host other than github.com.
|
||||
GH_HOST: make the request to a GitHub host other than <github.com>.
|
||||
`),
|
||||
},
|
||||
Args: cobra.ExactArgs(1),
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
|
|||
|
||||
For GitHub repositories, the repository argument can be specified in
|
||||
%[1]sOWNER/REPO%[1]s format or as a full repository URL.
|
||||
The URL format is useful when the repository is not hosted on github.com.
|
||||
The URL format is useful when the repository is not hosted on <github.com>.
|
||||
|
||||
For remote repositories, the GitHub CLI first looks for the release artifacts assuming
|
||||
that it's a binary extension i.e. prebuilt binaries provided as part of the release.
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
|
|||
with %[1]s--repo%[1]s is renamed.
|
||||
|
||||
To transfer repository ownership to another user account or organization,
|
||||
you must follow additional steps on GitHub.com
|
||||
you must follow additional steps on <github.com>.
|
||||
|
||||
For more information on transferring repository ownership, see:
|
||||
<https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository>
|
||||
|
|
@ -126,7 +126,7 @@ func renameRun(opts *RenameOptions) error {
|
|||
}
|
||||
|
||||
if strings.Contains(newRepoName, "/") {
|
||||
return fmt.Errorf("New repository name cannot contain '/' character - to transfer a repository to a new owner, you must follow additional steps on GitHub.com. For more information on transferring repository ownership, see <https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository>.")
|
||||
return fmt.Errorf("New repository name cannot contain '/' character - to transfer a repository to a new owner, you must follow additional steps on <github.com>. For more information on transferring repository ownership, see <https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository>.")
|
||||
}
|
||||
|
||||
if opts.DoConfirm {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ var HelpTopics = []helpTopic{
|
|||
short: "Environment variables that can be used with gh",
|
||||
long: heredoc.Docf(`
|
||||
%[1]sGH_TOKEN%[1]s, %[1]sGITHUB_TOKEN%[1]s (in order of precedence): an authentication token that will be used when
|
||||
a command targets either github.com or a subdomain of ghe.com. Setting this avoids being prompted to
|
||||
a command targets either <github.com> or a subdomain of <ghe.com>. Setting this avoids being prompted to
|
||||
authenticate and takes precedence over previously stored credentials.
|
||||
|
||||
%[1]sGH_ENTERPRISE_TOKEN%[1]s, %[1]sGITHUB_ENTERPRISE_TOKEN%[1]s (in order of precedence): an authentication
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ func NewCmdCode(f *cmdutil.Factory, runF func(*CodeOptions) error) *cobra.Comman
|
|||
<https://docs.github.com/search-github/searching-on-github/searching-code>
|
||||
|
||||
Note that these search results are powered by what is now a legacy GitHub code search engine.
|
||||
The results might not match what is seen on github.com, and new features like regex search
|
||||
The results might not match what is seen on <github.com>, and new features like regex search
|
||||
are not yet available via the GitHub API.
|
||||
`),
|
||||
Example: heredoc.Doc(`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue