Created
March 7, 2019 15:41
-
-
Save adipasquale/266dbd1b31b4657b8dc3a57f6d877fd8 to your computer and use it in GitHub Desktop.
Rocket.chat Heroku Deploys integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Script { | |
process_incoming_request({ request }) { | |
// console is a global helper to improve debug | |
// console.log(request.url.query); | |
const query = request.url.query; | |
return { | |
content: { | |
text: `${query.user} released in production ` + | |
`version ${query.release} \n` + | |
`commit ${query.head}: _"${query.git_log}"_` | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment