cli/acceptance/testdata/skills
Sam Morrow 1d5c74a838
fix: use target directory remotes in skills publish
When a directory argument is provided to `gh skill publish`, the remote
detection now correctly uses the target directory's git remotes instead
of the current working directory's remotes.

Previously, `detectGitHubRemote` used the factory-provided git client
which pointed to the CWD. This meant that running
`gh skill publish /path/to/repo-bar` from inside repo-foo would detect
repo-foo's remotes and potentially create the release on the wrong repo.

The fix copies the git client and sets `RepoDir` to the target directory,
matching the pattern already used by `detectMissingRepoDiagnostic` and
`checkInstalledSkillDirs`.

Co-authored-by: BagToad <47394200+BagToad@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-15 22:56:06 +02:00
..
skills-install-force.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-from-local.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-invalid-agent.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-invalid-repo.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-nested-files.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-nonexistent-skill.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-pin.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install-scope.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-install.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-preview-noninteractive.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-preview.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-publish-dir-remote.txtar fix: use target directory remotes in skills publish 2026-04-15 22:56:06 +02:00
skills-publish-dry-run.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-publish-lifecycle.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-search-noresults.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-search-page.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-search.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-update-noinstalled.txtar address review comments 2026-04-15 16:01:26 +02:00
skills-update.txtar address review comments 2026-04-15 16:01:26 +02:00