Refined-github: Submit pending review comment as "single comment"

Created on 21 May 2019  路  5Comments  路  Source: sindresorhus/refined-github


Issuehunt badges

  1. Answer a review comment, like https://github.com/sindresorhus/refined-github/pull/1271/files#r183043274
  2. Press "Start review" instead of "Add single comment"
  3. Be stuck with a pending answer that's not supposed to be a whole new review

Screenshot 2019-05-21 at 21 02 57

Sometimes I just want to leave a single comment. It's almost ok if it's a new comment (I can just press "Submit review" as comment), but if you're answering an existing thread, it will look strange on the Conversation tab, disconnected from the original comment.

I wish that clicking "Pending" would send the comment instantly (after confirm()). I'm not sure if this is feasible because you probably have to reuse another autenticity token from the page.




IssueHunt Summary

fregante fregante has been rewarded.

Backers (Total: $60.00)

- #2188 Add submit-review-as-single-comment feature

Tips

IssueHunt has been backed by the following sponsors. Become a sponsor


Rewarded on Issuehunt enhancement

All 5 comments

This happens to me many times a week...

@issuehunt has funded $60.00 to this issue.


I looked into this and:

  1. Write comment A, start review
  2. Write comment B, use RGH to send as single comment (can be done via single_comment=true parameter)
  3. Both comments are now sent as a review, even if I sent a single form for a single comment.

It looks like GitHub's backend will just flush the review queue if you ask for one comment to go through.

This can only work if you want to send the first comment you write:

  1. Write comment A, start review
  2. Use RGH to send A as single comment

But you'll have to cancel the review first and then send the comment

@sindresorhus has rewarded $54.00 to @fregante. See it on IssueHunt

  • :moneybag: Total deposit: $60.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $6.00

WHY

Was this page helpful?
0 / 5 - 0 ratings