Skip to content

feat(Git Commit): Automatically generate commits#9164

Merged
gatzjames merged 15 commits intoKong:feat/generative-aifrom
gatzjames:ai/git-messages
Oct 8, 2025
Merged

feat(Git Commit): Automatically generate commits#9164
gatzjames merged 15 commits intoKong:feat/generative-aifrom
gatzjames:ai/git-messages

Conversation

@gatzjames
Copy link
Contributor

@gatzjames gatzjames commented Sep 22, 2025

Overview

Insomnia now uses an AI service to automatically generate multiple commits for git.
To achieve this it collects previous commit messages alongside a diff of the current git status and provides it as context to the AI service.

Highlights:

  • New bridge API to generate AI commits using insomnia-ai
  • New utility process to run the plugin for commit generation.
  • Expanded the git service to handle multiple commits
  • Drag-n-drop UX to move files between commits.
  • Allows editing commit messages for each generated commit
  • Do not commit section where the user can drag-n-drop files they don't want to include in the generated commits
  • Simplified the git-project-staging-modal.tsx code to handle the added complexity
  • Added a new form for the generated-commits that follows the same UX (handles pull/push if needed) with the manual commit flow.

@gatzjames gatzjames self-assigned this Sep 22, 2025
@gatzjames gatzjames force-pushed the ai/git-messages branch 2 times, most recently from 028200a to 8de20be Compare September 29, 2025 11:27
@gatzjames gatzjames changed the base branch from develop to feat/generative-ai October 1, 2025 17:29
@gatzjames gatzjames force-pushed the ai/git-messages branch 2 times, most recently from c9e9a16 to 88621d9 Compare October 2, 2025 16:50
@gatzjames gatzjames requested review from a team and ryan-willis October 3, 2025 16:12
@gatzjames gatzjames marked this pull request as ready for review October 3, 2025 16:12
Copy link
Contributor

@shelby-moore shelby-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good, I think we need to publish 1.0.3 of the plugin to resolve the failing type check CI.

@gatzjames gatzjames force-pushed the ai/git-messages branch 3 times, most recently from 100729e to 3273d9e Compare October 7, 2025 18:19
@gatzjames gatzjames merged commit 9ca2372 into Kong:feat/generative-ai Oct 8, 2025
9 checks passed
@gatzjames gatzjames deleted the ai/git-messages branch October 8, 2025 18:02
gatzjames added a commit that referenced this pull request Oct 22, 2025
* feat: add AI-generated commit message functionality in staging modal

* feat: enhance AI commit message generation with error handling and improved UI

* fix: update button icon and text for commit generation state in staging modal

* feat: add diff functionality to Git service and integrate with AI commit message generation

* feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS

* feat: implement multiple commit functionality for Git VCS and integrate with staging modal

* feat: add validation for staged changes before generating commit messages

* feat: implement generateCommitsFromDiff functionality for AI commit message generation

* Cleanup staging modal and use tree data for reordering and submitting multiple commits

* Revert "feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS"

This reverts commit b731372.

* feat: update type definitions for diff changes in Git VCS

* refactor: remove console logs and commented code from staging modal and AI commit generation

* feat: implement git commit generation process using a separate utility process for improved error handling and performance

* fix: improve error handling messages in AI commit generation

* chore: update optional dependency for AI plugin to alpha version 1.0.3
gatzjames added a commit that referenced this pull request Oct 23, 2025
* feat: integrate AI plugin and configure LLMs in preferences (#9192)

* poc: LLM configuration

* fix formatting + tidy script

* fix openpath type send method

* exempt node_modules from vitest

* reset package-lock for inso build

* switch from send/on to invoke/handle

* switch to pluginData

* remove unnecessary animation

* remove extraneous external defs in frontend bundle config

* rebase fix

* feat: mock server gen (#9201)

* add ipc handler methods in front of llm config service (#9202)

* feat: gemini first class config support (#9209)

* feat: add gemini as a backend

* fix: save api key the first time

* chore: call plugin from utility process (#9210)

* feat: additional mock server event tracking (#9215)

* feat(Git Commit): Automatically generate commits (#9164)

* feat: add AI-generated commit message functionality in staging modal

* feat: enhance AI commit message generation with error handling and improved UI

* fix: update button icon and text for commit generation state in staging modal

* feat: add diff functionality to Git service and integrate with AI commit message generation

* feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS

* feat: implement multiple commit functionality for Git VCS and integrate with staging modal

* feat: add validation for staged changes before generating commit messages

* feat: implement generateCommitsFromDiff functionality for AI commit message generation

* Cleanup staging modal and use tree data for reordering and submitting multiple commits

* Revert "feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS"

This reverts commit b731372.

* feat: update type definitions for diff changes in Git VCS

* refactor: remove console logs and commented code from staging modal and AI commit generation

* feat: implement git commit generation process using a separate utility process for improved error handling and performance

* fix: improve error handling messages in AI commit generation

* chore: update optional dependency for AI plugin to alpha version 1.0.3

* fix: ensure data dir exists prior to reading (#9220)

* fix: ensure data dir exists prior to reading

* rename handler

* feat: mock server gen ux improvements (#9221)

* fix: include mockgen script in build (#9222)

* feat: add git commit generation process to build script (#9226)

* fix: set min height for git folder selector (#9242)

* chore: ai plugin 1.0.4 (#9243)

* feat: toggle ai features (#9232)

* feat: track commit generation and saving events for analytics (#9293)

* feat: add analytics tracking for commit message generation events

* fix: update segment event names to camelCase for consistency

* Update package-lock with the plugin modules

* fix(build): add x64ArchFiles option back (#9297)

* fix: autoselect self hosted mock when cloud mock disabled (#9299)

* fix: hide ai settings from scratch pad user (#9300)

---------

Co-authored-by: Shelby Moore <13246465+shelby-moore@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
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.

2 participants