mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
fix: Conventional commits: number in scope not allowed. (OD-2593)
This commit is contained in:
parent
573cf4ebf2
commit
c40ed5b998
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user