Skip to content

Commit

Permalink
ci: added workflow for linting commit messages on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed Jan 5, 2024
1 parent a83ba02 commit 9548e04
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/commits.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9548e04

Please sign in to comment.