Skip to main content

HighFlux Hooks

Future versions of HighFlux will allow you to configure and unify work-in-progress processes, workflows and tools across the entire team.

The first start HighFlux provides is a “hook” that runs prior to merging a WIP, and can block the "merge" process.

To setup a pre-merge hook, add the file .highflux/hooks/pre-merge If this script returns an exit code different than 0, the merge will be blocked.

For example, here’s a script that makes sure your rust code is properly formatted:

.highflux/hooks/pre-merge
#!/bin/bash

( cd rust-project
if ! cargo fmt --check; then
echo -e '\nPlease run "cargo fmt" before hf merge'
exit 1
fi
)

exit 0