Given a URL, return the API URL to fetch commits from the selected branch or tag.
A URL pointing to a repository or a sub-path
Given a URL, return the API URL to fetch commits from the selected branch or tag.