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

Support generating a commit message for a given changeset #202

Open
RobertCraigie opened this issue Apr 27, 2023 · 2 comments
Open

Support generating a commit message for a given changeset #202

RobertCraigie opened this issue Apr 27, 2023 · 2 comments
Labels
feature New feature or request pr welcome

Comments

@RobertCraigie
Copy link

Feature request

Instead of requiring that files have to be locally staged to generate a commit message, it would be possible to generate a commit message for a given diff, e.g. origin/main..my-feature-branch.

$ aicommits generate origin/main..my-feature-branch

Instead of committing with the generated commit message it would just output message for usage elswhere.

This obviously means that the diffs would probably be too large for OpenAI - so the per-file diff solution mentioned in the roadmap would likely need to be implemented as well for this to be useful.

Why?

We'd love to be able to use this tool to generate a commit message for the entire diff in a PR!

Alternatives

No response

Additional context

No response

@RobertCraigie RobertCraigie added feature New feature or request pending triage labels Apr 27, 2023
@RobertCraigie RobertCraigie changed the title Support generating a commit message for a given diff Support generating a commit message for a given changeset Apr 27, 2023
@privatenumber
Copy link
Collaborator

Good idea!

Maybe aic diff branchA branchB?

@RobertCraigie
Copy link
Author

Yeah that sounds good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request pr welcome
Projects
None yet
Development

No branches or pull requests

2 participants