Skip to content

Add gh token[s] subcommand to redirect to GitHub personal access tokens settings#38

Merged
alichtman merged 2 commits intomainfrom
copilot/update-gh-token-url
Mar 7, 2026
Merged

Add gh token[s] subcommand to redirect to GitHub personal access tokens settings#38
alichtman merged 2 commits intomainfrom
copilot/update-gh-token-url

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

gh token and gh tokens had no special handling, falling through to a GitHub repo search instead of navigating to the PAT settings page.

Changes

  • src/commands/github.rs: Added early match for "token" and "tokens" in process_args(), redirecting to https://github.com/settings/personal-access-tokens before the generic search fallback
  • Added unit tests for both aliases

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ns page

Co-authored-by: alichtman <20600565+alichtman@users.noreply.github.com>
Copilot AI changed the title [WIP] Update gh token link to personal access tokens Add gh token[s] subcommand to redirect to GitHub personal access tokens settings Mar 6, 2026
@alichtman alichtman marked this pull request as ready for review March 6, 2026 08:57
@alichtman alichtman merged commit a3f1695 into main Mar 7, 2026
7 checks passed
@alichtman alichtman deleted the copilot/update-gh-token-url branch March 7, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants