Automate agentic draft release creation with reasoning-based notes generation#252
Conversation
Agent-Logs-Url: https://github.com/lukka/get-cmake/sessions/7f75cac4-1864-4d8a-9797-62ac48c94b12 Co-authored-by: lukka <681992+lukka@users.noreply.github.com>
lukka
left a comment
There was a problem hiding this comment.
I want an agentic, reasoning-based release process rather than a deterministic script, here is how you can set it up:
Trigger via GitHub Actions: Set up a workflow that runs on a specific trigger (e.g., a schedule, every push to main, or on pull request merges).
Gather Context: In the workflow step, use the GitHub CLI (gh) or REST API to gather recent commits, merged PRs, and relevant discussions.
Agentic Reasoning (LLM Step): Pass this context to an LLM (such as via GitHub Models, OpenAI API, or an AI action). You can prompt the model to act as a Release Manager to:
Determine if a release is actually warranted based on the changes.
Categorize the changes (breaking, features, bug fixes).
Generate intelligent, human-readable release notes based on the context.
Create the Draft Release: If the LLM determines a release should be made, the script parses the LLM's output and uses the GitHub CLI to create the draft release:
bash
gh release create --draft --title "" --notes ""
This approach allows a non-deterministic, context-aware agent to prepare the draft release for you, which a human can then review and publish.
Agent-Logs-Url: https://github.com/lukka/get-cmake/sessions/16e87434-0dc0-4b4f-919f-fc0a71aba054 Co-authored-by: lukka <681992+lukka@users.noreply.github.com>
Agent-Logs-Url: https://github.com/lukka/get-cmake/sessions/16e87434-0dc0-4b4f-919f-fc0a71aba054 Co-authored-by: lukka <681992+lukka@users.noreply.github.com>
Implemented in commit 410a1f3. The auto-release workflow now follows an agentic flow: it gathers release context (commits, merged PRs, previous release template), runs an LLM release-manager reasoning step, and conditionally creates a draft release via |
This PR updates release automation so merged automated CMake-version PRs trigger an agentic, reasoning-based draft release flow instead of a deterministic direct publish flow.
Workflow: agentic draft release creation
.github/workflows/auto-release.ymlto:gh release create --draftonly when approved by the reasoning outputReasoning output and release-note generation
should_create_draft_release)Resilience and fallback behavior
Docs: release process updated
RELEASE_PROCESS.mdto document: