MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / _update_branch_protection

Method _update_branch_protection

scripts/legacy-migrator.py:304–318  ·  view source on GitHub ↗

Update branch protection rules (optional step).

(self)

Source from the content-addressed store, hash-verified

302 return False
303
304 def _update_branch_protection(self) -> bool:
305 """Update branch protection rules (optional step)."""
306 try:
307 print(" [INFO] Branch protection rules need to be updated manually")
308 print(" [TODO] Update required status checks from:")
309 print(" - Legacy: CI / test-matrix, Release / version-check, etc.")
310 print(" - Modular: 01 - Validation / validation, 02 - Testing / test-summary, etc.")
311
312 # This step requires manual intervention or GitHub API access
313 # For now, we'll mark it as completed with instructions
314 return True
315
316 except Exception as e:
317 self.steps[4].error = str(e)
318 return False
319
320 def _disable_legacy_workflows(self) -> bool:
321 """Disable legacy workflows by renaming them."""

Callers 1

_execute_stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected