-
Notifications
You must be signed in to change notification settings - Fork 39.2k
Update AI co-author association #309951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update AI co-author association #309951
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -631,8 +631,8 @@ suite('git', () => { | |||||||||
|
|
||||||||||
| test('AI co-author (Copilot)', function () { | ||||||||||
| 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>'), | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is this better than copilot@github.com? |
||||||||||
| [{ name: 'Copilot', email: '223556219+Copilot@users.noreply.github.com' }] | ||||||||||
|
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' }] | |
| parseCoAuthors('Fix bug\n\nCo-authored-by: Copilot <copilot@example.com>'), | |
| [{ name: 'Copilot', email: 'copilot@example.com' }] |
There was a problem hiding this comment.
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 againstAI_CO_AUTHOR_TRAILER, changing this value can cause duplicate trailers when a commit message already contains the oldcopilot@github.comtrailer (e.g., after upgrading). Consider detecting the Copilot trailer via a stable pattern (e.g., matchingCo-authored-by: Copilot <...>), or supporting both the old and new emails for presence checks/cleanup.