Skip to content

Wait for the controller to record an attempt, not just start one (#748) #941

Wait for the controller to record an attempt, not just start one (#748)

Wait for the controller to record an attempt, not just start one (#748) #941

Workflow file for this run

name: No em dashes
# Fails a PR that introduces an em dash (U+2014) or en dash (U+2013) into any tracked text file. The repo style forbids
# them: use a colon, or reword the sentence, instead (see CLAUDE.md). A spaced ASCII hyphen stand-in is banned too, caught by
# tools/dash-lint. This check is a fast grep over tracked files, so
# it runs unconditionally rather than behind a changed-paths gate: an em dash can land in any text file, not a fixed set.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
no-emdash:
name: No em dashes
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- name: Check for em/en dashes in tracked files
run: bash tools/lint-no-emdash.sh
- name: Check for spaced-hyphen em dashes in prose, comments, and strings
run: git ls-files -z | go run ./tools/dash-lint