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

Function readPRFile

dangerfile.js:23–25  ·  view source on GitHub ↗

* Returns the contents of a text file in the pull request branch. * * @param {string} path * @returns {Promise }

(path)

Source from the content-addressed store, hash-verified

21 * @returns {Promise<string>}
22 */
23function readPRFile(path) {
24 return git.show([`pr:${path}`]);
25}
26
27/**
28 * Returns the relative paths of all files changed in the PR.

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected