Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pages/common/gh-pr-comment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# gh pr comment

> Add a comment to a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_comment>.

- Comment on the pull request of the current branch:

`gh pr comment {{[-b|--body]}} "{{LGTM}}"`

- Comment on a specific pull request:

`gh pr comment {{123}} {{[-b|--body]}} "{{Thanks!}}"`

- Comment from a file:

`gh pr comment {{123}} {{[-F|--body-file]}} {{path/to/file.txt}}`

- Open the editor to write a multi-line comment:

`gh pr comment {{123}}`
20 changes: 20 additions & 0 deletions pages/common/gh-pr-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# gh pr view

> View details of a GitHub pull request.
> More information: <https://cli.github.com/manual/gh_pr_view>.

- View the pull request associated with the current branch:

`gh pr view`

- View a specific pull request:

`gh pr view {{123}}`

- Open the pull request in the default web browser:

`gh pr view {{[-w|--web]}}`

- Show comments in the terminal:

`gh pr view {{123}} {{[-c|--comments]}}`