From 7ecab736f59c85eb2bacadc1ba67f5f705b9c954 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 25 Aug 2026 15:42:33 -0400 Subject: ci: no AI advertisements #41492 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Claude and friends love to sprinkle advertisements in commit messages. Solution: Allow a generic "AI-assisted" token only. Reject useless mentions of AI services, sessions, and other cringe. Disclosure: This PR was authored by an sapient turnip 🫜, raised in moist, fluffy soil, tilled by the blurry wings of a hummingbird. --- scripts/vim-patch.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/vim-patch.sh') diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 58b1c10324..3d91836882 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -188,6 +188,9 @@ assign_commit_details() { # Extract co-authors from the commit message. vim_coauthors="$(echo "${vim_message}" | (grep -E '^Co-[Aa]uthored-[Bb]y: ' || true) | (grep -Fxv "${vim_coauthor0}" || true))" vim_coauthors="$(echo "${vim_coauthor0}"; echo "${vim_coauthors}")" + # Upstream may credit an AI tool; we don't advertise those, see AGENTS.md. + vim_coauthors="$(echo "${vim_coauthors}" \ + | (grep -Eiv '^Co-authored-by: .*(aider|anthropic|chatgpt|claude|codex|copilot|cursor|devin|gemini|openai|opencode|windsurf)' || true))" # Remove Co-authored-by and Signed-off-by lines from the commit message. vim_message="$(echo "${vim_message}" | grep -Ev '^(Co-[Aa]uthored|Signed-[Oo]ff)-[Bb]y: ')" if [[ ${munge_commit_line} == "true" ]]; then -- cgit