Skip to main content
github.listBranches lists repository branches and their head commits.
automations/list-github-branches.automation.ts
Provide owner and repository. Optional protected filters by protection state. page defaults to 1; perPage defaults to 30 and accepts up to 100. Returns each branch’s name and head commit sha. Requires Contents read permission.