Feature agents-write-git, step 1: agents write with their own accounts, main stays closed, a merge into main waits for the operator (issues 948, 954) #338

Merged
mesh-tools merged 10 commits from feat/agents-write-git into main 2026-10-16 19:45:37 +00:00
Showing only changes of commit 789aa0133f - Show all commits
+1 -1
View File
@@ -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");