fix: catch uncaught errors in express middleware so they can be passed onwards to the express error handler #3819
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commitlint | |
on: | |
push: | |
branches: | |
- 'push-action/**' | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
concurrency: | |
group: commitlint-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-commits: | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node and pnpm | |
uses: silverhand-io/actions-node-pnpm-run-steps@v5 | |
with: | |
pnpm-version: 9 | |
- name: Commitlint | |
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD | |
- name: Commitlint on PR title | |
run: echo '${{ github.event.pull_request.title }}' | npx commitlint |