mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 11:44:16 +00:00
26 lines
577 B
Plaintext
26 lines
577 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|