Skip to content

Conversation

dougcunha
Copy link
Contributor

  • Refactor the commit message generation process to utilize default prompts and enhance clarity while eliminating redundancy.
  • Added new properties for subject and summary prompts, while improving cancellation support in async task handling.
  • feat: add AI prompts for commit message generation.
  • Updated the formatting of the package reference for consistency in the project file.
  • Add properties for managing OpenAI subject and summary prompts in the Preference view model.
  • Refactor layout and add new input fields for AI subject and summary prompts in the preferences view.

- Refactor the commit message generation process to utilize default prompts and enhance clarity while eliminating redundancy.
- Added new properties for subject and summary prompts, while improving cancellation support in async task handling.
- feat: add AI prompts for commit message generation.
- Updated the formatting of the package reference for consistency in the project file.
- Add properties for managing OpenAI subject and summary prompts in the Preference view model.
- Refactor layout and add new input fields for AI subject and summary prompts in the preferences view.
@love-linger love-linger self-assigned this Oct 24, 2024
@love-linger love-linger added the enhancement New feature or request label Oct 24, 2024
@love-linger love-linger merged commit 2f68aed into sourcegit-scm:develop Oct 24, 2024
13 checks passed
love-linger added a commit that referenced this pull request Oct 24, 2024
- Add `ViewModels.Preference.PrepareOpenAIPrompt()` method to generate default prompt instead of a const fallback value. Therefore, it is more convenient for us to modify the default value in the Preference dialog.
- Modify the default prompts. Rename `SubjectPrompt` to `GenerateSubjectPrompt`. Rename `SummaryPrompt` to `AnalyzeDiffPrompt`.
- Rewrite the way to build OpenAI user content for subject generation

Signed-off-by: leo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for customizable template for AI-generated commit messages

2 participants