-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature: Suggest a corrected PR title if determinable? #367
Comments
To blow this out of proportion... I saw a while back @bdougie had done a write up of commit message suggestions generated by AI (aicommits by @Nutlope). The package appears to have an optional to generate conventional commit messages, so it could be cool to do something with that: https://dev.to/bdougieyo/ai-generated-git-commit-messages-4j7g The package is tooled as a CLI, so I'm not 100% how to use that with NCC-compiled things like this action. Also, there are some cases of mixed messaging that could come about, e.g. if you have a template for PR messages and at the same time, you kick back a generated suggestion that may have nothing to do with the template. Could be a feature issue worth filing on that repo 🤷 And back down to what you mention here... |
Yeah I'm very hesitant to onboard AI in repository automation because of its nondeterminism:
My preference would be to find or create a package that suggests a conventional commit name when given a non-conventional name based only on a set of rough heuristics. Being able to plug in an AI model would be a really nifty followup IMO. |
Is your feature request related to a problem? Please describe.
Sometimes users create PRs with titles that almost match the conventional commit title. They'll do something like
Feature: Abc Def
instead offeat: abc def
. Then they get confused by the complaint/error asking them to match the spec.Describe the solution you'd like
For PR titles that match a known set of common mistakes such as that one, could we suggest the fix for them? Mocking up messaging:
Describe alternatives you've considered
I suppose we could do it for them? But that's a bit more work. And I do want users to know to add correct PR titles in the first place...
The text was updated successfully, but these errors were encountered: