(filepath, graphqlVersion)
| 90 | |
| 91 | // get latest from github/github |
| 92 | async 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 |
| 108 | function getDataFilepath(id, graphqlVersion) { |
no test coverage detected