mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-02 00:04:45 -08:00
fix: set scripts as executable, refs NOISSUE
This commit is contained in:
2
.gitea/conventional_commits/commit-msg
Normal file → Executable file
2
.gitea/conventional_commits/commit-msg
Normal file → Executable file
@@ -7,7 +7,7 @@ echo "Running commit message checks..."
|
|||||||
# Get the commit message
|
# Get the commit message
|
||||||
commit="$(cat .git/COMMIT_EDITMSG)"
|
commit="$(cat .git/COMMIT_EDITMSG)"
|
||||||
# Define the conventional commit regex
|
# Define the conventional commit regex
|
||||||
regex='^((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?(!?):\s([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE))?))|(release: .*)$'
|
regex='^((build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?(!?):\s([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)(\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE)))?))|(release: .*)$'
|
||||||
|
|
||||||
# Check if the commit message matches the conventional commit format
|
# Check if the commit message matches the conventional commit format
|
||||||
if ! echo "$commit" | grep -Pq "$regex"
|
if ! echo "$commit" | grep -Pq "$regex"
|
||||||
|
|||||||
@@ -64,16 +64,16 @@ start() {
|
|||||||
|
|
||||||
while read message; do
|
while read message; do
|
||||||
echo $message
|
echo $message
|
||||||
if echo $message | grep -Pq '(feat|style)(\([\w]+\))?!:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE))?)'; then
|
if echo $message | grep -Pq '(feat|style)(\([\w]+\))?!:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)(\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE)))?)'; then
|
||||||
increment_type="major"
|
increment_type="major"
|
||||||
echo "a"
|
echo "a"
|
||||||
break
|
break
|
||||||
elif echo $message | grep -Pq '(feat|style)(\([\w]+\))?:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE))?)'; then
|
elif echo $message | grep -Pq '(feat|style)(\([\w]+\))?:([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)(\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE)))?)'; then
|
||||||
if [ -z "$increment_type" ] || [ "$increment_type" == "patch" ]; then
|
if [ -z "$increment_type" ] || [ "$increment_type" == "patch" ]; then
|
||||||
increment_type="minor"
|
increment_type="minor"
|
||||||
echo "b"
|
echo "b"
|
||||||
fi
|
fi
|
||||||
elif echo $message | grep -Pq '(build|fix|perf|refactor|revert)(\(.+\))?:\s([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE))?)'; then
|
elif echo $message | grep -Pq '(build|fix|perf|refactor|revert)(\(.+\))?:\s([a-zA-Z0-9-_!\&\.\%\(\)\=\w\s]+)(\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(#[0-9]+)|(NOISSUE)))?)'; then
|
||||||
if [ -z "$increment_type" ]; then
|
if [ -z "$increment_type" ]; then
|
||||||
increment_type="patch"
|
increment_type="patch"
|
||||||
echo "c"
|
echo "c"
|
||||||
|
|||||||
Reference in New Issue
Block a user