Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commit message generation feature #2127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 27, 2024

  1. Add commit message generation feature

    Fixes sourcegraph#2109
    
    Add automatic generation of commit messages, PR titles, and descriptions in JetBrains extension.
    
    * **New Classes and Methods**
      - Add `CommitMessageParams` and `CommitMessageResult` data classes in `src/main/java/com/sourcegraph/cody/agent/protocol/`.
      - Add `CodyAgentClient` class with `generateCommitMessage` method in `src/main/java/com/sourcegraph/cody/agent/`.
      - Add `CodyAgentService` class with `generateCommitMessage` method in `src/main/java/com/sourcegraph/cody/agent/`.
      - Add `GenerateCommitMessageAction` class in `src/main/java/com/sourcegraph/cody/actions/`.
    
    * **Plugin Configuration**
      - Update `src/main/resources/META-INF/plugin.xml` to include the new action `GenerateCommitMessageAction`.
    
    * **Settings and UI**
      - Add `commitMessageTemplate` property in `CodyApplicationSettings` in `src/main/kotlin/com/sourcegraph/cody/config/`.
      - Update `CodyConfigurable` in `src/main/kotlin/com/sourcegraph/cody/config/ui/` to include a UI element for the commit message template.
    
    * **Tests**
      - Add tests for `CodyAgentClient`, `CodyAgentService`, and `GenerateCommitMessageAction` in `src/test/kotlin/com/sourcegraph/cody/agent/` and `src/test/kotlin/com/sourcegraph/cody/actions/`.
    nirzaf committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    0d2f51f View commit details
    Browse the repository at this point in the history