Skip to content

[DRAFT] [LOGIC] Fix co_author_msg to append Co-authored-by trailer#13

Draft
joe-gemini-bot[bot] wants to merge 1 commit into
masterfrom
bot/upgrade-1779489972
Draft

[DRAFT] [LOGIC] Fix co_author_msg to append Co-authored-by trailer#13
joe-gemini-bot[bot] wants to merge 1 commit into
masterfrom
bot/upgrade-1779489972

Conversation

@joe-gemini-bot
Copy link
Copy Markdown
Contributor

Problem / Gap

The co_author_msg function is a no-op that returns the commit message unchanged, despite the README claiming support for co-authored commits via CO_AUTHOR_NAME and CO_AUTHOR_EMAIL environment variables. This means the bot never attributes work to the human user in Git history, breaking a documented feature.

Solution & Insight

Update co_author_msg to read CO_AUTHOR_NAME and CO_AUTHOR_EMAIL from the environment. If both are present, append the standard Git trailer Co-authored-by: Name <email> after two newlines. If either is missing, return the original message to avoid malformed trailers.

Impact

Restores the intended co-authorship functionality, ensuring accurate audit trails and proper attribution in commit history when the bot creates PRs.


Validated by Triple-AI: Scanner (NVIDIA NIM (google/gemma-4-31b-it)) → Executor (NVIDIA NIM (deepseek-ai/deepseek-v4-pro)) → Reviewer (NVIDIA NIM (moonshotai/kimi-k2.6))

This is a DRAFT PR — review and merge when ready.

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.

0 participants