diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml new file mode 100644 index 0000000..f3919ae --- /dev/null +++ b/.github/workflows/commits.yml @@ -0,0 +1,25 @@ +# Copyright (c) 2023-2024 MDSANIMA DEV. All rights reserved. +# Licensed under the MIT license. + +# This file is used for linting commit messages with commitlint GitHub Action workflow on PR. +# Documentation: https://github.com/wagoid/commitlint-github-action/#commitlint-github-action + +# Workflow setup +name: Run Commitlint on PR + +on: + pull_request: + +jobs: + commitlint-on-pr: + name: Run Commitlint on PR + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Linting commit messages + uses: wagoid/commitlint-github-action@v5 + with: + configFile: .commitlintrc