Comments (14)
@di-sukharev, just some context:
Tools like commitizen are widely used to make conventional commits for automating semantic versioning and changelogs. Currently, OC does not conform to conventional commits. You can find the specifications here.
The main issue a missing blank space between the first line describing header (type, scope, and subject) and the descriptive text.
from opencommit.
It goes beyond that, usually projects use the following package to lint their commits using git hooks (husky), if the AI follow the specs configured at commitlint.config.js/ts file, and as @jakob1379 said the specification of conventional commits. That way, many workflows that implement the commit linting can use opencommit without major problems
from opencommit.
you can do oc --amend
and all other git commit flags are also passed to oc
. Sorry, I dont get your first 2 points :0
from opencommit.
Yeah, by default some tools like monorepos use git scopes to automate releases of certain packages, so would be great that as @jakob1379 suggest, the AI uses conventional commits or any other git spec (like angular commits) or even custom specs to do their job, so tools that sues that spec don't fail, something like commitlint and that
from opencommit.
so you are saying that adding a blank space between header and description would solve the issue?
from opencommit.
+1 this. I maintain multiple projects with their respective commit message style. It is not always conventional commits sometimes just plain english (what I dislike. But this is a different discussion altogether). However, it would be great if OC recognizes this and creates messages according to the commit style that is already present. As far as I know one can send this is further context for GPT-3.5. I suppose that last n
commits are sufficient as well, so that you don't have to send the while history for this to work.
from opencommit.
could anybody help me here please and make the PR? <3
from opencommit.
I can take a look it this. Not sure when I get to it. Probably this weekend
from opencommit.
+1 this. I maintain multiple projects with their respective commit message style. It is not always conventional commits sometimes just plain english (what I dislike. But this is a different discussion altogether). However, it would be great if OC recognizes this and creates messages according to the commit style that is already present. As far as I know one can send this is further context for GPT-3.5. I suppose that last
n
commits are sufficient as well, so that you don't have to send the while history for this to work.
I'd rather have a config to define the style, because previous commit messages might be flawed. Yet enhancing prompt with previously correct commit messages could be a nice option.
from opencommit.
I'm working on this, I will submit a PR soon.
from opencommit.
@D4RKAR117 @jakob1379 @dasheck0 Could you please review the PR and provide feedback?
from opencommit.
Stale issue message
from opencommit.
@sebastienfi hi, are we done here or should i reopen?
from opencommit.
ok, i see <3
from opencommit.
Related Issues (20)
- [Bug]: Unable to use oco with ollama running mistral HOT 5
- [Bug]: Local Ollama with OpenCommit not working when internet is blocked HOT 5
- [Feature]: Claude 3 Support HOT 3
- [Bug]: Unsupported config key `OCO_MODEL` error when using `oco` command HOT 13
- [Bug]: Setting `OCO_ONE_LINE_COMMIT=true` generates a multi-line message HOT 1
- [Bug]: Request failed with status code 404 HOT 1
- [Feature]: add oco at Docker hub HOT 1
- [Bug]: ✖ Unsupported config key OCO_OPENAI_API_KEY: Must be 51 characters long
- [Bug]: Unsupported config key OCO_OPENAI_API_KEY: Must be 51 characters long HOT 3
- [Bug]: Commit Types Not Included in Generated Commit Messages HOT 5
- [Bug]: Punycode warning HOT 4
- [Feature]: gpt-4o model
- [Feature]: support global `.opencommitignore`
- [Bug]: `git commit` hook does not use `.opencommitignore`
- [Feature]: support groq HOT 3
- [Bug]: 70 seconds delay before proceeding if using `ollama` option with no internet HOT 1
- [Feature]: Support line-breaks in Message Template
- [Bug]: Unsupported config key OCO_AZURE_ENDPOINT - even when provider is set to openai HOT 9
- [Feature]: make top_p and temperature parameters configurable HOT 1
- [Bug]: Always used full list of emoji
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 opencommit.