Skip to content
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

chore(githooks): add pre-commit scripts for adorno #34

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions githooks/pre-commit-adorno
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

foundryup
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I want tihs hook to automatically update the tooling on my machine.

@gravityblast wdyt?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the same @0x-r4bbit . I don't really like precommits forced in the repo.
I prefer them to be forced on CI but optional in local


if [ $? -ne 0 ]; then
echo "foundryup failed."
exit 1
fi

pnpm run adorno

if [ $? -ne 0 ]; then
echo "pnpm run adorno failed."
exit 1
fi

git add .

echo "Successfully ran pnpm run adorno and added modified files."

exit 0
Loading