Skip to content

feat: add timeout function #866

feat: add timeout function

feat: add timeout function #866

Workflow file for this run

name: Check Pull Request
on:
pull_request:
branches: [main, next]
types: [opened, synchronize, reopened, edited]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
env:
PR_TITLE: '${{ github.event.pull_request.title }}'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: pnpm
- run: pnpm install
- run: pnpm install @commitlint/config-conventional@19.x
- name: Lint
run: pnpm lint --base ${{ github.event.pull_request.base.sha }}
- name: Check PR Title
run: echo "$PR_TITLE" | pnpm -s dlx commitlint@19.x