mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
18 lines
388 B
Bash
Executable File
18 lines
388 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
current_commit_msg=$(git show -s --format='%s' HEAD)
|
|
|
|
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]]
|
|
then
|
|
printf '%s\n' 'Skip changelog validation for beta commit'
|
|
else
|
|
printf '%s\n' 'Validate changelog for release candidate'
|
|
yarn lint:changelog:rc
|
|
fi
|
|
|
|
exit 0
|