Skip to content

repo fork: honor --remote with repo arg#12475

Open
VedantMadane wants to merge 2 commits intocli:trunkfrom
VedantMadane:fix-fork-remote-arg
Open

repo fork: honor --remote with repo arg#12475
VedantMadane wants to merge 2 commits intocli:trunkfrom
VedantMadane:fix-fork-remote-arg

Conversation

@VedantMadane
Copy link

Summary

  • treat a repo argument that matches a local remote as the current repo when --remote is set
  • add a regression test for repo-arg + --remote

Testing

  • go test ./pkg/cmd/repo/fork -run TestRepoFork

Fixes #2722

@VedantMadane VedantMadane requested a review from a team as a code owner January 14, 2026 20:09
@VedantMadane VedantMadane requested a review from BagToad January 14, 2026 20:09
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Jan 14, 2026
@github-actions
Copy link

Thank you for your pull request! 🎉

This PR appears to fix the following issues that are not labeled with help wanted Contributions welcome :

As outlined in our Contributing Guidelines, we expect that PRs are only created for issues that have been labeled help wanted.

While we appreciate your initiative, please note that:

  • PRs for non-help wanted issues may not be reviewed immediately as they might not align with our current priorities
  • The issue might already be assigned to a team member or planned for a specific release
  • We may need to close this PR. For example, if it conflicts with ongoing work or architectural decisions

What happens next:

  • Our team will review this PR and the associated issues
  • We may add the help wanted label to the issues, if appropriate, and review this pull request
  • In some cases, we may need to close the PR. For example, if it doesn't fit our current roadmap

Thank you for your understanding and contribution to the project! 🙏

This comment was automatically generated by cliAutomation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repo fork ignores the --remote flag when specifying a repository via argument

2 participants