From f1c9d8474482b75e6ce7f36c296e6f8bc9c0b799 Mon Sep 17 00:00:00 2001 From: zzjc1234 <2359047351@qq.com> Date: Tue, 18 Jun 2024 17:04:29 +0800 Subject: [PATCH] feat: markdown style out --- expected.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/expected.json b/expected.json index 85bfcc5..12a8fad 100644 --- a/expected.json +++ b/expected.json @@ -4,8 +4,16 @@ "results": [ { "score": 0, - "comment": "[{\"name of check\":\"RepoSize\",\"stdout\":\"Checking repository size: OK\",\"exit code\":0,\"stderr\":\"\",\"errorLog\":null},{\"name of check\":\"forbiddenFile\",\"stdout\":\"Checking forbidden files: Failed\",\"exit code\":103,\"stderr\":\"103the following forbidden files were found: expected.json, \\n\\nTo fix it, first make a backup of your repository and then run the following commands:\\nfor i in expected.json ; do git filter-repo --force --invert-paths --path \\\\\\\"\\\\$i\\\\\\\"; done\\ngit remote add origin \\ngit push --set-upstream origin --force\",\"errorLog\":null},{\"name of check\":\"metaFile\",\"stdout\":\"Checking the existence of meta file: OK\",\"exit code\":0,\"stderr\":\"\",\"errorLog\":null},{\"name of check\":\"NonAsciiFiles\",\"stdout\":\"Checking for non-ascii files: OK\",\"exit code\":0,\"stderr\":\"\",\"errorLog\":null},{\"name of check\":\"NonAsciiMsg\",\"stdout\":\"Checking for non-ASCII characters in commit message: OK\",\"exit code\":0,\"stderr\":\"\",\"errorLog\":null},{\"name of check\":\"ReleaseCheck\",\"stdout\":\"Failed\",\"exit code\":107,\"stderr\":\"wrong release tag 'a0', please use one of h1 h2 test aborting\",\"errorLog\":null},{\"name of check\":\"verifyFile\",\"stdout\":\"Checking files to be verified: FailedFailed!\",\"exit code\":101,\"stderr\":\"File is not identical\",\"errorLog\":null}]" - } + "comment": "## Forbidden File Check Failed: + The following forbidden files were found: expected.json + + To fix it, first make a backup of your repository and then run the following commands: + for i in expected.json; do git filter-repo --force --invert-paths --path \"$i\"; done + git remote add origin + git push --set-upstream origin --force + ## Release Tag Check Failed: + Wrong release tag 'a0'. Please use one of 'h1', 'h2', 'test'." +} ] - } + } ]