fix: harden conflict resolution pipeline
This commit is contained in:
1 parent
decf7ab8b4
commit
351d3148aa
9 files changed
+273
-55
No files matched your search
@@ -0,0 +1,8 @@
|
||||
export function formatBotDisplayName(value: string | undefined): string {
|
||||
const trimmed = value?.trim().replace(/^@/, "");
|
||||
if (!trimmed || trimmed.toLowerCase() === "ghbot") {
|
||||
return "goose";
|
||||
}
|
||||
const botLogin = /^(.*?)\[bot\]$/i.exec(trimmed);
|
||||
return botLogin?.[1]?.trim() ? `${botLogin[1].trim()} bot` : trimmed;
|
||||
}
|
||||
Reference in new issue
Block a user