di-sukharev / di-sukharev/opencommit
[Feature]: GPT is passed my commit message draft to rewrite
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 445
- Avg merge
- 18m
- Merged PRs (30d)
- 2
Description
Description
Instead of passing only the contents of the diff, also pass the written commit message. This gives the AI more context, and the goal being I would have to do less editing after receiving back the message if it knew my message intention on the first pass.
This would let me still be mostly in control of the message, but would automatically update my messages to use the conventional commit standards.
Suggested Solution
Prompt is updated to be something like "rewrite the following git message: {}, using this git diff "{} ...".
Alternatives
No response
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the prompt construction and commit-message generation entry point that currently passes only the diff. Update the flow so the user's draft message is included with the diff, then verify that the generated result uses the draft's intent while still following conventional commit standards.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, javascript
- Domain
- ai, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100