From bf029ba8b5bc772a2e700b7047fea317bedde0be Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Wed, 18 Mar 2020 17:34:10 +0100 Subject: [PATCH] ci: restric sementic PR to validate PR title only --- .github/semantic.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/semantic.yml b/.github/semantic.yml index e0c83c7166..d8a21f9f41 100644 --- a/.github/semantic.yml +++ b/.github/semantic.yml @@ -1,3 +1,17 @@ +# Always validate the PR title, and ignore the commits +titleOnly: true + +# Always validate all commits, and ignore the PR title +commitsOnly: false + +# Always validate the PR title AND all the commits +titleAndCommits: false + +# Require at least one commit to be valid +# this is only relevant when using commitsOnly: true or titleAndCommits: true, +# which validate all commits by default +anyCommit: false + # By default types specified in commitizen/conventional-commit-types is used. # See: https://github.com/commitizen/conventional-commit-types/blob/v2.3.0/index.json # You can override the valid types @@ -12,3 +26,7 @@ types: - chore - skip changelog - skip ci + +# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns") +# this is only relevant when using commitsOnly: true (or titleAndCommits: true) +allowMergeCommits: false