diff --git a/.github/workflows/check-commit-message.yml b/.github/workflows/check-commit-message.yml index 96396e9..dc84f85 100644 --- a/.github/workflows/check-commit-message.yml +++ b/.github/workflows/check-commit-message.yml @@ -26,14 +26,14 @@ jobs : - name : Check Commit Type uses : gsactions/commit-message-checker@v2 with : - pattern : '^(feat|fix|docs|style|refactor|perf|test|chore|build)(.+?)?: .+' + pattern : '^(feat|fix|docs|style|refactor|perf|test|chore|build|ci)(.+?)?: .+' flags : 'gm' error : 'Your commit title did not follow semantic versioning. Please see https://github.com/IQKV/.github/blob/dev/SEMANTIC_COMMITS.md' - name : Check Line Length uses : gsactions/commit-message-checker@v2 with : - pattern : '^.{8,180}$' - error : 'The maximum line length of 180 characters is exceeded.' + pattern : '^.{6,220}$' + error : 'The maximum line length of 220 characters is exceeded.' excludeDescription : 'true' # this excludes the description body of a pull request excludeTitle : 'false' checkAllCommitMessages : 'false' diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml index 3f3a317..05447e0 100644 --- a/.github/workflows/check-pr-title.yml +++ b/.github/workflows/check-pr-title.yml @@ -11,9 +11,9 @@ jobs : steps : - uses : deepakputhraya/action-pr-title@master with : - regex : '^(feat|fix|docs|style|refactor|perf|test|chore|build)(.+?)?: .+' # Regex the title should match. - allowed_prefixes : 'feat,fix,docs,style,refactor,perf,test,chore,build' # title should start with the given prefix - prefix_case_sensitive : true # title prefix are case insensitive - min_length : 8 # Min length of the title - max_length : 180 # Max length of the title + regex : '^(feat|fix|docs|style|refactor|perf|test|chore|build|ci)(.+?)?: .+' # Regex the title should match. + allowed_prefixes : 'feat,fix,docs,style,refactor,perf,test,chore,build,ci' # title should start with the given prefix + prefix_case_sensitive : true + min_length : 6 + max_length : 220 github_token : ${{ github.token }} # Default: ${{ github.token }} diff --git a/.husky/pre-commit b/.husky/pre-commit index c1344cb..6a99b59 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -14,7 +14,7 @@ if [[ ! $current_branch =~ $valid_branch_names ]]; then exit 1 fi -valid_commit="^(feat|fix|docs|style|refactor|perf|test|chore|build)(.+?)?: .+" +valid_commit="^(feat|fix|docs|style|refactor|perf|test|chore|build|ci)(.+?)?: .+" if [[ ! $1 =~ $valid_commit ]]; then echo -e "\033[1;31m[ERROR] Your commit title did not follow semantic versioning.\033[0m" exit 1