Add functionality to automatically update the version.json file when a push is made to the 'prod' branch of the dashApp repository. The update includes incrementing the version number and updating the timestamp. Additionally, the changes are committed and pushed back to the repository, enhancing the deployment process.
Increase the timeout duration in the retryFailedWebhook function from 30 seconds to 15 minutes to accommodate longer processing times for webhook retries. This change aims to improve the reliability of the retry mechanism.
Add detailed logging for error reasons and codes in the retryFailedWebhook function. Improve error handling in sendTelegramMessage by creating a more informative error message and logging additional response details. Update the releasehook endpoint to handle Telegram message sending synchronously, allowing for better error response management.
Introduce a new script to process and retry failed webhooks stored in a designated directory. The script reads JSON files containing webhook payloads and error information, attempts to resend the payloads, and logs the success or failure of each retry. Additionally, it creates a processed directory to organize successfully retried webhooks. This enhances error handling and recovery for webhook failures.
Update the summarizeMostRecentCommitDE function to enforce the presence of a webhook payload for commit data retrieval, eliminating the fallback to local git. Add logging for missing payloads and repository information to enhance error handling.
Add functionality to fetch commit diffs from the Gitea API and incorporate them into the German summary prompt. Update the summarizeMostRecentCommitDE function to handle webhook payloads for improved commit data retrieval. Maintain fallback to local git for compatibility.
Add getLastCommitDiff to fetch the latest commit’s unified diff and
append it to the system prompt for German summaries. Increase LLM call
timeout to handle larger prompts.
Ensure parentheses are escaped in section headers, switch to en dash in
heading, and avoid Markdown links by outputting escaped text and URL.
Also improve line breaks for consistent layout.
Introduce helpers to fetch recent git commits and call an OpenAI-compatible
LLM to generate a short German executive summary appended to Telegram
notifications. Normalize async formatting in message builder and ensure
Promise handling when sending messages.
Also remove committed .env with secrets and add .env to .gitignore to
prevent future leaks.