diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-08-25 15:42:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-25 15:42:33 -0400 |
| commit | 7ecab736f59c85eb2bacadc1ba67f5f705b9c954 (patch) | |
| tree | 1cfcfdc4dfdbfd53dd72d33bedd7c66882b3caf3 /scripts/vim-patch.sh | |
| parent | 604bda445ac48af6871d9259e10038944ea90e06 (diff) | |
| download | rneovim-7ecab736f59c85eb2bacadc1ba67f5f705b9c954.tar.gz rneovim-7ecab736f59c85eb2bacadc1ba67f5f705b9c954.tar.bz2 rneovim-7ecab736f59c85eb2bacadc1ba67f5f705b9c954.zip | |
ci: no AI advertisements #41492
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.
Diffstat (limited to 'scripts/vim-patch.sh')
| -rwxr-xr-x | scripts/vim-patch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |