slack
slack copied to clipboard
Ability to omit Draft Pull Request
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?
@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.
@abinoda FWIW I think the webhook events are available now
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!
@ abinoda FWIW I think the webhook events are available now
That link is deprecated.
WebHook events are located here now
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