Closed TaighHawkins closed 1 year ago
Getting the same error
Figured that out a bit later 😅 There are no instructions on README to copy the issue template to your project. Ideally, it would automatically default to https://github.com/sidx1024/report-nyc-coverage-github-action/blob/main/comment-template.md (or the .svelte one) if template does not exist in your project
Yeah, while I can understand that providing your own template is useful, there's no need to provide a template if you just want the default template (given that it exists within the action at hand). I'm happy to have this issue closed if either:
But as it stands, there's no indication that you should use your own template, and it is entirely possible to use the one in the action.
if you don't use your own template the action will fail, and even if you provide one you endup with an error that says missing fields
Error: Error: Invalid or missing tokens: base_ref,base_short_commit_sha,base_commit_link,base_total_statements_coverage_percent,total_statements_coverage_percent_diff,base_total_branches_coverage_percent,total_branches_coverage_percent_diff,base_total_functions_coverage_percent,total_functions_coverage_percent_diff,base_total_lines_coverage_percent,total_lines_coverage_percent_diff
It was a bug. Please use one of the newer releases which has this issue fixed.
The comment file isn't being found - this is because the source path for the search defaults to the application directory you're building, not the action runner directory:
Error: Error: ENOENT: no such file or directory, open '/home/runner/work/JsFunctionAppTest/JsFunctionAppTest/comment-template.md'
Providing the full comment template path to the action results in it working:
The rest of the error: