From 4330225902fe7da3f20dec4fbc5f44e5a82b5d26 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 24 Sep 2023 11:40:58 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BA=D0=B0=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-title.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..db4bf61 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,42 @@ +# Основан на https://habr.com/ru/articles/662738/ +name: 'Проверка PR заголовка' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Проверка PR заголовка + runs-on: ubuntu-latest + steps: + # Please look up the latest version from + # https://github.com/amannn/action-semantic-pull-request/releases + - uses: amannn/action-semantic-pull-request@v3.4.6 + env: + GITHUB_TOKEN: ${{ secrets.TERRAFORM_YANDEX_COMPUTE_TOKEN }} + with: + # Configure which types are allowed. + # Default: https://github.com/commitizen/conventional-commit-types + types: | + breaking + chore + ci + docs + feat + fix + refactor + security + style + test + requireScope: false + subjectPattern: ^(?![A-Z]).+$ + subjectPatternError: | + Тема "{subject}" найденная в pull request заголовке "{title}" + не соответствует настроенному шаблону. Пожалуйста, убедитесь, + что тема не начинается с заглавной буквы. + wip: true + validateSingleCommit: false \ No newline at end of file