Skip to content

Instantly share code, notes, and snippets.

@adipasquale
Created March 7, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adipasquale/266dbd1b31b4657b8dc3a57f6d877fd8 to your computer and use it in GitHub Desktop.
Save adipasquale/266dbd1b31b4657b8dc3a57f6d877fd8 to your computer and use it in GitHub Desktop.
Rocket.chat Heroku Deploys integration
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