Skip to content

Commit

Permalink
feat: commitlint pr title action
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcd committed Feb 1, 2024
1 parent 71ab795 commit 868266e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/commitlint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Commitlint PR

concurrency:
group: commitlint-pr-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Commitlint CLI
uses: yarn add @commitlint/config-conventional --frozen-lockfile
- name: Run Commitlint on PR Title
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn commitlint -E HUSKY_GIT_PARAMS
yarn commitlint --edit "$1"

0 comments on commit 868266e

Please sign in to comment.