Closed bmwoodruff closed 2 weeks ago
The file is located at https://github.com/possee-org/genai-numpy/blob/main/tools/commit-message-creator.ipynb
Having made this, and used it for a while, I'm ready to dump it. I think short commits as you work, one for each function we make examples for, is fine. Then we just rebase and squash our commits onto another branch.
git checkout -b new-branch old-branch
git rebase -i main
Then change all the "pick" to "squash" except the first, and write a nice short clean summary commit message. This rebased branch is what we'll probably share with Chuck and submit as a PR (it's clean).
So while working, commit often and don't worry too much about long commit messages.
I do like one thing in the script above. It makes sure you can type however much you want, and then you can use the part that makes sure your line length never goes above 72.
Description:
I'd like to automate creating properly formatted (72 character max per line) commit messages, to accompany AI generated examples. Given a module and function, the commit message should be pretty standard, as currently our AI tool provides a justification for the created examples.
For example, given
linalg
andouter
, along with the messageI'd like to have it produce:
Acceptance Criteria:
[skip actions] [skip azp] [skip cirrus]