-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (56 loc) · 2.08 KB
/
Copy pathcheck-ai-tells.yml
File metadata and controls
61 lines (56 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Thin caller of Morrison-Lab/gha's reusable AI-tell scanner.
#
# Most prose PRs here are AI-authored, so a density check on what a PR adds is
# a useful second pair of eyes on top of review.
#
# Warn-only on purpose. The tell list includes `robust`, which is a
# domain-legitimate term in this book ("cluster-robust standard errors"), and
# density is measured per 1,000 words -- so one such word in a short prose
# diff clears a threshold of 10 on arithmetic alone. There is no per-tell
# ignore input yet (Morrison-Lab/gha#619); flip `fail` to true once there is,
# or once the observed noise profile says it is safe.
#
# Measured on `main` 2026-08-24: 92 tells across 215,112 prose words
# (density 0.4), and 0 tells on each of two recent prose-PR diffs.
name: Check AI Tells
on:
pull_request:
workflow_dispatch:
permissions:
pull-requests: read
contents: read
jobs:
filter:
runs-on: ubuntu-latest
outputs:
run_check: ${{ steps.filter.outputs.run_check }}
steps:
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
run_check:
- '**.md'
- '**.qmd'
- '**.Rmd'
check-ai-tells:
name: check-ai-tells
needs: filter
if: ${{ !cancelled() && needs.filter.outputs.run_check != 'false' }}
# The repo default is write, so declare the read-only scope this
# reusable workflow's own job asks for rather than inheriting it.
permissions:
contents: read
uses: Morrison-Lab/gha/.github/workflows/check-ai-tells.yml@v2
with:
# Scan only the lines this PR adds, rather than the whole corpus. The
# upstream default is a whole-repo scan; the reusable workflow does not
# wire this itself, unlike its check-new-line-breaks sibling.
base-ref: ${{ github.event.pull_request.base.sha }}
paths-ignore: '_extensions/*,latex-macros/*'
fail: false
bypass:
name: check-ai-tells
needs: filter
if: needs.filter.outputs.run_check == 'false'
uses: ./.github/workflows/_check-ai-tells-bypass-reusable.yml # zizmor: ignore[self-repository]