Open justinperkins opened 5 years ago
@justinperkins This shouldn't be too hard of a pull request to submit. I might give it a shot myself if more folks are interested.
Related to this, I'm working on Draft support in my 3rd-party Slack app and running into some issues due to there not being a webhook event signaling that a pull request is no longer a draft: https://github.com/pullreminders/backlog/issues/124#issuecomment-464276841
Is this still relevant? If so, just comment with any updates and we'll leave it open. Otherwise, if there is no further activity, it will be closed.
Lame Stalebot, this is very much still relevant and a problem. Draft PRs sending PR ready for review announcements is noise and takes away from the "ready for review" state change on the PR.
Is a pull_request
of type draft
even accessible? I don't see a key for it exposed in the github api PullRequestEvent
webhook unless the documentation is outdated.
draft
is a boolean state on the pull request object
I'm curious if this is a universal problem. The language of the documentation suggests it only publishes a draft PR if it is marked as "ready for review". This happens to my team, but I think it might be because we have a CODEOWNERS file which automatically sets a required reviewer even on draft PRs.
I think it’s universal. We don’t have a CODEOWNERS file and drafts still show up in Slack.
The language being referenced is:
pulls
- New or merged pull requests, as well as draft pull requests marked "Ready for Review"
New draft pull requests are still new pull requests, and so are covered both by the first half of the sentence (when the PR is first created) and the second half of the sentence (when marked "Ready for Review").
But the language confused me and my organisation the same way it did @mbainter.
I am running my tests on github actions but I don't want them to run on draft PR, so I added this to my action types: [review_requested, ready_for_review]
but it won't run when the PR is ready and there is someone on the list of requested reviews so not sure if that is a expected behavior and if it has to do with this topic
pulls
- New or merged pull requests, as well as draft pull requests marked "Ready for Review"New draft pull requests are still new pull requests, and so are covered both by the first half of the sentence (when the PR is first created) and the second half of the sentence (when marked "Ready for Review").
I agree with the latter, a Draft PR marked ready for review should trigger a notification (it does), but a new draft PR should at least have a separate subscription channel than new PRs ready for review. As it is, it is noise in the notification channels and leads to confusion and training team members to ignore messages.
Would like to add that this is a universal problem that we are facing too. Getting a "PR opened" notification in Slack for a draft PR is definitely something for which I would like a disable option.
Would love to see this happen as well 👍
I'd be happy to take a stab at this. I think it would make sense for Draft PR to be excluded by default from the pulls
subscription, and to create another subscription one pulls:draft
for drafts? That would be a breaking change btw.
There is already a similar distinction between commits
and commits:all
.
Please, I would love to see this being implemented. The draft mode was designed to reduce noise for code owners, so the slack integration should respect that as well.
Any updates on this?
@sfdye Thanks for the ping. I am not involved with the GitHub Slack integration in any way however.
+1
Big +1!
Any news on this? Still getting spam messages from draft PR's everytime someone opens one
💯 , this would be great to have.
+1 Draft PRs are adding too much noise into slack channels.
+1 Reduce noise 🔕
+1 this will be a great feature to have to reduce noise
+1
+1 for less noise
+1
I would really appreciate if this could be merged. Displaying status for draft PRs in Slack goes against the spirit of draft PRs IMHO.
+1
Over 2 years old! @gauravsaralMs, you're actively working on the repo, can you work this into your near future?
Hi @justinperkins and all, this is in our backlog and soon will omit the draft PR notification.
Maybe this has already been released resolved.
https://github.com/integrations/slack/pull/1109
By the way, I'd like to send Draft PR comments to Slack. Is that possible...? If I can't, I wouldn't want to use Draft PR.
By the way, I'd like to send Draft PR comments to Slack. Is that possible...? If I can't, I wouldn't want to use Draft PR.
Also wondering if it is possible to send Draft PR comments to Slack...
Seems like draft PRs are not sent to Slack any more, but it's something we want.
Likewise, please add back Draft PRs as it was in the original integration!
Kindly leave them out, or provide a configuration option for the users. Not everyone wants them...
Kindly leave them out
@WyriHaximus I don't understand leading with this sentiment -- we used to have it and was taken away -- simply make it an option that's not enabled by default and everyone is happy
@sjmueller Because we got spammed by draft PR's that added so much noise they drowned the PR's that did need attention. And now that's it is finally removed, there are requests to put them back in. So yes I'm going for the kind approach. Following with a:
or provide a configuration option for the users
I'm still not understanding why the choice was made in the first place to remove it completely, when nearly every other entity is configurable.
Perhaps that's the reason why lots of people on both sides have voiced their preferences? Was there a limitation of the code or the github hooks that make it particularly challenging at the time?
I'm still not understanding why the choice was made in the first place to remove it completely, when nearly every other entity is configurable.
I fully agree, in retrospect that should have been done.
We need draft PR announcements to let people know when working target branches are available to them
hi @ashokirla is there any update as to when draft PRs will be configurable, so that we have the ability to get notified?
Kinda hilarious this was yanked out and not made optional. It's actually really annoying that draft PR comments were working and now they aren't anymore.
Here's another issue: https://github.com/integrations/slack/issues/1320
It's actually really annoying that draft PR comments were working
What does "working" mean to you?
What kind of gaslighting is this?
"Working" means you could get notified in Slack on Draft PR activity.
Many devs have expressed this to be critical functionality that was previously available, and now it's not.
It's actually really annoying that draft PR comments were working
What does "working" mean to you?
Like others (assumably), we came to rely on getting all PR comments in our Slack. It was a good way to get a solid overview of all the activity on our team, and a way for team members to see if they had insight to offer during PR discussions without being explicitly tagged. Then one day I noticed we were no longer getting draft PR comments in our Slack. My gut instinct was "must be a bug, GitHub having issues sending notifications".
Now they've been turned off, with no option to turn them back on. This strikes me as annoying: removing behavior that was there, and not giving us the option of turning it back on. It seems to me like a mistake was made, only listening to the people who were complaining, without considering all the silent people who weren't complaining.
Interesting. For my team we found the draft PR notifications to be more noise than signal, we don't care about PRs until they're ready to be reviewed. We already have commit notifications flowing in that indicates activity, the draft PRs on top of it are just superfluous to us. That's why I created this issue.
Being able to tune whether or not draft pr comments show up in a slack channel seems like the right way to go about achieving the wants of both parties. Defaulting to off seems like a good default, but I’m biased with that vote…
For example, I would like to quote draft PR comment or comment in draft pr comment thread with mention.
Now that we can make draft PRs (🎉), we've created the desire to keep those draft PRs out of our channels until they've been made official. Thoughts?