IBM / nicedoc.io

pretty README as service.
https://nicedoc.io
Apache License 2.0
472 stars 30 forks source link

Detect the default master branch #50

Closed Kikobeats closed 5 years ago

Kikobeats commented 5 years ago

We are considering the default branch is master

https://github.com/IBM/nicedoc.io/blob/434428d3ce651d916d3e58bbd5dd0b506e9e668b/core/github/normalize-params.js#L7

That's a thing not true. Also, GitHub provide an endpoint for getting the default branch: https://stackoverflow.com/a/16501903