FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Docs: add note about pre-push hooks not being triggered on ref deletions by whophil · Pull Request #893 · pre-commit/pre-commit.com · GitHub

Docs: add note about pre-push hooks not being triggered on ref deletions - #893

Open
whophil wants to merge 1 commit into
pre-commit:mainfrom
whophil:note-pre-push-behavior
Open

Docs: add note about pre-push hooks not being triggered on ref deletions#893
whophil wants to merge 1 commit into
pre-commit:mainfrom
whophil:note-pre-push-behavior

Conversation

whophil commented Nov 3, 2023

Copy link
Copy Markdown

Documents behavior described in pre-commit/pre-commit#3050

Comment thread sections/advanced.md
Comment on lines +185 to +186
note: `pre-push` hooks are not triggered for ref deletions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

there's a bit more nuance to this than just that -- the variables below imply this is already the case since there must be a from-ref and a to-ref

whophil Nov 3, 2023
edited
Loading

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Based on the environment variables, I was expecting PRE_COMMIT_TO_REF to be 0000000000000000000000000000000000000000 here, in the case of a ref deletion.

Would you propose an alternate wording, or not documenting this at all?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL