Skip to content

Commit 66db92b

Browse files
committed
ci: enhance changelog generation AI prompt
1 parent 4f2c06d commit 66db92b

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/scripts/generate-changelog-entry.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,31 @@ Based on the following merged pull requests from the last 7 days, write a Mintli
2121
Merged PRs (${prCount} total):
2222
${prSummary}
2323
24-
Output ONLY the raw <Update> MDX block — no explanation, no markdown fences.
24+
Output ONLY the raw <Update> MDX block — no explanation.
2525
Use this exact format (matching the existing changelog style):
2626
2727
<Update label="${TODAY}" description="Week of ${WEEK_START}${TODAY}" tags={["Feature", "Improvement", "Fix"]}>
2828
## New features
2929
30-
**Feature name** — User-facing description.
30+
**Feature name** — User-facing description. ([#PR_NUMBER](https://github.com/geturbackend/urBackend/pull/PR_NUMBER) by [@username](https://github.com/username))
3131
3232
## Improvements
3333
34-
**Improvement name** — Description.
34+
**Improvement name** — Description. ([#PR_NUMBER](https://github.com/geturbackend/urBackend/pull/PR_NUMBER) by [@username](https://github.com/username))
3535
3636
## Bug fixes
3737
38-
- Fix description (#PR_NUMBER)
38+
- Fix description ([#PR_NUMBER](https://github.com/geturbackend/urBackend/pull/PR_NUMBER) by [@username](https://github.com/username))
3939
</Update>
4040
4141
Rules:
42-
- Only include sections (## New features / ## Improvements / ## Bug fixes) that have actual content.
43-
- Adjust the tags array to only include applicable tags from: "Feature", "Improvement", "Fix", "Security".
44-
- Write for developers using the platform, not the internal team.
45-
- Be concise and factual. Do not invent features not evidenced by the PRs.
46-
- If no PRs were merged, output: <Update label="${TODAY}" description="Week of ${WEEK_START}${TODAY}" tags={[]}>No significant changes this week.</Update>`;
42+
1. CRITICAL: Start your response EXACTLY with <Update and end with </Update>. Do NOT wrap your output in markdown code blocks (\`\`\`). Any extra text will break our pipeline.
43+
2. Ignore internal chores, dependency bumps, CI/CD updates, and test-only PRs. Only include changes that directly impact end-users or developers.
44+
3. For every item, include the PR number linked to its URL and the author linked to their GitHub profile.
45+
4. Only include sections (## New features / ## Improvements / ## Bug fixes) that have actual content.
46+
5. Adjust the tags array to only include applicable tags from: "Feature", "Improvement", "Fix", "Security".
47+
6. Write for developers using the platform, not the internal team. Be concise and factual. Do not invent features not evidenced by the PRs.
48+
7. If no PRs were merged (or if all were ignored), output: <Update label="${TODAY}" description="Week of ${WEEK_START}${TODAY}" tags={[]}>No significant changes this week.</Update>`;
4749

4850
const payload = JSON.stringify({
4951
model: "llama-3.3-70b-versatile",

0 commit comments

Comments
 (0)