We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc27eeb commit bedaf75Copy full SHA for bedaf75
justfile
@@ -2,12 +2,24 @@
2
just --list --unsorted
3
4
# Run all necessary build commands.
5
-run-all: check-spelling build-website
+run-all: check-spelling check-commits build-website
6
7
# Check spelling
8
check-spelling:
9
uvx typos
10
11
+# Run checks on commits with non-main branches
12
+check-commits:
13
+ #!/bin/zsh
14
+ branch_name=$(git rev-parse --abbrev-ref HEAD)
15
+ number_of_commits=$(git rev-list --count HEAD ^main)
16
+ if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
17
+ then
18
+ uvx cz check --rev-range main..HEAD
19
+ else
20
+ echo "Can't either be on ${branch_name} or have more than ${number_of_commits}."
21
+ fi
22
+
23
# Build the website using Quarto
24
build-website:
25
quarto render
0 commit comments