We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ea21ee + df22e4e commit a670025Copy full SHA for a670025
src/modules/github.xql
@@ -221,7 +221,7 @@ declare variable $github:raw-usercontent-endpoint := "https://raw.githubusercont
221
: https://raw.githubusercontent.com/<owner>/<repo>/<sha>/<path>
222
:)
223
declare %private function github:get-blob($config as map(*), $filename as xs:string, $sha as xs:string) {
224
- if (not(starts-with($config?base-url, "https://api.github.com"))) then (
+ if (not(starts-with($config?baseurl, "https://api.github.com"))) then (
225
(: for GitHub enterprise we have to query for the download url, this might return the contents directly :)
226
let $blob-url := github:repo-url($config) || "/contents/" || escape-html-uri($filename) || "?ref=" || $sha
227
let $json := github:request-json($blob-url, $config?token)
0 commit comments