Commit graph

61 commits

Author SHA1 Message Date
Tyler McGoffin
e047d4a611
Merge pull request #10429 from iamazeem/8404-standardize-urls
Standardize URLs
2025-02-13 10:49:18 -08: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
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
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
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
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
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
9003034c1c lint fix 2021-10-20 16:17:29 -04:00
Parth Patel
f5e963fd56 minor fix 2021-10-20 16:13:11 -04:00
Parth Patel
dd87e80b4c added final touches 2021-10-20 16:12:32 -04:00
Parth
8400ed4a19 optimize api calls 2021-10-19 11:28:55 -04:00
Parth Patel
ddd0b7cb04 added remote update 2021-10-18 16:43:40 -04:00
Parth Patel
93221a19d4 fix 2021-10-18 13:56:48 -04:00
Parth Patel
cc63e7de8d minor fix 2021-10-18 13:54:30 -04:00
Parth Patel
fd376d552c final changes, update local remote left 2021-10-18 13:53:31 -04:00
Parth Patel
5ed77c9968 made some progress, not done yet 2021-10-15 19:10:05 -04:00
Parth Patel
3a21dfa1c5 lint fix 2021-10-13 16:41:46 -04:00
Parth Patel
69db6fca25 res comments 2021-10-13 16:31:54 -04:00
Parth Patel
c1c2946179 minor fix 2021-10-13 15:04:43 -04:00
Parth Patel
b106e606e1 final touches 2021-10-12 18:56:56 -04:00
Parth Patel
4afd1e06bf optimize command 2021-10-12 18:56:32 -04:00
Parth Patel
c639161394 final touches 2021-10-12 18:46:15 -04:00
Parth Patel
7e6cf79355 minor changes 2021-10-11 17:38:20 -04:00