zurawiki / gptcommit

A git prepare-commit-msg hook for authoring commit messages with GPT-3.
MIT License
2.33k stars 78 forks source link

Feature Request: Summarize all commit #88

Open Umiiii opened 1 year ago

Umiiii commented 1 year ago

Based on the multiple diff, can we summarise a sentence for creating Pull Request?

Also, I think we can add some configurations to ignore some files

zurawiki commented 1 year ago

Based on the multiple diff, can we summarize a sentence for creating Pull Request?

How would you use this in your workflow today?

Also, I think we can add some configurations to ignore some files

We do ignore some files! The default files are at

https://github.com/zurawiki/gptcommit/blob/4eccf5a5ee1405c9ade47e537a63e86d3733b7db/src/settings.rs#L26-L31

You can configure them per-repo with gptcommit config set file_ignore

Umiiii commented 1 year ago

Based on the multiple diff, can we summarize a sentence for creating Pull Request?

How would you use this in your workflow today?

Also, I think we can add some configurations to ignore some files

We do ignore some files! The default files are at

https://github.com/zurawiki/gptcommit/blob/4eccf5a5ee1405c9ade47e537a63e86d3733b7db/src/settings.rs#L26-L31

You can configure them per-repo with gptcommit config set file_ignore

Sure! Suppose you have made several commits in your local workspace, and now you want to submit them as a pull request to be merged into the master branch later. To make the process smoother, it's important to provide a clear and concise summary of the changes you've made. This summary should include the main features or fixes implemented by your commits, as well as any relevant information about the project or the development process. A well-written summary can help the reviewer understand your changes and make the merging process more efficient.

zurawiki commented 1 year ago

Hey @Umiiii , thanks for the feedback. Right now, making summaries across multiple commits is not support as gptcommit is for git commits

Niek commented 1 year ago

This would also be a great feature to support changelog creation.

carlin-q-scott commented 10 months ago

I was thinking gptcommit could hook into the merge commit to summarize a PR. Is that possible? It looks like it's the exact same hook you're already using, but the first argument is merge instead of commit.

I'd take the summary and paste it into my PR before aborting the merge.