Repository navigation
fix(tooling): stop a duplicate co-author trailer in commits - #151
Merged
Merged
Conversation
scripts/internal/commit.sh appends `Co-Authored-By: Claude` itself. A trailer written into the message therefore shipped twice. The script now appends only when the message carries no trailer. AGENTS.md states the rule, and scripts/README.md describes the new behavior. Co-Authored-By: Claude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executive Summary
scripts/internal/commit.shappends a name-onlyCo-Authored-By: Claudetrailer on every commit. A message that already carried a trailer shipped with two of them, which happened on PR #150. The script now appends its trailer only when the message has none.Code Changes
scripts/internal/commit.shskips its trailer append when the message already has aCo-Authored-By:line.AGENTS.mdGit Conventions forbids a hand-written trailer and namescommit.shas the owner of that line.scripts/README.mddescribes the conditional behavior.Tests and Tooling
.csfile changed.scripts/lint-shell.sh scripts/internal/commit.shpasses.scripts/internal/precommit.shreports clean.scripts/internal/analyzer-release-check.sh,scripts/readme-table-diff.sh, andscripts/internal/readme-audit.shreport clean or no drift.Review Guide
Read the trailer branch at the end of
commit.sh. The rest is instruction and table text.Rollback
Revert this commit. The risk is a repeated duplicate trailer, no runtime impact.
Links
🤖 Generated with Claude Code