Skip to content

Commit 0b1a5bd

Browse files
authored
Merge pull request #6135 from jberkus/candidate-limit
Adjusted Steering Bio checker per issue.
2 parents 4f396d0 + dec85cf commit 0b1a5bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/verify-steering-election.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ set -o pipefail
2121
shopt -s extglob
2222

2323
# exclude bios before 2021 since some of them have more than 300 words
24-
STEERING_ELECTION_BIOS="$(pwd)/events/elections/!(2017|2018|2019|2020)/!(README|RESULTS|voters).md"
24+
STEERING_ELECTION_BIOS="$(pwd)/events/elections/!(2017|2018|2019|2020)/candidate-*.md"
2525

2626
invalid_bios=0
2727
break=$(printf "=%.0s" $(seq 1 68))
2828

2929
for bio in ${STEERING_ELECTION_BIOS} ; do
3030
[[ -f $bio ]] || continue
3131
word_count=$(wc -w < "$bio")
32-
if [[ ${word_count} -gt "300" ]]; then
32+
if [[ ${word_count} -gt "450" ]]; then
3333
echo "${bio} has ${word_count} words."
3434
invalid_bios=$((invalid_bios+1))
3535
fi
@@ -39,7 +39,7 @@ if [[ ${invalid_bios} -gt "0" ]]; then
3939
echo ""
4040
echo "${break}"
4141
echo "${invalid_bios} invalid Steering Committee election bio(s) detected."
42-
echo "All bios must be limited to 300 words."
42+
echo "Bios should be limited to around 300 words, excluding headers."
4343
echo "${break}"
4444
exit 1;
4545
fi

0 commit comments

Comments
 (0)