-
Notifications
You must be signed in to change notification settings - Fork 29
Add commit message generation feature #2127
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
Open
nirzaf
wants to merge
1
commit into
sourcegraph:main
Choose a base branch
from
nirzaf:add-commit-message-generation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
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/`.
Hello @nirzaf 👋 thank you for your interest in the contribution I looked into your changes and I checked out your branch. The first thing I noticed is that when I run
Can you please resolve these problems? 🙏 Also we are focused on preparation to the next important release right now. Hopefully, we should be able to put more resources into this one next week. |
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.
Fixes #2109
Add automatic generation of commit messages, PR titles, and descriptions in JetBrains extension.
New Classes and Methods
CommitMessageParams
andCommitMessageResult
data classes insrc/main/java/com/sourcegraph/cody/agent/protocol/
.CodyAgentClient
class withgenerateCommitMessage
method insrc/main/java/com/sourcegraph/cody/agent/
.CodyAgentService
class withgenerateCommitMessage
method insrc/main/java/com/sourcegraph/cody/agent/
.GenerateCommitMessageAction
class insrc/main/java/com/sourcegraph/cody/actions/
.Plugin Configuration
src/main/resources/META-INF/plugin.xml
to include the new actionGenerateCommitMessageAction
.Settings and UI
commitMessageTemplate
property inCodyApplicationSettings
insrc/main/kotlin/com/sourcegraph/cody/config/
.CodyConfigurable
insrc/main/kotlin/com/sourcegraph/cody/config/ui/
to include a UI element for the commit message template.Tests
CodyAgentClient
,CodyAgentService
, andGenerateCommitMessageAction
insrc/test/kotlin/com/sourcegraph/cody/agent/
andsrc/test/kotlin/com/sourcegraph/cody/actions/
.