diff --git a/.scripts/commit-msg b/.scripts/commit-msg index 5973667..87e37ab 100644 --- a/.scripts/commit-msg +++ b/.scripts/commit-msg @@ -8,7 +8,7 @@ COMMIT_MSG=$(cat "$COMMIT_MSG_FILE") # Regex pattern for Conventional Commits # Example: "feat: add new feature" or "fix!: break everything" -PATTERN='^(feat|fix|docs|style|refactor|perf|test|chore|revert|build|ci|wip|workflow)([!]?): .{1,}$' +PATTERN='^(feat|fix|docs|style|refactor|perf|test|chore|revert|build|ci|wip|workflow)(\(.*\))?([!]?): .{1,}$' if ! echo "$COMMIT_MSG" | grep -Eq "$PATTERN"; then echo "❌ Invalid commit message format." diff --git a/Cargo.lock b/Cargo.lock index 5c32523..d4e0518 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3201,7 +3201,7 @@ dependencies = [ [[package]] name = "teachertracker-rs" -version = "0.1.6" +version = "0.1.7" dependencies = [ "async-trait", "chrono", diff --git a/Cargo.toml b/Cargo.toml index dd23373..e56dfc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teachertracker-rs" -version = "0.1.6" +version = "0.1.7" edition = "2024" authors = ["Lukas Wölfer "] description = "A MediaWiki bot that updates score information of teachers"