Change report when FAIL_IF_UPDATED_SOURCES is true. #1493
Labels
enhancement
New feature or request
O: stale 🤖
This issue or pull request is stale, it will be closed if there is no activity
Current behavior
When you set FAIL_IF_UPDATED_SOURCES to true, github pull comment is visualized as SUCCESS overall. And only log contains message "Sources has been updated by linter auto-fixes, and FAIL_IF_UPDATED_SOURCES has been set to true".
For new user of project which uses MegaLinter this behavior is not very intuitive. Values in "Fixed" column could be not noticed at all or misinterpreted, because of SUCCESS status and ✅ symbol on the linter line. So user will need to do additional actions to figure out why overall build failed, when GitHub report says that all passed:
Current failure investigation path looks like that:
After suggested changes it should look something like that:
4.1 Message at the end of comment: You can fix them by applying fixes which will trigger new MegaLinter check (okay cool got it). - this is for projects, which are just suggesting changes, but don't act on behalf of the user.
Or
4.2 We applied all fixes for you, just wait a bit and new status will appear (great!).
Suggested behavior
When FAIL_IF_UPDATED_SOURCES set to true. GitHub report should display:
To @nvuillam and MegaLinter contributors - this kind of issues are more like life quality ideas rather than critical issues. But i thought MegaLinter is all about improving linting experience for users and providing useful information as fast as possible to the end users. After all, running linters by hand or with bash scripts can do the job too. I have some more ideas in direction of improving UI of the tool, but I'm not very experienced with python to implement them myself. If I'm setting too high bar for MegaLinter usability or such changes are not in current priority, tell me, and I will not bother you with such kind of issues.
The text was updated successfully, but these errors were encountered: