Skip to content

feat: strip Co-authored-by: Copilot Autofix powered by AI in commit-msg hook#13

Merged
BenjaminMichaelis merged 1 commit into
mainfrom
copilot/add-co-authored-by-hook
May 19, 2026
Merged

feat: strip Co-authored-by: Copilot Autofix powered by AI in commit-msg hook#13
BenjaminMichaelis merged 1 commit into
mainfrom
copilot/add-co-authored-by-hook

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Summary

Explicitly adds Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> to the list of AI-generated trailers that the commit-msg hook strips.

Changes

  • git-hooks/commit-msg – Added copilot[[:space:]]+autofix to AI_NAMES_PATTERN and updated the header comment to document the new variant.
  • git-hooks/commit-msg.ps1 – Added copilot\s+autofix to $aiNamesPattern and updated the header comment.
  • git-hooks/tests/commit-msg.Tests.ps1 – Added a PowerShell unit test and a bash end-to-end test for the exact Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> format.

All 49 Pester tests pass.

Copilot AI requested a review from BenjaminMichaelis May 17, 2026 06:01
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review May 19, 2026 00:09
@BenjaminMichaelis BenjaminMichaelis merged commit 5fdc796 into main May 19, 2026
12 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/add-co-authored-by-hook branch May 19, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants