pr-links is a command-line tool written in Go that enhances the functionality of the GitHub CLI by displaying Pull Request information along with their URLs. The GitHub CLI itself lacks the ability to show the Pull Request URL, and this tool bridges that gap.
Since it's GitHub CLI Extension, make sure you have GitHub CLI installed on your system.
To install the extension, please execute the following command:
$ gh extension install ataberkcanitez/gh-pr-links
After installing the extension, please execute following command to use:
$ gh pr-links
-h --help
: Show help for command.-s --style <string>
: Sets the style of the output. Possible values includeStyleCompactLite
,StyleUnicode
,StyleDefault
,StyleCompact
,StyleMarkdown
,StyleRounded
, andStyleCompactClassic
.-u --use-emoji <bool>
: Use emoji in the output. Possible values aretrue
orfalse
.
Options Example:
$ gh pr-links --style=StyleMarkdown --use-emoji=true
The tool fetches open Pull Requests that are currently assigned to you and presents them in a formatted table. The table includes columns for the repository name, title, author, and a direct link to the Pull Request on GitHub. Here is some example outputs for different styles:
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub CLI for providing the foundation for interacting with GitHub from the command line.
- alexeyco/simpletable for simplifying the creation of formatted tables in the console.
Feel free to contribute by opening issues or creating pull requests. Your feedback and involvement are highly encouraged!
Enjoy using pr-links and feel free to reach out with any feedback or suggestions!