Open iandunn opened 5 years ago
I did? I don't even know anything about this project.
Do we need to ask the contributor if they want the notification to go out or not?
I'm leaning towards not allowing people to opt-out, because accountability is an important aspect of this, but I'm curious to hear if there are use cases that I'm not seeing, etc.
@andreamiddleton has a good idea: we could make the announcement for the company, rather than the contributors. That would avoid putting people on the spot.
I think the team reps/members will still need a way to know who the contributors are, though, in order to onboard them.
Was that my idea? I thought it was yours! The notification could include a link to the pledge so that contributor teams could easily navigate to the pledge and see what people are listed.
Ah, yeah, that's perfect!
Given ^, we might want to trigger the ping when 100% of the contributors have confirmed, rather than when the pledge is initially published.
For contributors who don't have a w.org sandbox, you can just create a stub to handle the Slack API / sending stuff, and focus on the other parts, like hooking into the right event, crafting the message, and calling the stub function.
Here's the stub signature:
function slack_dm( $channel, $message ) {
// calling this will handle sending the message to Slack via an HTTP request
}
It'd probably be good to trigger it when 70% of contributors have confirmed, rather than 100%, since it's common for a few people to not bother confirming, or for a pledge admin to make a typo and send it to the wrong person, etc.
I think we should hold off on this until we can learn from contributor teams if that kind of notification would be signal or noise for them. I'll ask in a post I'm planning on publishing in January
When a contributor indicates that their time will be sponsored for a specific team, that team's channel should get a notification, so that they know to start assigning them work. e.g.,