Unnecessary slash before the last attribute in a repository url.

In the GithubAPI, The commits url, archive url all have the last element with a {/<attribute>}


or {/ref} etc. Whys is this so? Python can’t deal with this and it needs to be replaced manually.

Why is this slash present there?

In the case of the commits example you show, it is a shorthand way of saying you can use that URL to get either the list of all commits in the repository or get a single commit by including its SHA at the end. If you don’t want to get a single commit, replace the brackets and what’s between them with the empty string.

I hope that helps!