Use git API to find base branch name for PRs when looking for common branch names in extra deps