* 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)
| 12 | * @returns {Promise<string>} |
| 13 | */ |
| 14 | function 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 | * |