Skip to content

Commit ce50e3e

Browse files
committed
Update RA script
1 parent d0a943e commit ce50e3e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/release-announcement.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def run_ollama_logic(new_pr_data, old_summary, model):
7272
- CLARITY: If you are unsure of the user benefit, do not write a whole new heading.
7373
Add a single, simple sentence to the most relevant 'For users' section.
7474
Example: "The iOS 'About' dialog now correctly displays the operating system version."
75+
- NEVER MAKE CHANGES TO THE TEMPLATE TEXT. Only add new sections if the PR introduces a significant new feature or improvement that is not already covered.
7576
SPECIAL INSTRUCTION FOR THIS PR:
7677
{'This is a minor fix. DO NOT create a new level-2 (##) heading. Only add a single sentence to an existing section.' if is_fix else 'Integrate this normally.'}
7778
"""
@@ -104,14 +105,15 @@ def run_ollama_logic(new_pr_data, old_summary, model):
104105
Apply the "High Bar Rule" to determine if this PR should be mentioned at all.
105106
If the PR is not significant enough to mention, return the existing announcement UNCHANGED.
106107
If the change is significant, give it a dedicated level-2 heading before the audience sections.
108+
RETURN THE COMPLETE UPDATED MARKDOWN DOCUMENT ONLY WITHOUT ANY PREFIX OR SUFFIX TEXT OR MARKERS.
107109
108110
EXISTING ANNOUNCEMENT:
109111
{old_summary if old_summary else "# Jamulus Release Announcement"}
110112
111113
NEW PR TO INTEGRATE:
112114
{json.dumps(new_pr_data, indent=2)}
113115
114-
RETURN THE COMPLETE UPDATED MARKDOWN DOCUMENT ONLY.
116+
RETURN THE COMPLETE UPDATED MARKDOWN DOCUMENT ONLY WITHOUT ANY PREFIX OR SUFFIX TEXT OR MARKERS. Do not explain your reasoning. Do not include any notes or comments. Only return the markdown content.
115117
"""
116118

117119
response = ollama.chat(model=model, messages=[{'role': 'user', 'content': prompt}])

0 commit comments

Comments
 (0)