Skip to content

feat: suggest the developers behind your stack when signing up #2305

feat: suggest the developers behind your stack when signing up

feat: suggest the developers behind your stack when signing up #2305

Workflow file for this run

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