Add .github/release-task.md Copilot agent release task prompt#57
Draft
Add .github/release-task.md Copilot agent release task prompt#57
Conversation
Agent-Logs-Url: https://github.com/304NotModified/SLNX-validator/sessions/7293dedd-9c3e-4add-99fd-9a8b73e33e45 Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add release task markdown file for Copilot
Add .github/release-task.md Copilot agent release task prompt
Apr 6, 2026
304NotModified
requested changes
Apr 6, 2026
.github/release-task.md
Outdated
| Type in Copilot chat: | ||
|
|
||
| ``` | ||
| Voer de release task uit voor versie X.Y.Z |
Owner
There was a problem hiding this comment.
To English. Whole file in English
Contributor
Author
There was a problem hiding this comment.
Done in b75db2e — the Dutch usage example is now Run the release task for version X.Y.Z.
| - Title: `Bump version to X.Y.Z and update release notes` | ||
| - Body: the full extended changelog from step 4 | ||
|
|
||
| ### 8. Create the GitHub Release via the API |
Owner
There was a problem hiding this comment.
This should be after merge pr.
Contributor
Author
There was a problem hiding this comment.
Fixed in b75db2e — step 8 now explicitly states: "Wait for the PR from step 7 to be merged into main before creating the release."
Agent-Logs-Url: https://github.com/304NotModified/SLNX-validator/sessions/144fb689-82bf-41cd-a5a0-9a23e41a6796 Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a reusable Copilot coding agent task prompt so releases can be triggered with a single chat message (
/release X.Y.Z) instead of manually writing changelogs, bumping versions, and creating GitHub releases.What the task prompt covers
dependabot[bot],docs:PRs, and version-bump PRsfeat:), bug fixes (fix:), and internal improvements (chore:,refactor:, structural changes) each get their own section<PackageReleaseNotes>in the csproj; extended changelog with code examples for the GitHub Release body<VersionPrefix>and<PackageReleaseNotes>insrc/SLNX-validator/SLNX-validator.csprojdraft: false, targetingmain) with a generated title in the formatX.Y.Z: <summary>Usage
or shorthand:
Original prompt
Doel
Maak een bestand
.github/release-task.mdaan. Dit is een Copilot task-promptbestand waarmee de gebruiker met een korte instructie als "release 0.6.0" een volledige release kan uitvoeren via de Copilot coding agent.Wat het bestand moet zijn
Een gedetailleerde prompt-instructie in Markdown, geschreven als instructie voor de Copilot coding agent. Het beschrijft exact wat de agent moet doen bij een release-opdracht.
Inhoud van
.github/release-task.mdHet bestand moet het volgende beschrijven:
Gebruik
De gebruiker typt in Copilot chat:
of kortweg:
Stap-voor-stap instructies voor de agent
1. Verzamel wijzigingen since laatste release
/repos/{owner}/{repo}/releases/latest)/repos/{owner}/{repo}/pulls?state=closed)merged_atna de datum van de laatste release2. Filter en categoriseer de PRs als volgt:
dependabot[bot]docs:feat:prefix): toon als hoofdpunt met korte beschrijvingfix:prefix): toon als hoofdpunt met korte beschrijvingchore:,refactor:, of interne verschuivingen zoals "Move", "Rename", "Replace public API"): toon kort onderaan in een aparte sectie "🔧 Internal improvements" met links naar de PR3. Genereer de korte changelog (voor
<PackageReleaseNotes>in csproj)4. Genereer de uitgebreide changelog (voor GitHub Release body)
## ✨ New features(als er features zijn)## 🐛 Bug fixes(als er fixes zijn)## 🔧 Internal improvements(als er refactorings zijn, kort met PR-links, geen details)slnx-validator ... --new-flag)**Full Changelog**: https://github.com/{owner}/{repo}/compare/vOUD...vNIEUWdocs:) worden niet opgenomen5. Bepaal de release titel
X.Y.Z: <korte beschrijving van de belangrijkste wijziging(en)>0.6.0: SARIF report output & severity override flags6. Pas de versie aan in
src/SLNX-validator/SLNX-validator.csproj<VersionPrefix>op de nieuwe versie (bijv.0.6.0)<PackageReleaseNotes>met de gegenereerde korte changelog (stap 3)7. Maak een PR aan met:
Bump version to X.Y.Z and update release notes8. Maak de GitHub Release aan via de GitHub API:
vX.Y.Zdraft: false,prerelease: falsemainRegels voor de changelog
Voorbeeld output
Release titel:
0.6.0: SARIF report output & severity override flagsKorte changelog (csproj):
GitHub Release body:
CLI severity override flags — override the severity of specific validation rules per run (#45)
🐛 Bug fixes
🔧 Internal improvements
XDocumentAPI onSlnxFilewith typed SLNX domain model (#54)SlnxCollectorand renameValidationCollector(#51)Full Changelog: v0.5.0...v0.6.0