Repository navigation
fix: copy the whole code block from a folded commit #2293
Workflow file for this run
This file contains hidden or 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: Lint pull request title | |
| on: | |
| pull_request: | |
| branches: | |
| - production | |
| types: [opened, edited, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-pr-title: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - name: Install title lint dependencies | |
| run: | | |
| mkdir -p "$RUNNER_TEMP/pr-title-lint" | |
| cp .commitlintrc.json "$RUNNER_TEMP/pr-title-lint/" | |
| cd "$RUNNER_TEMP/pr-title-lint" | |
| bun add --ignore-scripts --exact @commitlint/config-conventional@21.2.3 @commitlint/cli@21.2.3 | |
| - name: Lint title | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| printf '%s\n' "$PR_TITLE" | bun run --bun --cwd "$RUNNER_TEMP/pr-title-lint" commitlint |