Release Notes - Version 1.0.0
Features:
-
Express.js Server Setup:
- Utilizes the Express.js framework to create a web server.
- Listens on the specified port (
process.env.PORT
or defaulting to 3000).
-
Heroku Webhook Handling:
- Provides a route (
/heroku-webhook
) to handle incoming Heroku webhook events. - Extracts relevant data from the Heroku webhook payload, including event data and metadata.
- Formats a message based on the extracted data to provide a concise summary of the Heroku event.
- Provides a route (
-
Discord Webhook Integration:
- Utilizes the Axios library to send a formatted payload to a Discord webhook.
- The Discord payload includes an embed with information about the Heroku event.
-
Environment Variable Usage:
- Uses
process.env
to read thePORT
andDISCORD_WEBHOOK
environment variables. - Provides default values for
PORT
(3000) and logs theDISCORD_WEBHOOK
value.
- Uses
Bug Fixes:
- None in this release.
Known Issues:
- No handling for failed Discord webhook requests (errors are logged, but no retry mechanism or error response to Heroku).
Future Improvements:
- Implement a more robust error handling mechanism, including retry logic for Discord webhook requests.
- Enhance the Discord payload with additional details from the Heroku webhook payload.
Getting Started:
- Clone the repository.
- Install dependencies using
npm install
. - Set the
DISCORD_WEBHOOK
environment variable with your Discord webhook URL. - Start the server using
node index.js
.