mirror of
https://github.com/profanity-im/profanity.git
synced 2024-06-23 21:45:30 +00:00
Tip about pre-push hook in contribution guidelines
This commit is contained in:
parent
1bbb819dac
commit
d1bf922b1a
|
@ -19,6 +19,22 @@ do
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you feel embarrassed every time the CI fails you can add the following
|
||||||
|
snippet to `.git/hooks/pre-push`:
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
./ci-build.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
This will run the same tests that the CI runs and refuse the push if it fails.
|
||||||
|
Note that it will run on the actual content of the repository directory and not
|
||||||
|
what may have been staged/committed.
|
||||||
|
|
||||||
|
If you're in a hurry you can add the `--no-verify` flag when issuing `git push`
|
||||||
|
and the `pre-push` hook will be skipped.
|
||||||
|
|
||||||
## Pull Requests
|
## Pull Requests
|
||||||
Before submitting a Pull Request please run valgrind and the clang static code analyzer.
|
Before submitting a Pull Request please run valgrind and the clang static code analyzer.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user