* Determines if a link points to a file added, copied, or renamed in the PR. * * @param {string} link Link being tested. * @return {boolean} True if the link points to a file introduced by the PR.
(link)
| 83 | * @return {boolean} True if the link points to a file introduced by the PR. |
| 84 | */ |
| 85 | function isLinkToFileIntroducedByPR(link) { |
| 86 | return filesIntroducedByPr.some((file) => { |
| 87 | return file.length > 0 && link.includes(path.parse(file).base); |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Checks a given markdown file for dead links. |
no test coverage detected