Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep the default-branch head note module-local (#12855)

[._.]/ Adam Eivy2fd84f442503
diff --git a/server/services/promptSections/reviewLifecycle.js b/server/services/promptSections/reviewLifecycle.js
index 2ea06e85d0..c2468c4d08 100644
--- a/server/services/promptSections/reviewLifecycle.js
+++ b/server/services/promptSections/reviewLifecycle.js
@@ -1284,7 +1284,7 @@ function buildMergeFollowUpSection({ prUrl, prBranch, prNumber = '', prOwner = '
*/
export const DEFAULT_BRANCH_HEAD_GUIDANCE = 'This checkout is DETACHED at the PR head commit because the PR\'s head branch is the repository\'s default branch. Do NOT commit to it and NEVER push to the head branch. Read, test and gate the exact reviewed commit; if a fix is required, cut a new branch from it, push that branch and open its own PR against the default branch.';
-export function buildDefaultBranchHeadInstructions(branch, headIsDefaultBranch) {
+function buildDefaultBranchHeadInstructions(branch, headIsDefaultBranch) {
if (!headIsDefaultBranch || !branch) return '';
return `Head branch \`${branch}\` is the default branch: ${DEFAULT_BRANCH_HEAD_GUIDANCE} A release PR is otherwise gated on CI and merged as-is, so the merge steps below still apply to the PR itself.\n\n`;
}