-
Notifications
You must be signed in to change notification settings - Fork 148
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
Delaying Draft Pull Request Notifications until Marked as 'Ready for Review' #682
Conversation
Hello @abdulsmapara, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
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.
Thanks for the contribution 🎉
…ntifier change for ready to review PR
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.
Nice work 👍
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@DHaussermann, requesting you to please review the PR. |
@DHaussermann, any updates on the PR review ? |
Sorry @abdulsmapara for the delay. I will follow-up to find a testing resource for this PR. |
no problem @DHaussermann |
Any update @DHaussermann ? cc: @hanzei ,@crspeller |
@lindalumitchell Do you have some time to test this PR? |
@crspeller yes, I should be able to; I know Dylan is out next week as well. I'm unsure how to build a test version of the plugin though; can you help? |
/update-branch |
@lindalumitchell You can download the bundle bundle at https://github.com/mattermost/mattermost-plugin-github/actions/runs/5855120323?pr=682. |
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.
Apologies for the further delay on this review; I hadn't tested this area before. But I got it all set up and tested and it looks great! Thanks very much for the contribution!
Verified as described that the simple notification posts on draft PR creation, and full notification posts when marked Ready for Review. Also smoke tested around other actions and notifications with all behaving as expected and no issues found. 👍
Thanks @abdulsmapara 🚀 |
Could this please be made configurable? I'd much rather have it show the full message when the PR is opened, and nothing at all when it's changed from/to draft (like it was before this PR). In particular, it's spammy right now when someone opens the PR, then converts it to draft (because they forgot), and then back to a regular one shortly after (that results in a total of two "full" messages and one small). I think this change would be more bearable if the plugin kept track of whether a PR was in "ready" state before so the bull message is only sent once. But even then I'd rather have a setting to disable the whole functionality, because depending on the project, Draft PR just means that there's still some stuff left for discussion, but that people still want to be properly informed about the PR... |
Summary
Delaying Draft Pull Request Notifications until Marked as 'Ready for Review'
Requirement addressed:
Description
When draft PR created, following message is posted, without PR description/body =>
When PR marked ready for review, following message is posted, which includes PR description/body =>
When PR directly created with ready for review, following message is posted, which includes PR description/body =>
Ticket Link
#680