github.createBranch creates a refs/heads/ reference at an existing commit SHA.
automations/create-github-branch.automation.ts
owner, repository, a branch name without refs/heads/, and an existing commit sha. Returns the created reference’s ref plus its target sha and type. GitHub rejects duplicate branch names and empty repositories. Requires Contents write permission.