ops: add CI lint for Co-Authored-By/Claude/Anthropic trailers
Three builder runs tonight carried a Co-Authored-By: Claude trailer despite bold instructions forbidding it. A rule in a prompt is not a control — this gate is. Flags commits in a PR's range carrying co-authored-by + (claude OR anthropic OR noreply@anthropic.com), case-insensitive, covering all observed spellings. Wired into CI (new attribution-trailer job) and pre-push hook. Mirrors existing lint scripts in structure and exit conventions. Pattern tested against all three variants plus a normal commit.
This commit is contained in:
parent
5a9118c945
commit
bf8e309b19
3 changed files with 108 additions and 0 deletions
|
|
@ -34,5 +34,11 @@ if ! sh "$repo_root/scripts/check-doc-refs.sh"; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "pre-push: running attribution-trailer lint..." >&2
|
||||
if ! sh "$repo_root/scripts/check-attribution-trailers.sh"; then
|
||||
echo "pre-push: attribution-trailer lint FAILED — fix before pushing" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "pre-push: lints passed ✓" >&2
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue