mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-22 09:03:23 +00:00
fix(gitops): force develop as PR base branch for all automated workflows
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user