← 输入框|github.com|刷新
Skip to content

feat: skip pre-commit if nothing is in the staging area - #79

Merged
jsumners merged 1 commit into
fastify:mainfrom
iamgiolaga:feat/pre-commit-only-with-git-diff
Oct 26, 2024
Merged

jsumners merged 1 commit into
fastify:mainfrom
iamgiolaga:feat/pre-commit-only-with-git-diff

Conversation

@iamgiolaga

@iamgiolaga iamgiolaga commented Oct 26, 2024 •

Copy link
Copy Markdown
Contributor

pre-commit currently runs also if you have not added something to the staging area.
This PR aims to check if there are diffs and skip the pre-commit hook in case there's nothing new

Checklist

@iamgiolaga
iamgiolaga force-pushed the feat/pre-commit-only-with-git-diff branch from e3ddf72 to ca20985 Compare October 26, 2024 12:28
@jsumners
jsumners merged commit bb607d6 into fastify:main Oct 26, 2024
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants