diff --git a/extensions/git/src/repository.ts b/extensions/git/src/repository.ts index 02754641d1eac..85b4bda8c0bf1 100644 --- a/extensions/git/src/repository.ts +++ b/extensions/git/src/repository.ts @@ -1486,7 +1486,7 @@ export class Repository implements Disposable { commands.executeCommand('_aiEdits.clearAiContributions', resources); } - private static readonly AI_CO_AUTHOR_TRAILER = 'Co-authored-by: Copilot '; + private static readonly AI_CO_AUTHOR_TRAILER = 'Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>'; private async appendAICoAuthorTrailer( message: string | undefined, diff --git a/extensions/git/src/test/git.test.ts b/extensions/git/src/test/git.test.ts index b9c08fb907fa0..3edf9f24cec10 100644 --- a/extensions/git/src/test/git.test.ts +++ b/extensions/git/src/test/git.test.ts @@ -631,8 +631,8 @@ suite('git', () => { test('AI co-author (Copilot)', function () { assert.deepStrictEqual( - parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot '), - [{ name: 'Copilot', email: 'copilot@github.com' }] + parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>'), + [{ name: 'Copilot', email: '223556219+Copilot@users.noreply.github.com' }] ); });