parent
df7e51ed42
commit
5746df835e
5
.github/PULL_REQUEST_TEMPLATE.md
vendored
5
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -4,7 +4,4 @@
|
|||||||
|
|
||||||
## Checklist
|
## Checklist
|
||||||
|
|
||||||
Please make sure you've completed the following steps before submitting:
|
- [ ] I have run `./scripts/precommit.sh` and addressed all comments
|
||||||
|
|
||||||
- [ ] I have run `./script/fmt_all.sh` to format the code
|
|
||||||
- [ ] I have run `./script/clippy.sh` and fixed all errors/warnings
|
|
||||||
|
13
scripts/precommit.sh
Executable file
13
scripts/precommit.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
|
cd "$SCRIPT_DIR/.." || exit 1
|
||||||
|
|
||||||
|
echo "[*] Formatting this beautiful code"
|
||||||
|
echo
|
||||||
|
"$SCRIPT_DIR"/fmt_all.sh || exit 1
|
||||||
|
echo
|
||||||
|
echo "[*] Asking clippy how to excel"
|
||||||
|
echo
|
||||||
|
"$SCRIPT_DIR"/fmt_all.sh || exit 1
|
||||||
|
echo
|
||||||
|
echo "[!] All done. Ready to commit!"
|
Loading…
x
Reference in New Issue
Block a user