Comments (10)
This is a top priority feature that's currently in the README. We'll try to prioritize it and release it soon!
from aicommits.
Share my repository(https://github.com/guanguans/ai-commit) written in PHP.
Support to generate multiple conventional messages for us to choose.
Here is the prompt I am using:
Here is the output of the `git diff`:
<diff>
Here are some best practices for writing commit messages:
- Write clear, concise, and descriptive messages that explain the changes made in the commit.
- Use the present tense and active voice in the message, for example, "Fix bug" instead of "Fixed bug."
- Use the imperative mood, which gives the message a sense of command, e.g. "Add feature" instead of "Added feature"
- Limit the subject line to 72 characters or less.
- Capitalize the subject line.
- Do not end the subject line with a period.
- Limit the body of the message to 256 characters or less.
- Use a blank line between the subject and the body of the message.
- Use the body of the message to provide additional context or explain the reasoning behind the changes.
- Avoid using general terms like "update" or "change" in the subject line, be specific about what was updated or changed.
- Explain, What was done at a glance in the subject line, and provide additional context in the body of the message.
- Why the change was necessary in the body of the message.
- The details about what was done in the body of the message.
- Any useful details concerning the change in the body of the message.
- Use a hyphen (-) for the bullet points in the body of the message.
Write <num> commit messages that accurately summarizes the changes made in the given `git diff` output, following the best practices listed above and the conventional commit format.
Please provide a response in the form of a valid JSON object and do not include "Output:", "Response:" or anything similar to those two before it, in the following format:
[
{
"id": 1,
"subject": "<type>(<scope>): <subject>",
"body": "<BODY (bullet points)>"
},
...
{
"id": n,
"subject": "<type>(<scope>): <subject>",
"body": "<BODY (bullet points)>"
}
]
from aicommits.
This is must be added as a feature.
from aicommits.
from aicommits.
conventional commits is a must have +1 let's go for the prompt addition of @thijslimmen
from aicommits.
+1
from aicommits.
Such a simple function and such a long implementation.
from aicommits.
I created the following PR to enable conventional commits as configuration:
#160
from aicommits.
Even the functionality to specify a "prefix" to prefix the commit message would be a quick one.. i.e. aitcommit -p "chore:"
Edit: Looks like that is already available via -t or --type
from aicommits.
Closed via #177
from aicommits.
Related Issues (20)
- Pre-Commit Hook Not Working with Husky HOT 1
- Take into account previous commit messages HOT 5
- Add an option to accept whatever the suggestion is HOT 3
- Generate a commit message from an existing commit HOT 3
- Socket connection timeout
- AI commits crash when generating commit message
- aicommits uses first the envVar instead of the env in .aicommits file HOT 1
- Include Past commits HOT 1
- Prompt shouldn't include Character limit
- Generate Message Body
- aicommits hides the output of husky HOT 1
- Option to skip precommit checks HOT 1
- Error: Too many requests HOT 1
- Extract issue name from branch and append to commit message HOT 2
- Message sanitization should not always remove newlines
- Feature: Ollama integration HOT 6
- self-signed certificate in certificate chain
- Unable to Set OpenAI API Key HOT 4
- How to setting max tokens? HOT 2
- Timeout Error in aicommits v1.11.0 on Large File Commit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aicommits.