Skip to content

Prep 7 4 0

Prep 7 4 0 #4

Workflow file for this run

name: Lint Commit Messages
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
commitlint:
if: github.repository == 'bottlerocket-os/bottlerocket-kernel-kit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
- name: Install commitlint
run: npm install @commitlint/cli @commitlint/types
- name: Lint commits in PR
env:
WORKSPACE: ${{ github.workspace }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
npx commitlint \
-g "${WORKSPACE}/.commitlint.config.mjs" \
--from "${BASE_SHA}" \
--to "${HEAD_SHA}" \
--verbose