question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support PR comments

See original GitHub issue

When a branch with a PR is rebased, the commits are orphaned and the comments from cml-send-comment are deleted. Is there a way to preserve them after a rebase? Alternatively, is there a way for cml-send-comment to comment on the PR itself, rather than a certain commit?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
casperdclcommented, Oct 11, 2021

--pr=123 should be inferred. Probably getting the PRs of a branch.

Yes, GitHub API: repos/$REPO/pulls | jq ".[] | select(.head.ref == '$BRANCH') | .url"

3reactions
casperdclcommented, Oct 28, 2021

released now in v0.8.0 @saadlaaribi @SaulAryehKohn 😃

cml send-comment --pr and cml send-comment --pr --update: https://cml.dev/doc/ref/send-comment

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commenting on a pull request - GitHub Docs
Pull request comments support the same formatting as regular comments on GitHub, such as @mentions, emoji, and references. You can add reactions to...
Read more >
Support for suggested changes in GitHub PR comments
In 2022.1, we introduce support for proper display and application of suggested changes to local files. Creating a suggestion is currently possible by...
Read more >
On the Etiquette of Pull Request Comments
Commenting on a pull request is fraught with potential pitfalls. Here is a short guide to the etiquette of writing pull request comments....
Read more >
How to auto comment on GitHub Pull Requests
The GitHub API supports the ability to add comments to open Pull Requests. ... variables and a cURL to automatically update/comment on a...
Read more >
Best Practices for Reviewing Pull Requests in GitHub - Rewind
A good pull request comment on GitHub ... Provide reasons, not feelings, to support your position to the other team members.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found