【发布时间】:2023-03-10 19:25:01
【问题描述】:
过去,在大多数情况下,您只需添加 blob/master/ to a github url get the raw file, i.e. https://github.com/jacoco/jbang-catalog/blob/master/jbang-catalog.json`
现在使用 master 的旧存储库,但使用 main 的新存储库,该技巧不适用于新存储库。
有没有办法避免调用 rest api 来查找默认分支 main ?
像blob/@default/ 或类似的魔法标记?
【问题讨论】:
标签: github github-api