From 789aa0133ffe7cdfea3d4bc7c82eaa9a88f9deee Mon Sep 17 00:00:00 2001 From: fix-forge-awg Date: Fri, 16 Oct 2026 21:28:49 +0200 Subject: [PATCH] Keep the guard's push wording for main (issue 948) --- modules/gitea/guard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gitea/guard.ts b/modules/gitea/guard.ts index fb7a31ee..1843e38c 100644 --- a/modules/gitea/guard.ts +++ b/modules/gitea/guard.ts @@ -323,7 +323,7 @@ export function judgeProtectionChange(before: BranchProtection | null, want: Pro * that enables push, drops the merge whitelist or widens it past that account is refused, whatever the rule was. */ function judgeMain(before: BranchProtection | null, want: ProtectionWanted): string | null { const why: string[] = []; - if (want.push === true) why.push("it lets a person push to main directly"); + if (want.push === true) why.push("it lets a person push to the branch directly"); if (want.mergeWhitelist !== undefined) { const names = want.mergeWhitelist ?? []; if (names.length === 0) why.push("it drops the merge whitelist of main");