Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deep5050 authored Apr 21, 2021
1 parent dac33b2 commit 6ae4abf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
7 changes: 1 addition & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
// }
};


Expand Down
7 changes: 1 addition & 6 deletions src/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
// }
};

0 comments on commit 6ae4abf

Please sign in to comment.