You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve pulled this discussion here to keep things focused.
We discussed as part of the generator that converts “checklist.json” into “README.md” that we should make a pre-commit hook that would automatically run the generator for us. (See #1 & #22)
The script
I’ve already put a little idea together for the script, which I’ve already pasted into #1. Here it is for reference:
#!/bin/sh# Check if this is the initial commitif git rev-parse --verify HEAD >/dev/null 2>&1then
node generator/index.js
git add README.md
exit 0
elseexit 0
I guess we need to think of a solution that doesn’t over complicate things for a potential contributor.
I’ve pulled this discussion here to keep things focused.
We discussed as part of the generator that converts “checklist.json” into “README.md” that we should make a pre-commit hook that would automatically run the generator for us. (See #1 & #22)
The script
I’ve already put a little idea together for the script, which I’ve already pasted into #1. Here it is for reference:
I guess we need to think of a solution that doesn’t over complicate things for a potential contributor.
@peter-mouland has already kicked the ideas off in #1 by suggesting husky
The text was updated successfully, but these errors were encountered: