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.