Andy Feller
29a94ab9b1
Reformat non-documentation hostnames
...
Outside of the hostnames previously fixed, I talked with @williammartin about what to do with the remaining references and the concern about the mixed format.
One suggestion for the error / test use case was to remove the extraneous text all together.
2025-07-14 08:43:15 -04:00
Andy Feller
313d20ba83
Ensure hostnames are visible in CLI website
...
This commit changes <github.com> and <ghe.com> references to `github.com` and `ghe.com` so they are visible on the GitHub CLI marketing website.
GitHub Pages will render URLs with a protocol as clickable links, however hostnames are treated as HTML elements and not rendered.
2025-07-14 08:33:20 -04:00
Tyler McGoffin
e047d4a611
Merge pull request #10429 from iamazeem/8404-standardize-urls
...
Standardize URLs
2025-02-13 10:49:18 -08:00
Azeem Sajid
f9428e7905
Update tests
2025-02-13 11:09:57 +05:00
Azeem Sajid
8b7fb231ec
Remove trailing whitespace
2025-02-13 11:06:27 +05:00
Azeem Sajid
026f64ce6f
Standardize URLs
2025-02-13 10:41:53 +05:00
Tim Rogers
430e5abe25
Drop accidental help text change
2025-02-03 12:04:42 +00:00
Tim Rogers
6c21ab2284
Error when gh repo rename is used with a new repo name that contains an owner
...
`gh repo rename` can only rename a repo, but not change its owner
(i.e. transfer it).
As flagged in #10034 , at the moment, the CLI behaves like it can do
this, and produces weird results.
If I ask to rename my repo to `polyseam/frappe-containers`:
```bash
gh repo rename polyseam/frappe-containers
```
..the preview suggests that it will do the right thing:
```
? Rename polyseam/containers to polyseam/frappe-containers? Yes
```
...but the repo gets renamed wrongly:
```
✓ Renamed repository polyseam/polyseam-frappe-containers
```
This adds an upfront validation that looks for a slash and tells
you that the command can't transfer a repo.
Fixes #10034 .
2025-02-03 11:49:21 +00:00
Kynan Ware
167e868fe2
docs: enhance help text and prompt for rename command
2024-12-09 10:16:38 -07:00
William Martin
07e0ff7127
Fix repo fork to use remote protocol if none configured
2024-05-10 10:48:36 +02:00
William Martin
1d38230675
Move config interfaces into gh package ( #9060 )
2024-05-10 10:39:36 +02:00
satoqz
176420907b
fix segfault in gh repo rename
2024-03-29 14:38:27 +01:00
Sam Coe
7924878315
Fix git protocol and refactor Config interface ( #8246 )
2023-10-27 15:42:05 +02:00
William Martin
6dc04bb1e2
Remove GetOrDefault uses in favour of GitProtocol
2023-10-19 12:57:19 +02:00
Sam Coe
6f618b522c
Properly rename remote for GHES hosts ( #7890 )
2023-08-25 10:01:26 -07:00
Nate Smith
aae4023cdc
use t.Cleanup(m.Verify)
2023-03-09 16:43:48 -08:00
vilmibm
b5c3d982b1
new tooling for assertions about prompting
2023-03-09 16:40:27 -08:00
Damien Sedgwick
bab1b00c39
Rename --confirm flag to --yes for various destructive commands ( #6915 )
2023-01-26 12:48:21 +01:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115
Revert "update linter checks"
...
This reverts commit 40ecb8c188 .
2022-07-27 13:30:41 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Kevin Lee
0d143ca89c
Consistent punctuation in command usages ( #5139 )
...
* Fix spelling and grammatical errors in command docs
* Add periods for consistency across the long command descriptions
* Format imports
2022-01-31 10:56:12 +00:00
nate smith
bd6e50a08a
Merge remote-tracking branch 'origin/trunk' into feature/target-repo-fork-name
2022-01-25 14:08:27 -06:00
Nate Smith
4b415f80d7
Merge pull request #5022 from cli/config-defaults
...
add GetOrDefault and related methods to Config
2022-01-17 10:44:28 -06:00
Mislav Marohnić
44775f87c8
Add nolint directives to allow-list current lint violations
2022-01-14 19:52:52 +01:00
nate smith
562f1b3d0d
add GetOrDefault functionality to config
2022-01-11 14:56:58 -06:00
Gowtham Munukutla
3fb4c481dc
modify tests
2021-12-11 10:17:04 +05:30
Gowtham Munukutla
54d92facbf
add flag to set fork-name during repo fork. Tests WIP
2021-12-10 22:59:35 +05:30
Parth Patel
d4105807c2
@mislav changes requested
2021-11-03 12:18:44 -04:00
nate smith
da258fb4f4
confirm when inferring repository
2021-10-28 12:26:01 -05:00
Sam Coe
296cf381a2
Reduce duplicate warning message code
2021-10-27 14:07:00 -04:00
Parth Patel
95dbd677e0
resolved comments
2021-10-27 12:12:09 -04:00
Parth Patel
ea0e8d5c23
fixed http_tests git stub
2021-10-26 11:38:12 -04:00
Parth Patel
ccdea2db6d
lint fix
2021-10-25 17:19:27 -04:00
Parth Patel
b4d2bce6fc
res comments
2021-10-25 17:07:48 -04:00
Parth Patel
1d382fa7ca
lint fix?
2021-10-22 12:46:07 -04:00
Parth Patel
4e30fd5ba4
uncommented tests
2021-10-22 12:43:23 -04:00
Parth Patel
dc0b9bc6b0
finished up tests
2021-10-22 12:41:06 -04:00
Parth Patel
de1d860bce
lint fix
2021-10-21 17:33:24 -04:00
Parth
d378dc84c6
final changes made
2021-10-21 15:17:15 -04:00
Parth Patel
624f19764d
minor fix
2021-10-21 11:28:18 -04:00
Parth Patel
dd98c7f51f
added requested changes
2021-10-21 11:27:02 -04:00
Parth Patel
5946c98096
fixed forr real
2021-10-20 16:23:08 -04:00
Parth Patel
5ac744a68d
lint fix
2021-10-20 16:19:20 -04:00
Parth Patel
9003034c1c
lint fix
2021-10-20 16:17:29 -04:00
Parth Patel
f5e963fd56
minor fix
2021-10-20 16:13:11 -04:00