diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4f8170..36b6228 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,4 +24,4 @@ jobs: with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} issue_number: 1 - options: '--quiet ./ --hide-rate --git --unix --md --out=report.md --timeout=20 --by-percent=cmb --by-file --exclude-dir=node_modules --exclude-lang=JSON,XML' + options: '--quiet ./ --hide-rate --git --unix --md --out=report.md --timeout=20 --by-percent=cmb --by-file-by-lang --exclude-dir=node_modules, --exclude-lang=JSON,XML,YAML,YML' diff --git a/dist/index.js b/dist/index.js index 9ff62a7..cd4041e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8455,18 +8455,13 @@ Good code has a 15-25% comment ratio. Excellent code has a > 25% comment ratio. Use [this action](https://github.com/deep5050/count-comments-action) on your projects to generate a report like this.`; - var modified_data = `#### comment-to-code-ratio analysis report for the last push :tada: + var modified_data = `#### comment-to-code-ratio analysis report for this PR :tada: ${report_text} ${fixed_footer}`; return modified_data; - // try { - // fs.writeFileSync("report.md", modified_data, "utf-8"); - // } catch (error) { - // core.setFailed(`Error in writing the file: ${error.message}`); - // } }; diff --git a/src/report.js b/src/report.js index de8d01a..a21cfc7 100644 --- a/src/report.js +++ b/src/report.js @@ -27,16 +27,11 @@ Good code has a 15-25% comment ratio. Excellent code has a > 25% comment ratio. Use [this action](https://github.com/deep5050/count-comments-action) on your projects to generate a report like this.`; - var modified_data = `#### comment-to-code-ratio analysis report for the last push :tada: + var modified_data = `#### comment-to-code-ratio analysis report for this PR :tada: ${report_text} ${fixed_footer}`; return modified_data; - // try { - // fs.writeFileSync("report.md", modified_data, "utf-8"); - // } catch (error) { - // core.setFailed(`Error in writing the file: ${error.message}`); - // } };