cli/acceptance/testdata/repo
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
..
repo-archive-unarchive.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-clone.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-create-bare.txtar Add acceptance test for bare repo create 2024-11-11 15:51:52 +01:00
repo-create-view.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-delete.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-deploy-key.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-edit.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-fork-sync.txtar Wrap true in '' in repo-fork-sync 2024-10-18 09:37:30 -07:00
repo-list-rename.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00
repo-rename-transfer-ownership.txtar Error when gh repo rename is used with a new repo name that contains an owner 2025-02-03 11:49:21 +00:00
repo-set-default.txtar Rename acceptance test directory from repos to repo 2024-10-18 09:37:30 -07:00