docs: add git config user.* to commit successfully#1877
Conversation
|
@HankyStyle do you want to take a look on this fix? |
There was a problem hiding this comment.
Pull request overview
This PR fixes the broken commit.gif generation in the documentation by adding git user configuration commands to the VHS tape file. The issue occurred because GitHub Actions environments don't have git user.name and user.email configured by default, causing commits to fail during the automated screenshot generation process.
Changes:
- Added
git config user.emailandgit config user.namecommands to the commit.tape VHS recording script
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Yes, this PR fixes the issue. The problem wasn't caught earlier because I had global git config set locally, so it always worked on my machine. Thanks @bearomorphism for the fix! I've tested it with clean environment and confirmed it works correctly. Before:
|
|
Thanks for double confirming that this PR actually fixes the issue :) |


Fixes #1876
Verified the solution by running
vhs docs/images/commit.tape, and the generated/tmp/commitizen-demofolder is with correct git log (with a commit authored byyou@example.com)