The Unified and Autonomous Development Platform
fix: Conventional commits: number in scope not allowed. (OD-2593)
Robin Shenc40ed5b99806
diff --git a/server-core/src/main/java/io/onedev/server/model/support/code/BranchProtection.java b/server-core/src/main/java/io/onedev/server/model/support/code/BranchProtection.javaindex c9a09581e6..28631d5440 100644--- a/server-core/src/main/java/io/onedev/server/model/support/code/BranchProtection.java+++ b/server-core/src/main/java/io/onedev/server/model/support/code/BranchProtection.java@@ -51,7 +51,7 @@ public class BranchProtection implements Serializable {private static final long serialVersionUID = 1L;private static final Pattern CONVENTIONAL_COMMIT_SUBJECT = Pattern.compile(- "^((\\p{L}+)(\\((\\p{L}+([\\-/ ]\\p{L}+)*)\\))?!?: [^ ].+)|^(revert \".*\")",+ "^((\\p{L}+)(\\(([\\p{L}\\p{N}]+([\\-/ ][\\p{L}\\p{N}]+)*)\\))?!?: [^ ].+)|^(revert \".*\")",UNICODE_CHARACTER_CLASS | CASE_INSENSITIVE);private boolean enabled = true;