-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
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".

The screenshot provided shows the command and the error.
gh version 2.43.1 (2024-01-31)
Steps to reproduce the behavior
- 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
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic