Skip to content

After merge, automatically post comment #1024

Closed

Description

@fregante

Issuehunt badges

Sometimes I want to merge and leave a comment after. Should that be handled automatically too?

How about we show more checkboxes when tests are running:

Perhaps we can find a more refined UI

More context in


IssueHunt Summary

fregante fregante has been rewarded.

Backers (Total: $53.97)

Submitted pull Requests


Tips


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

Activity

  1. sindresorhus commented on Jan 22, 2018

    @sindresorhus
  2. fregante commented on Jan 22, 2018

    @fregante
    Author
  3. sindresorhus commented on Jan 22, 2018

    @sindresorhus
  4. fregante commented on Jan 22, 2018

    @fregante
    Author
  5. sindresorhus commented on Jan 22, 2018

    @sindresorhus
  6. yakov116 commented on Jan 23, 2018

    @yakov116
  7. tooomm commented on Feb 7, 2018

    @tooomm
  8. fregante commented on Feb 7, 2018

    @fregante
    Author
  9. added
    Please! ♥︎
    on Mar 5, 2018
  10. iwiznia commented on May 9, 2018

    @iwiznia
  11. jiang-wei commented on Jun 7, 2018

    @jiang-wei
  12. endtoend commented on Aug 6, 2018

    @endtoend
  13. fregante commented on Aug 8, 2018

    @fregante
    Author
  14. 13 remaining items

  15. fregante commented on Jul 14, 2019

    @fregante
    MemberAuthor

    I just added the pr-branch-auto-delete feature. It's smaller and does not have a checkbox since:

    • the branch can be restored
    • the feature can be wholly disabled
    • those using long lived branches (like develop) might be able to lock down protected branches.

    As said by @sindresorhus and @endtoend

    This thread now is about "Automatically post comment after merge"

    For discussion about pr-branch-auto-delete, comment here: #2186 or open a new issue.

    Most of the comments here were about that the feature, so I hid them.

  16. hkdobrev commented on Jul 23, 2019

    @hkdobrev
  17. fregante commented on Jul 23, 2019

    @fregante
    Author
  18. changed the title [-]When PR checks pass, automatically post comment[/-] [+]After merge, automatically post comment[/+] on Sep 16, 2019
  19. ulken commented on Nov 10, 2019

    @ulken

    @fregante I’m a little curious what is actually asked for/what value it brings.

    As a user, I check Wait for merge. Then what?

    I click Comment which enters waiting state until Merge is pressed and then posts the comment? If yes, what’s the benefit over first merging and then commenting?

    If we want to reduce the amount of clicks it sounds like a Merge and Comment button (similar to Close and Comment Issue) addresses the issue better?

    But maybe I’m totally missing something here. If you could just clear up what you’re after, I’d be happy to give it a go. Thanks!

  20. ulken commented on Nov 10, 2019

    @ulken

    /cc @sindresorhus Thoughts?

  21. fregante commented on Nov 10, 2019

    @fregante
    MemberAuthor

    You're not wrong, it's mostly about the expectation that after the merge, the merger leaves a thank you note or something like that. But you're right in that it doesn't necessarily have to happen after.

  22. ulken commented on Nov 10, 2019

    @ulken

    Thanks for replying. I’m sorry if my communication was unclear, but I wasn’t referring to the order of merging/commenting. I get that you want to leave a comment after closing, makes perfect sense.

    My concern was around what problem is actually solved by the current solution suggestion? What do you gain? As I see it, all the extra checkbox does is increase the amount of clicks.

    If still not clear (and I’m missing out on the obvious), could you help me out with an example scenario? I.e. walk me through the process from a user’s POV.

    The way I interpret the current suggestion in the eyes of the user:

    1. Enter comment
    2. Check Wait for merge
    3. Click Comment
      3a. Waiting...
    4. Click Merge
      4a. Merge completes
    5. Post comment

    How is this better than:

    1. Click Merge
    2. Enter comment
    3. Click Comment

    Having a Merge and Comment button on the other hand would reduce the above to two steps.

    Like I said, I must be missing something here. I just need to understand what in order to attempt this.

    And if you feel like it’s not worth the time explaining, that’s fine. Thank you :)

  23. fregante commented on Nov 10, 2019

    @fregante
    MemberAuthor

    Right, we agree on that, it’s not necessarily better, it’s just seemed like the right order of operations.

    As for the amount of clicks: it’s unchanged. Both checkboxes (one for the merge, one for the comment) would be automatically checked and only appear if necessary, so:

    1. Click merge (wait for checks already checked
    2. Click comment (wait for merge already checked)

    If we change the merge button to Merge and comment, such button would submit the content of the comment box BELOW it. No fields should be under a submit button, it’s bad UX. We can’t do that.

    In short: I think we can close this issue as the order of operations might not be worth the feature complexity.

  24. ulken commented on Nov 10, 2019

    @ulken

    @fregante 🙏 Thank you for bearing with me! Finally the penny dropped. Then I’m all aboard. If you don’t strongly disagree (i.e. won’t accept a PR no matter what), I’d like to try it out.

    Just for the record:

    1. I wasn’t suggesting replacing any button, but add another one (again similar to the extra Close and comment on Issues).
    2. I wasn’t suggesting adding it to the Merge section, but the Comment section (like Close and comment).

    PS. To my defense, I still don't find it obvious what is requested from the initial specification/description as it stands. Maybe I haven’t used RGH enough to read in all the patterns used, but if possible I would very much appreciate a little more details around problem statement and solution suggestions in upcoming issues. Feel free to ignore, just trying to give my POV as a newcomer. Thank you! ❤️

  25. issuehunt-oss commented on Jan 21, 2020

    @issuehunt-oss

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

    • 💰 Total deposit: $53.97
    • 🎉 Repository reward(0%): $0.00
    • 🔧 Service fee(10%): $5.40
  26. added and removed
    💵 Funded on Issuehunt
    on Jan 21, 2020
  27. locked as resolved and limited conversation to collaborators on Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Please! ♥︎acceptedenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions