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