From 45862843efa124be00263619492ba97b0c21e4e5 Mon Sep 17 00:00:00 2001 From: GoshaDozoretz <106976988+gosharo@users.noreply.github.com> Date: Sun, 2 Jul 2023 12:21:28 +0300 Subject: [PATCH] feat: change commit linter - RK-19094 (#81) * feat: change commit linter Signed-off-by: Gosha * feat: change commit linter Signed-off-by: Gosha --------- Signed-off-by: Gosha --- .github/workflows/lint-commit.yaml | 9 +++++---- .github/workflows/lint-pr.yaml | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-commit.yaml b/.github/workflows/lint-commit.yaml index 228c9986..c086dadb 100644 --- a/.github/workflows/lint-commit.yaml +++ b/.github/workflows/lint-commit.yaml @@ -2,11 +2,12 @@ name: Lint Commit on: pull_request jobs: conventional: - name: Conventional PR + name: Conventional Commit Linter runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - uses: beemojs/conventional-pr-action@v2 - env: - GITHUB_TOKEN: ${{ github.token }} + - uses: taskmedia/action-conventional-commits@v1.1.3 + with: + token: ${{ github.token }} + types: fix|feat|revert|ci diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml index ec12b727..146c31c7 100644 --- a/.github/workflows/lint-pr.yaml +++ b/.github/workflows/lint-pr.yaml @@ -29,9 +29,10 @@ jobs: docs chore revert - + ci # Configure which scopes are allowed (newline delimited). scopes: | + core RK-\d+ # Configure that a scope must always be provided. requireScope: false