MCPcopy Index your code
hub / github.com/github/docs / getRemoteRawContent

Function getRemoteRawContent

src/graphql/scripts/update-files.js:92–105  ·  view source on GitHub ↗
(filepath, graphqlVersion)

Source from the content-addressed store, hash-verified

90
91// get latest from github/github
92async function getRemoteRawContent(filepath, graphqlVersion) {
93 const options = {
94 owner: 'github',
95 repo: 'github',
96 }
97
98 // find the relevant branch in github/github and set it as options.ref
99 await setBranchAsRef(options, graphqlVersion)
100
101 // add the filepath to the options so we can get the contents of the file
102 options.path = `config/${path.basename(filepath)}`
103
104 return getContents(...Object.values(options))
105}
106
107// find the relevant filepath in src/graphql/scripts/util/data-filenames.json
108function getDataFilepath(id, graphqlVersion) {

Callers 1

mainFunction · 0.85

Calls 2

getContentsFunction · 0.90
setBranchAsRefFunction · 0.85

Tested by

no test coverage detected