Skip to content

feat(ai): generate conventional commit messages via AI sparkles button#475

Open
hendrikheil wants to merge 1 commit into
nuxt-content:mainfrom
hendrikheil:feat/ai-commit-message
Open

feat(ai): generate conventional commit messages via AI sparkles button#475
hendrikheil wants to merge 1 commit into
nuxt-content:mainfrom
hendrikheil:feat/ai-commit-message

Conversation

@hendrikheil

@hendrikheil hendrikheil commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Closes #473

Adds an AI-powered commit message suggestion to the publish bar. When clicked, the sparkles button summarises the pending draft changes and generates a Conventional Commits message via a new dedicated /__nuxt_studio/ai/commit endpoint (Haiku 4.5, same auth gating as the other AI features). The field stays editable - it's a suggestion, not an override.

I kept this as an MVP for now. Two things I was thinking about while building it: it'd be nice to let users configure a preferred commit style through studio.ai - team conventions, scopes, that kind of thing - since the project context mechanism is already there. I also wasn't sure whether to respect the language option (already in translate mode) or just keep commit messages in English, which feels like the safer default for now.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@hendrikheil is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Jun 10, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nuxt-studio@475

commit: 43fe2c5

Adds a sparkles button to the commit message input in the publish bar
that generates a Conventional Commits-style message based on the
pending draft changes. Uses a dedicated `/__nuxt_studio/ai/commit`
endpoint (Haiku 4.5), consistent with the existing `/ai/analyze` pattern.

The button is only visible when AI is configured and disabled while
publishing or when there are no pending drafts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hendrikheil hendrikheil force-pushed the feat/ai-commit-message branch from b8a1b05 to 43fe2c5 Compare June 10, 2026 20:19
@hendrikheil hendrikheil marked this pull request as ready for review June 10, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support generating commit messages

1 participant