Slack integration - github username?


#1

Hi guys!

We are using the slack integration to send deployment notifications, with the default format:

[#${execution.id}] <${project.html_url}|${project.display_name}> deployment triggered by <${execution.creator.html_url}|${execution.creator.name}>

but the execution.creator.name is always the same person, me - as I created the project on buddy.

Is there anyway to get the username of the person who triggered the build? (e.g username from github if triggered from a push or tag). I’ve looked at the example execution object: https://buddy.works/knowledge/deployments/how-add-slack-integration but that data does not seem to be there.

The github hook does include that data: https://developer.github.com/v3/activity/events/types/#pushevent

Thanks!


#2

Hey @joelwmale

you can try using param: $BUDDY_EXECUTION_REVISION_COMMITTER_EMAIL. There’s no other way, I’m afraid.