diff --git a/pages/common/gh-pr-comment.md b/pages/common/gh-pr-comment.md new file mode 100644 index 00000000000000..8fd89464f060d9 --- /dev/null +++ b/pages/common/gh-pr-comment.md @@ -0,0 +1,20 @@ +# gh pr comment + +> Add a comment to a GitHub pull request. +> More information: . + +- 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}}` diff --git a/pages/common/gh-pr-view.md b/pages/common/gh-pr-view.md new file mode 100644 index 00000000000000..bfb2f4d43a9a15 --- /dev/null +++ b/pages/common/gh-pr-view.md @@ -0,0 +1,20 @@ +# gh pr view + +> View details of a GitHub pull request. +> More information: . + +- 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]}}`