Skip to content

Commit

Permalink
Merge pull request #885 from hugochinchilla/main
Browse files Browse the repository at this point in the history
Document post-merge needs 'always_run: true'
  • Loading branch information
asottile authored Oct 16, 2023
2 parents 46f078e + 822ae7f commit 298690e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sections/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ _new in 2.11.0_

`post-merge` runs after a successful `git merge`.

`post-merge` hooks do not operate on files so they must be set as
`always_run: true` or they will always be skipped.

environment variables:
- `PRE_COMMIT_IS_SQUASH_MERGE`: the first argument to the `post-merge` git hook.

Expand Down

0 comments on commit 298690e

Please sign in to comment.