mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 09:01:57 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user