Skip to content

gh pr lock does not accept url even though it is mentioned in the manual #8816

@alvinsjoy

Description

@alvinsjoy

Describe the bug

The gh pr lock {<number> | <url>} [flags] command is meant to accept pull request urls as per the manual but does accept them and shows an error: invalid issue format: "https://github.com/user/repo/pull/60".

image
The screenshot provided shows the command and the error.

gh version 2.43.1 (2024-01-31)

Steps to reproduce the behavior

  1. Type gh pr lock "https://github.com/username/repo/pull/number" using valid username, repo, pull request number.

Expected vs actual behavior

The gh pr lock command should accept url to the pr just like gh pr merge command accepts urls.

Logs

C:\dev\projects\GitHub\PortfolioWebsite>gh pr lock "https://github.com/alvinsjoy/PortfolioWebsite/pull/60" --reason reso
lved
invalid issue format: "https://github.com/alvinsjoy/PortfolioWebsite/pull/60"
C:\dev\projects\GitHub\PortfolioWebsite>gh --version
gh version 2.43.1 (2024-01-31)
https://github.com/cli/cli/releases/tag/v2.43.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions