Skip to content

feat(agent-org): ship bounded public Team timeline #1757

feat(agent-org): ship bounded public Team timeline

feat(agent-org): ship bounded public Team timeline #1757

# Merge guard: reject any PR whose commit history carries AI attribution
# trailers. Exists because develop's history was rewritten on 2026-07-30 to
# strip them — merging a branch based on the pre-rewrite develop would
# resurrect the old commits (and the attribution) wholesale. Rebase the
# branch onto current develop to pass.
#
# Direct pushes to develop bypass the PR flow, so the check also runs on
# push, scanning the full history (which is expected to stay clean).
name: Check AI attribution
on:
pull_request:
push:
branches: [develop]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Scan commits for attribution trailers
run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "pull_request" ]; then
HITS=$(git log "origin/${{ github.base_ref }}..HEAD" --grep='noreply@anthropic.com' --format='%h %s' || true)
MSG="PR history contains AI attribution trailers (likely branched from pre-rewrite develop). Rebase onto current develop:"
else
HITS=$(git log --grep='noreply@anthropic.com' --format='%h %s' || true)
MSG="Branch history contains AI attribution trailers:"
fi
if [ -n "${HITS}" ]; then
echo "::error::${MSG}"
echo "${HITS}"
exit 1
fi
echo "Clean."