cli/acceptance/testdata
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
..
api Implement basic API acceptance test 2024-10-17 15:39:29 +02:00
auth Address PR feedback 2024-10-23 13:57:57 -07:00
extension Rename similar to other coarse commandset tests 2024-10-28 12:54:50 +01:00
gpg-key Refactor gpg-key delete to align with ssh-key delete 2024-10-24 09:59:02 -06:00
issue Acceptance test issue/pr create/edit with project 2025-03-31 17:06:51 +02:00
label Add Acceptance test for label command 2024-10-24 17:00:54 +02:00
org Add acceptance tests for org command 2024-10-24 09:58:06 -06:00
pr Add nameWithOwner to necessary tests 2026-03-26 13:23:43 +01:00
project Modify script to use the project number returned by the api upon creation 2024-10-25 09:03:50 -07:00
release Remove stdout assertion from release 2024-10-17 16:06:14 +02:00
repo Reformat non-documentation hostnames 2025-07-14 08:43:15 -04:00
ruleset Rename testscript for consistency 2024-10-28 12:40:15 +01:00
search Fix single quote not expanding vars 2024-10-21 10:20:37 -06:00
secret Support --no-repos-selected on secret set 2025-07-03 17:02:28 +02:00
skills fix: use target directory remotes in skills publish 2026-04-15 22:56:06 +02:00
ssh-key Add SSH Key Acceptance test 2024-10-24 17:46:17 +02:00
variable Update variable testscripts based on secret 2024-10-21 16:02:26 -04:00
workflow test(acceptance): remove run-download-traversal test 2026-03-25 12:47:45 -06:00