Skip to content

Commit

Permalink
chore: Update commit validation task version
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdichtioui committed Nov 28, 2024
1 parent 89c4c05 commit 138b8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/templates/validate-commits.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This template is used to validate that the commit messages follow the Conventional Commits specification (https://www.conventionalcommits.org/en/v1.0.0/).
# Consider placing this at the beginning of the build pipeline to ensure that the commits are valid before proceeding with longer build steps.
steps:
- task: CommitMessageValidator@0
- task: CommitMessageValidator@1
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
regExPattern: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\.\-\p{Extended_Pictographic}]+\))?(!)?: ([\w \p{Extended_Pictographic}])+([\s\S]*)'
Expand Down

0 comments on commit 138b8df

Please sign in to comment.