Skip to content

Using --web on search prs open the Issues tab on the browser #10733

@ajpinedam

Description

@ajpinedam

Describe the bug

When running

gh search prs --web

Opens the browser on the wrong tab.

A clear and concise description of what the bug is.

Affected version

Please run gh version and paste the output below.

gh version 2.69.0 (2025-03-19)
https://github.com/cli/cli/releases/tag/v2.69.0

Steps to reproduce the behavior

Type

gh search prs --web

See the browser opening on the [Issues] Session.

Note:
I see the wrong type= is sent.

https://github.com/search?q=merged%3A2025-01-20..2025-01-28+repo%3Aunoplatform%2Funo+type%3Apr&type=issues

vs

https://github.com/search?q=merged%3A2025-01-20..2025-01-28+repo%3Aunoplatform%2Funo+type%3Apr&type=pullrequests

Expected vs actual behavior

The --web flag on the gh search prs command opens the correct tab.

Logs

Paste the activity from your command line. Redact if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions