Forrest logo
back to the gh tool

github:pull-request:show:in-browser

View a pull request in the default web browser.
$ gh pr view --web ${pr_number}
try on your machine

This is a command used in the command-line interface for GitHub. gh refers to the GitHub CLI tool. pr stands for pull request, which is a feature used in software development workflows for code review and collaboration. view is a subcommand of pr and is used to display the details of a pull request. --web is a flag used to open the pull request in the default web browser rather than displaying the information in the terminal. ${pr_number} is a placeholder for the number of the specific pull request that you want to view. So the complete command gh pr view --web ${pr_number} will open the specified pull request in the default web browser for you to view its details.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool