def METHOD_NAME(installation, owner, name):
	token = get_access_token(installation)
	headers = {
		"Authorization": f"token {token}",
	}
	repo = requests.get(
		f"https://api.github.com/repos/{owner}/{name}", headers=headers
	).json()
	current_page, is_last_page = 1, False
	branches = []
	while not is_last_page:
		response = requests.get(
			f"https://api.github.com/repos/{owner}/{name}/branches",
			params={"per_page": 100, "page": current_page},
			headers=headers,
		)
		if response.ok:
			branches.extend(response.json())
		else:
			break
		if len(response.json()) < 100:
			is_last_page = True
		current_page += 1
	repo["branches"] = branches
	return repo