-
Notifications
You must be signed in to change notification settings - Fork 13
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
Count the files for multi-file changes #38
Comments
Consider a threshold - maybe 4 files or less lists the names otherwise breaks out as counts Or maybe check the length of the generated message and then fallback to generating the count one. |
Any idea when this will be available? |
I haven't though about this one for a while. I can find time this weekend. If I make PR, would you be able to review it and/or try it out locally before the next release? |
Sure will do! |
I have some work in progress on draft linked PR. So far handles exactly one file so not useful yet LOL. But following TDD with tests firsts and one file is the easiest to start with. |
I'll update here when it's ready for review |
@glassesUSA i made some good progress. I have a function that can generate
I have two areas I'd like your input on. See if you agree and if there are any scenarios or behaviors that you want to suggest. Conventional commitHow about the prefix before the message should always be And if you only move or rename, it is refactor. If you only delete files, then it is chore. BTW I have an idea to implement pressing the button twice to go from feat to fix in a follow up. #50 When to count filesI was wondering when it makes sense to apply the create x files bit. I'm thinking:
The more than 4 is easy to do initially. I'm thinking later generate the named files and if the message is more than 50 characters then regenerate a message using counts. #49 |
Sounds good to me! |
@glassesUSA I've put through 2 PRs and have the code working well installed in my IDE I'm not doing a release yet so that I have time to use it some more, but you can try it out by cloning the repo and running the following:
For the second PR that was merged. Please see the test cases for these functions for high-level message handling. See if you think I covered a good mix of cases.
The https://github.com/MichaelCurrin/auto-commit-msg/blob/master/src/test/prepareCommitMsg.test.ts In the first PR that was merged, I set up See https://github.com/MichaelCurrin/auto-commit-msg/blob/master/src/test/generate/count.test.ts The I've linked some follow-up issues here, in particular to add conv commit support. |
I didn't see a response but I have been using this code the last week and it works fine for me. So am making a new release and closing this issue. |
Apologies was running a different repo that required a specific naming convention for requests so didn't have time to test. Glad it seems to be working! |
Please see release with downloadable file https://github.com/MichaelCurrin/auto-commit-msg/releases/tag/v0.20.0 |
e.g.
update 3 files in foo
update 16 files and delete 2 files
Relates to #13
The text was updated successfully, but these errors were encountered: