Skip to content

GitHub CLI extension to see pull requests with authors and url's

License

Notifications You must be signed in to change notification settings

ataberkcanitez/gh-pr-links

Repository files navigation

pr-links

GitHub CLI Pull Request Viewer

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.

Installation

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

Usage

After installing the extension, please execute following command to use:

$ gh pr-links

Options

  • -h --help: Show help for command.
  • -s --style <string>: Sets the style of the output. Possible values include StyleCompactLite, StyleUnicode, StyleDefault, StyleCompact, StyleMarkdown, StyleRounded, and StyleCompactClassic.
  • -u --use-emoji <bool>: Use emoji in the output. Possible values are true or false.

Options Example:

$ gh pr-links --style=StyleMarkdown --use-emoji=true

Example Output

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:

example-output example-output

example-output example-output

example-output example-output

example-output example-output

example-output example-output

example-output example-output

example-output example-output

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • 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.

Contributing

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!

About

GitHub CLI extension to see pull requests with authors and url's

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages