Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for commitlint #20

Open
gfargo opened this issue Jul 11, 2023 · 1 comment
Open

Add support for commitlint #20

gfargo opened this issue Jul 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gfargo
Copy link
Owner

gfargo commented Jul 11, 2023

Would be awesome if coco could incorporate any rules or validation enforced by commitlint

// commitlint.config.js
module.exports = {
  extends: ['@commitlint/config-conventional'], // => @commitlint/config-conventional
};

If the message fails commitlint the resulting errors should be passed back into the prompt for consideration when regenerating.

e.g

# Lint from stdin
echo 'foo: bar' | commitlint
⧗   input: foo: bar
✖   type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum]

✖   found 1 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
@gfargo gfargo added the enhancement New feature or request label Jul 11, 2023
@gfargo
Copy link
Owner Author

gfargo commented Feb 26, 2025

Definitely feels like a place where we should be using agent tools

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

No branches or pull requests

1 participant