-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: comment --target
follow-up
#430
Conversation
comment --target
follow-up
f5e950f
to
ad86a9a
Compare
content/docs/ref/comment.md
Outdated
- `--target=<pr|commit|issue</ref>>`: Where to post/associate with the comment | ||
(`pr`, `commit`, `issue`), optionally with a reference (`issue/12`, `pr/17`, | ||
`commit/`[rev](https://git-scm.com/docs/gitrevisions) [default: `pr` falling | ||
back to `commit/HEAD`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth updating CLI --help
to match this.
@@ -6,7 +6,7 @@ cml pr create [options] <pathspec>... | |||
|
|||
Commit specified files to a new branch and create a pull request. If sending a | |||
report afterwards, consider using | |||
[`cml comment update --target=pr`](/doc/ref/comment#update). | |||
[`cml comment update`](/doc/ref/comment#update). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just double-checking: the --target=pr
flag is auto-inferred here, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, by default the target is automatically decided based on dark magic of all sorts; see iterative/cml#1228.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it's not clear to me whether the documentation is suggesting users to comment on the ancillary pull request or the main one. 🤔
Co-authored-by: Helio Machado <[email protected]>
actions/checkout.with.ref: ${{ github.event.pull_request.head.sha }}
--target=pr
flagFollow-up to #415