pantheon-systems / documentation

Pantheon Docs
https://docs.pantheon.io
Other
194 stars 671 forks source link

Add Prettier pre-push hook #9283

Closed jazzsequence closed 3 weeks ago

jazzsequence commented 1 month ago

This pull request adds a Prettier pre-push hook to automatically format JavaScript files before pushing. It also adds a new section to the readme file explaining how to use the git hooks that have been added to the .github/hooks folder.

The .github/hooks folder includes a pre-push hook that runs Prettier to check for code styling issues and automatically adds the changes back to the branch if any are found.

The documentation explains how to use this pre-push hook since it is not possible to commit git hooks stored in the normal .git/hooks directory to a repository.

pantheon-decoupled[bot] commented 1 month ago

:zap: Deployed with Pantheon Decoupled

This build was successfully deployed with Pantheon. You can track the build logs here.

:eyes: Preview: https://pr-9283-documentation.appa.pantheon.site :hammer_and_wrench: Manage in Pantheon: https://dashboard.pantheon.io/site/2b30153f-e8b1-4427-b076-6109e704ba5d/overview

pantheon-decoupled[bot] commented 3 weeks ago

:zap: Deployed with Pantheon Decoupled

This build was successfully deployed with Pantheon. You can track the build logs here.

:eyes: Preview: https://pr-9283-documentation.appa.pantheon.site :hammer_and_wrench: Manage in Pantheon: https://dashboard.pantheon.io/site/2b30153f-e8b1-4427-b076-6109e704ba5d/overview