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
Originally posted by @yfoel in #975