Last active
May 27, 2025 23:35
-
-
Save jhonnymoreira/3be5d0f26dcc78c62020d081e3c3cb59 to your computer and use it in GitHub Desktop.
Get current branch Pull Request URL using GitHub CLI and fx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
gh pr view --json url | fx .url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirements
How to install
chmod +x /path/to/get-pr-url
sudo ln -s /path/to/get-pr-url /usr/local/bin/get-pr-url