Skip to content

Do not hide PR reviews verdict (hide-useless-comments) #1543

Closed

Description

@anthony-robin

It seems the new hide-useless-comments feature is too gourmand as it also hides the PR review verdict completely when it has only a reaction comment.

capture d ecran 2018-09-20 a 18 18 12


capture d ecran 2018-09-20 a 18 18 20

Should the PR verdict still be visible by only hiding the comment below ?

Thanks !

Activity

  1. busches commented on Sep 20, 2018

    @busches
    Member

    I would say yes, as what I care about is the X approved these changes. We'll see what others think.

  2. yakov116 commented on Sep 20, 2018

    @yakov116
    Member

    I would say that the reason for the feature is mainly for issues not PR's.

  3. tandrewnichols commented on Sep 20, 2018

    @tandrewnichols

    We use the thumbs up for review where I work (and almost never do an actual review), so now our thumbs are hidden. I get the goal of this feature, but I think it's too heavy-handed. Limiting it to issues only could be a start. I'd also think limiting it to public repositories could cut down on false negatives. You're not going to have the kind of "me too" spam in a private repo that you'd have in a public one. Also seems like you could maybe limit it to public +1s. Like, if you're a contributor to the project (you have push access), it shouldn't suppress the thumb as it's likely supportive conversation (like, "yes, I agree" or "this looks good") and not just "I like this" or "me too."

  4. hkdobrev commented on Sep 20, 2018

    @hkdobrev
    Contributor

    An emoji in an approval is always a nice touch!

  5. fregante commented on Sep 21, 2018

    @fregante
    Member

    Nice catch! Yes, PR reviews should definitely be excluded. The logic should have done that already (they are by team members and therefore never hidden) but the "Collaborator" tag doesn't appear there.

    Anyway if you can't think of many occasions where PRs get dozens of useless comments, it might be easier to just drop the "isPR" filter.

    https://github.com/sindresorhus/refined-github/blob/0a1ee62f83b21b113096fe576b23793dca693cb5/source/features/hide-useless-comments.js#L6

  6. yakov116 commented on Sep 21, 2018

    @yakov116
    Member

    @bfred-it what about excluding private repo's all together

  7. fregante commented on Sep 21, 2018

    @fregante
    Member

    what about excluding private repo's all together

    On private repos everyone is a collaborator, so technically they're already excluded. It should work correctly on public repos anyway.

  8. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    Well, then I think that isn't working because the thumb was hidden on a pull request in a private repo on which both I and the commenter are collaborators.

  9. fregante commented on Sep 21, 2018

    @fregante
    Member

    Well, then I think that isn't working

    Refer to #1543 (comment)

    It’s not working in reviews because there’s no visible “collaborator” tag. It works correctly for regular comments.

  10. hkdobrev commented on Sep 21, 2018

    @hkdobrev
    Contributor

    Pull request reviews are green/red if the reviewer has write access and gray if they don't. We can use that.

    The problem of spamming with these short comments is definitely reduced with the emoji reactions, but I think when it's happening, PRs are no exception.

  11. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    It’s not working in reviews because there’s no visible “collaborator” tag. It works correctly for regular comments.

    Define "it works correctly." What is the expected behavior of a thumbs up in a regular comment by a collaborator? Because I thought I was understanding that it should not be hidden, but my experience is that it is.

  12. yakov116 commented on Sep 21, 2018

    @yakov116
    Member
  13. added a commit that references this issue on Sep 21, 2018
    ad35fa0
  14. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    It's in a private repo, but here's a screen shot:

    screen shot 7

    The thumbs up comes from a user listed under the "Contributors" tab. I don't know what you mean in the previous comment by "has a badge."

  15. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    Oh, you mean like this:

    screen shot 8

    or this:

    screen shot 9

  16. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    Looks like #1544 would resolve this anyway?

  17. fregante commented on Sep 21, 2018

    @fregante
    Member

    Yep that badge. If nayrudin is a collaborator but does not have a badge it means that they’re not public members of the organization. If GitHub does not mark it as a collaborator there’s not much we can do.

  18. tandrewnichols commented on Sep 21, 2018

    @tandrewnichols

    I mean, you could ignore private repositories cause everyone is a collaborator. Right?

  19. fregante commented on Sep 22, 2018

    @fregante
    Member

    You’re not wrong 😅

    PR welcome to exclude private repos

    Also since we’re here, I accept suggestions for a more tactful alternative to “N useless comments”

  20. fregante commented on Sep 22, 2018

    @fregante
    Member

    If I think about it… that 👍 is actually pretty useless. The review is already positive what does 👍 add? 😃 Maybe the selector should be updated to remove just the comment and not the review.

  21. added a commit that references this issue on Sep 27, 2018
    d516560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions