Code Monkey home page Code Monkey logo

Comments (10)

Nutlope avatar Nutlope commented on May 30, 2024 28

This is a top priority feature that's currently in the README. We'll try to prioritize it and release it soon!

from aicommits.

guanguans avatar guanguans commented on May 30, 2024 6

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.

warengonzaga avatar warengonzaga commented on May 30, 2024 3

This is must be added as a feature.

from aicommits.

ThijSlim avatar ThijSlim commented on May 30, 2024 3

#177

from aicommits.

kwiss avatar kwiss commented on May 30, 2024 2

conventional commits is a must have +1 let's go for the prompt addition of @thijslimmen

from aicommits.

andreacavagna01 avatar andreacavagna01 commented on May 30, 2024 1

+1

from aicommits.

vanarok avatar vanarok commented on May 30, 2024 1

Such a simple function and such a long implementation.

from aicommits.

ThijSlim avatar ThijSlim commented on May 30, 2024

I created the following PR to enable conventional commits as configuration:
#160

from aicommits.

Braunson avatar Braunson commented on May 30, 2024

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.

privatenumber avatar privatenumber commented on May 30, 2024

Closed via #177

from aicommits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.