From 8f701dd557698f76ead11b10696ba0a3764e7efa Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sat, 16 May 2026 00:31:15 +0200 Subject: [PATCH] fix(gitops): force develop as PR base branch for all automated workflows --- src/gitops_manager.py | 5 +++-- src/intelligent_health_checker.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gitops_manager.py b/src/gitops_manager.py index f656026e..ba07bd62 100644 --- a/src/gitops_manager.py +++ b/src/gitops_manager.py @@ -7,7 +7,8 @@ class RepositoryController: def __init__(self, access_token: str, repository_identifier: str): self.github_client = Github(access_token) self.repository = self.github_client.get_repo(repository_identifier) - self.default_branch_name = self.repository.default_branch + # Force 'develop' as the primary target for all PRs and base for feature branches + self.default_branch_name = "develop" def _create_feature_branch(self, branch_name: str) -> None: base_branch = self.repository.get_branch(self.default_branch_name) @@ -23,7 +24,7 @@ class RepositoryController: def apply_historical_chunk(self, updates: dict, next_since: str) -> None: branch_name = "bot/historical-accumulator" - # Check if branch exists, if not, create from master + # Check if branch exists, if not, create from develop try: self.repository.get_branch(branch_name) except: diff --git a/src/intelligent_health_checker.py b/src/intelligent_health_checker.py index c86361ac..fface279 100644 --- a/src/intelligent_health_checker.py +++ b/src/intelligent_health_checker.py @@ -299,7 +299,7 @@ class IntelligentLinkCleaner: self.git_controller.repository.update_file(path=path, message=f"fix(autonomous): engine update in {path}", content=content, sha=file_meta.sha, branch=branch_name) except: pass safe_report = report_content[:65000] - self.git_controller.repository.create_pull(title=f"🧹 Autonomous Engine Health Report: {datetime.now().strftime('%d %b %Y')}", body=safe_report, head=branch_name, base="master") + self.git_controller.repository.create_pull(title=f"🧹 Autonomous Engine Health Report: {datetime.now().strftime('%d %b %Y')}", body=safe_report, head=branch_name, base=self.git_controller.default_branch_name) def _build_report_body(self) -> str: report = "## 🧠 Nubenetes Autonomous Health & Curation Engine\n\n"