From cd37d40fdc641f61424b07411d23779ab1b5153c Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 16 Dec 2022 14:50:11 +0100 Subject: [PATCH] (dev) fix brakeman setup + improved overcommit checking --- .github/workflows/brakeman-analysis.yml | 4 ++-- .overcommit.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/brakeman-analysis.yml b/.github/workflows/brakeman-analysis.yml index 7ba7ae58f..70885eec5 100644 --- a/.github/workflows/brakeman-analysis.yml +++ b/.github/workflows/brakeman-analysis.yml @@ -17,11 +17,11 @@ jobs: steps: # Checkout the repository to the GitHub Actions runner - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Customize the ruby version depending on your needs - name: Setup Ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 with: ruby-version: '2.6' diff --git a/.overcommit.yml b/.overcommit.yml index 2bc07d644..f5905b8c1 100644 --- a/.overcommit.yml +++ b/.overcommit.yml @@ -12,7 +12,7 @@ CommitMsg: MessageFormat: enabled: true - pattern: ^(\([a-z0-9]+\) [\w ]+(\n\n.+)?)|(Version (\d+\.?)+)|(Merge branch .*) - expected_pattern_message: (type) title\n\ndescription + pattern: ^(\((doc|bug|feat|security|dev|i18n|api|test|quality|ui|merge)\) [\w ]++(\n\n.+)?)|(Version (\d+\.?)+)|(Merge branch .*) + expected_pattern_message: (doc|bug|feat|security|dev|i18n|api|test|quality|ui|merge) title\n\ndescription sample_message: (bug) no validation on date\n\nThe birthdate was not validated...