Closed Realiserad closed 3 months ago
The problem is that when no files have been modified and modifiedFilesOnly: true
is used, Linkspector outputs the message "Skipped link checking. Modified files are not specified in the configuration." instead of a valid JSON document. This causes reviewdog to fail.
Actually this current behaviour of Linkspector is well documented:
Also, if no modified files are found in the list of files to check, Linkspector will skip link checking and exit with a message indicating that modified files are not specified in the configuration.
I suppose Linkspector could be patched to always output valid JSON or the linkspector-action
can be modified to skip reviewdog
if no files were checked by Linkspector.
Thank you for the details @Realiserad I'll get this fixed.
Describe the bug
Running Linkspector GitHub Action with a custom config results containing
modifiedFilesOnly: true
results in a reviewdog parse error.To Reproduce
Copy-paste the following into
.github/workflows/linkspector.yaml
and create a PR:The error from GitHub Actions is:
Expected behavior
The workflow should pass without errors.