MCPcopy
hub / github.com/PrismJS/prism / readBaseFile

Function readBaseFile

dangerfile.js:14–16  ·  view source on GitHub ↗

* Returns the contents of a text file in the base of the PR. * * The base is usually PrismJS/prism/master. * * @param {string} path * @returns {Promise }

(path)

Source from the content-addressed store, hash-verified

12 * @returns {Promise<string>}
13 */
14function readBaseFile(path) {
15 return fs.readFile(path, 'utf-8');
16}
17/**
18 * Returns the contents of a text file in the pull request branch.
19 *

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected