From 813982b2d6caf68ab9ecb127cc70a46796b7faa7 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Wed, 3 Jul 2024 19:14:42 +0200 Subject: [PATCH] matrix-bot: Improve system message --- pkgs/matrix-bot/matrix_bot/changelog_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/matrix-bot/matrix_bot/changelog_bot.py b/pkgs/matrix-bot/matrix_bot/changelog_bot.py index 1e8e8d3..1ba7a4a 100644 --- a/pkgs/matrix-bot/matrix_bot/changelog_bot.py +++ b/pkgs/matrix-bot/matrix_bot/changelog_bot.py @@ -163,13 +163,15 @@ async def changelog_bot( log.info(f"Generating changelog from {fromdate} to {todate}") system_prompt = f""" -Create a concise changelog for the past week from {fromdate} to {todate}. +Create a concise changelog for the {matrix.changelog_frequency}. Follow these guidelines: +- The header should include the date range from {fromdate} to {todate} - Use present tense - Keep the summary brief - Follow commit message format: "scope: message (#number)" - Link pull requests as: '{gitea.url}/{gitea.owner}/{gitea.repo}/pulls/' + - Use markdown links to make the pull request number clickable - Mention each scope and pull request number only once - Have these headers in the changelog if applicable: - New Features