ci: added workflow for linting commit messages on pull request #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |