Skip to content

[testplan-item] Git - Add setting to include 'Co-authored-by:' commit trailer when AI codegen was used #297204

@dmitrivMS

Description

@dmitrivMS

Refs #266584

Complexity: 3

Create Issue


Context

A new setting allows users to automatically include a 'Co-authored-by:' Git commit trailer when committing code that was generated by AI tools. Users can enable or disable this feature, specify which AI models are attributed, and set thresholds for when the trailer is added.

Test Steps

  1. Open VS Code settings and search for the new Git AI co-author setting git.addAICoAuthor
  2. Verify the setting is off by default and change it to chatAndAgent
  3. Open a repo
  4. Make changes without using chat or agent, commit, hover over blame status bar -> you should see no co-author
  5. Make changes using chat and/or agent, commit, hover over blame status bar -> you should see Copilot as co-author
  6. Make changes using NES or editor completions, commit, hover over blame status bar -> you should see no co-author
  7. Repeat steps 4-6 with setting set to all - this time you should see co-author for NES/editor completions as well.
  8. Set the setting back to 'off', verify you don't see co-author any more on any changes, including those done by AI.

Things to try:

  • Different types of changes/edits
  • Different git operations
  • Try opening a repo with co-author trailers included in commits, verify they are displayed in blame tooltips

Notes
There is no model attribution at the moment, so it's either Copilot or nothing.
If you feel we need to be more specific, please log an issue with your particular expectations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions