Skip to content

Commit

Permalink
feat: include commitlint in PR to main GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
recalcitrantsupplant committed Jan 13, 2025
1 parent 5866d31 commit 37891fb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/on_pr_to_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- main
workflow_dispatch:
Expand Down Expand Up @@ -58,3 +60,20 @@ jobs:
#----------------------------------------------
- name: Run tests
run: poetry run pytest tests

lint-pr-title:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Commitlint
run: npm install --global @commitlint/{cli,config-conventional}

- name: Lint PR Title
run: echo "${{ github.event.pull_request.title }}" | commitlint

0 comments on commit 37891fb

Please sign in to comment.