Skip to content

Update AI co-author association#309951

Draft
cwebster-99 wants to merge 1 commit intomainfrom
circular-snake
Draft

Update AI co-author association#309951
cwebster-99 wants to merge 1 commit intomainfrom
circular-snake

Conversation

@cwebster-99
Copy link
Copy Markdown
Member

AI Co-author Email Update:

  • Changed the Copilot co-author trailer email from copilot@github.com to 223556219+Copilot@users.noreply.github.com in both the repository logic and the corresponding test. [1] [2]

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Git extension’s Copilot AI co-author trailer to use the new GitHub noreply email address, and aligns the unit test accordingly.

Changes:

  • Updated the hardcoded Copilot co-author trailer email in repository logic.
  • Updated the corresponding parseCoAuthors test expectation to match the new email.
Show a summary per file
File Description
extensions/git/src/repository.ts Updates the constant used to append the Copilot co-author trailer.
extensions/git/src/test/git.test.ts Updates the co-author parsing test to expect the new Copilot noreply email.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

}

private static readonly AI_CO_AUTHOR_TRAILER = 'Co-authored-by: Copilot <copilot@github.com>';
private static readonly AI_CO_AUTHOR_TRAILER = 'Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>';
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If appendAICoAuthorTrailer (or related logic) checks for an existing AI trailer by exact string match against AI_CO_AUTHOR_TRAILER, changing this value can cause duplicate trailers when a commit message already contains the old copilot@github.com trailer (e.g., after upgrading). Consider detecting the Copilot trailer via a stable pattern (e.g., matching Co-authored-by: Copilot <...>), or supporting both the old and new emails for presence checks/cleanup.

Copilot uses AI. Check for mistakes.
Comment on lines +634 to +635
parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>'),
[{ name: 'Copilot', email: '223556219+Copilot@users.noreply.github.com' }]
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Copilot noreply email is now duplicated as a raw string in test code and in Repository.AI_CO_AUTHOR_TRAILER. To prevent future drift (e.g., if the email changes again), consider centralizing this value in a shared constant/module that both the repository logic and tests can reference, or have the test assert via the same source of truth used to build the trailer.

Suggested change
parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>'),
[{ name: 'Copilot', email: '223556219+Copilot@users.noreply.github.com' }]
parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <copilot@example.com>'),
[{ name: 'Copilot', email: 'copilot@example.com' }]

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 9af6a699 Current: feee5919

Changed (3)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

@cwebster-99 cwebster-99 marked this pull request as ready for review April 14, 2026 20:38
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • extensions/git/src/repository.ts
  • extensions/git/src/test/git.test.ts

@cwebster-99 cwebster-99 marked this pull request as draft April 14, 2026 22:21
assert.deepStrictEqual(
parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <copilot@github.com>'),
[{ name: 'Copilot', email: 'copilot@github.com' }]
parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>'),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this better than copilot@github.com?

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.

3 participants