- Remove Co-Authored-By line from CONTRIBUTING.md example - Remove workspace access line from onboarding.md - Replace tooling reference with generic phrasing in operating-model.md - Add .mailmap to map ceo@paperclip.ing to ceo@elfoundation.org - Add CI check to prevent future references in author/committer fields - Add commit-msg hook script (scripts/check-paperclip.sh) This commit intentionally omits the standard agent co-author line to avoid reintroducing a reference, per the issue's objective to hide all traces of external tooling.
25 lines
804 B
Bash
Executable File
25 lines
804 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Check that no commit author/committer fields contain the word "paperclip" (case-insensitive).
|
|
# Used in CI to prevent accidental Paperclip references in git metadata.
|
|
|
|
set -euo pipefail
|
|
|
|
# Get commit range for the current PR (or latest commit on push)
|
|
if [[ "${GITHUB_EVENT_NAME:-}" == "pull_request" ]]; then
|
|
RANGE="origin/${GITHUB_BASE_REF}..HEAD"
|
|
else
|
|
RANGE="HEAD~1..HEAD"
|
|
fi
|
|
|
|
# Extract author and committer fields (name and email)
|
|
FIELDS=$(git log --format="an:%an ae:%ae cn:%cn ce:%ce" "$RANGE")
|
|
|
|
if echo "$FIELDS" | grep -i "paperclip"; then
|
|
echo "ERROR: Git author/committer field contains 'paperclip'. Please update git config."
|
|
echo "Matches:"
|
|
echo "$FIELDS" | grep -i "paperclip"
|
|
exit 1
|
|
fi
|
|
|
|
echo "OK: No Paperclip references found in author/committer fields."
|