Skip to content

gh-search cannot strip repo url prefix #13862

Description

@A4-Tacks

Describe the bug

The -R of gh search code does not support repo url, but only supports OWNER/REPO format

Affected version

gh version 2.93.0 (2026-05-28)
https://github.com/cli/cli/releases/tag/v2.93.0

Steps to reproduce the behavior

  1. Run commands in log

Expected vs actual behavior

Expect both commands to output results

Logs

$ gh search code -R https://github.com/cli/cli catch-all
no code results matched your search
$ gh search code -R cli/cli catch-all

Showing 1 of 1 results

cli/cli internal/run/stub.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions