feat(ai): generate conventional commit messages via AI sparkles button#475
Open
hendrikheil wants to merge 1 commit into
Open
feat(ai): generate conventional commit messages via AI sparkles button#475hendrikheil wants to merge 1 commit into
hendrikheil wants to merge 1 commit into
Conversation
Contributor
|
@hendrikheil is attempting to deploy a commit to the Nuxt Team on Vercel. A member of the Team first needs to authorize it. |
commit: |
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>
b8a1b05 to
43fe2c5
Compare
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.
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/commitendpoint (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 thelanguageoption (already in translate mode) or just keep commit messages in English, which feels like the safer default for now.