Skip to content

Commit

Permalink
render issue templates pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
moritztim committed Feb 13, 2024
1 parent a28ef85 commit 6b5f0c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ if [[ $files =~ .circleci/config.pkl ]]; then
pkl eval .circleci/config.pkl -o .circleci/config.yml
git add .circleci/config.yml
fi

if [[ $files =~ \.github/ISSUE_TEMPLATE/.*\.pkl ]]; then
for file in .github/ISSUE_TEMPLATE/*.pkl; do
pkl eval $file -f yaml -o ${file%.pkl}.yml
git add ${file%.pkl}.yml
done
fi

0 comments on commit 6b5f0c1

Please sign in to comment.