Skip to content

Mine #3065

@supanjeee-ship-it

Description

@supanjeee-ship-it

As a workaround we are currently using hooks to temporarily set the local git user.name to [copilot-cli] while keeping the author email unchanged. This makes Copilot generated commits immediately visible in the commit history and git blame, while still preserving developer accountability.

{
  "version": 1,
  "hooks": {
    "sessionStart": [
      {
        "type": "command",
        "bash": "git config --local user.name \"[copilot-cli]\""
      }
    ],
    "sessionEnd": [
      {
        "type": "command",
        "bash": "git config --local user.name \"$(git config --global user.name)\""
      }
    ]
  }
} 

Originally posted by @yfoel in #975

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions