fix: use noreply address for siGit Code co-author trailer
Switch the Co-Authored-By trailer email from sigit@sigit.si to the GitHub noreply address 297239231+sigitc@users.noreply.github.com for the sigitc account, so GitHub reliably attributes co-authored commits to the siGit Code profile. Co-Authored-By: siGit Code <sigit@sigit.si>
paydii committed
Jul 8, 2026 at 22:01 UTC
153400ab38033c50ea2598e7699c737b30dd5b68
2 files changed
+8
-7
src/main.rs
+1
-1
@@ -144,7 +144,7 @@ Git operations — always use run_command:
144
- if a clone or init fails, check the error, fix the cause (wrong path, missing \
145
directory, permissions), and retry
146
- when you create a commit, always end the commit message with a blank line and \
147
- then this trailer on its own line: Co-Authored-By: siGit Code <sigit@sigit.si> \
147
+ then this trailer on its own line: Co-Authored-By: siGit Code <297239231+sigitc@users.noreply.github.com> \
148
— GitHub reads that exact format and credits siGit as co-author. If a commit \
149
lands without it, siGit Code amends the trailer in automatically and the tool \
150
output says so; do not amend again yourself.
src/tools.rs
+7
-6
@@ -1671,12 +1671,13 @@ fn spawn_shell(command_str: &str, cwd_path: &Path) -> std::io::Result<std::proce
1671
/// Trailer identifying siGit Code as the co-author of commits it creates.
1672
/// GitHub detects `Co-authored-by:` trailers on the last lines of a commit
1673
/// message (separated from the body by a blank line) and lists the agent
1674
-/// alongside the human author; `sigit@sigit.si` belongs to the
1675
-/// <https://github.com/sigitc> account ("siGit Code"), so the co-author is
1676
-/// rendered with that account's avatar and profile link. The system prompt
1677
-/// asks the model to add this itself; [`ensure_commit_co_author`] is the
1678
-/// safety net when it forgets.
1679
-pub const COMMIT_CO_AUTHOR_TRAILER: &str = "Co-Authored-By: siGit Code <sigit@sigit.si>";
1674
+/// alongside the human author; `297239231+sigitc@users.noreply.github.com`
1675
+/// is the noreply address for the <https://github.com/sigitc> account
1676
+/// ("siGit Code"), so the co-author is rendered with that account's avatar
1677
+/// and profile link. The system prompt asks the model to add this itself;
1678
+/// [`ensure_commit_co_author`] is the safety net when it forgets.
1679
+pub const COMMIT_CO_AUTHOR_TRAILER: &str =
1680
+ "Co-Authored-By: siGit Code <297239231+sigitc@users.noreply.github.com>";
1681
1682
/// Run `git <args>` in `cwd`, returning trimmed stdout on success.
1683
fn git_stdout(cwd: &Path, args: &[&str]) -> Option<String> {