teamhephy / jenkins-jobs

MIT License
0 stars 3 forks source link

Notify commit author directly, when applicable #11

Open Cryptophobia opened 6 years ago

Cryptophobia commented 6 years ago

From @vdice on October 5, 2016 17:29

It might be handy to send Slack notifications directly to the commit author, when applicable. This is easily done now that we've switched to using Slack's incoming webhook api (https://github.com/deis/jenkins-jobs/pull/243) by setting channel as @user.

We currently derive the commit author email from the git commit, so, as long as a given author consistently uses the same email, we'd just maintain a userEmail -> slackHandle map and pull from this where relevant.

Copied from original issue: deis/jenkins-jobs#251