fix(gitops): force develop as PR base branch for all automated workflows

This commit is contained in:
Nubenetes Bot
2026-05-16 00:31:15 +02:00
parent e93d9b6ec4
commit 8f701dd557
2 changed files with 4 additions and 3 deletions

View File

@@ -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:

View File

@@ -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"