-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output PHP_CodeSniffer autofix diff in CI #45
Conversation
Can you please demonstrate the result on another repository? |
Here mvorisek/sql-formatter#1 is a PR demonstrating the behaviour. The |
I'm skeptical: when there are autofixable errors, then people should manually apply that diff… they should IMO just run |
Altrough I made many Doctrine contributions already, for smaller contributions, I do not have |
How is that possible? Do you clone the repository every time? Or do you nuke your |
There are thousand reasons. Changes might be done using GH web IDE, from enviroments /wo In anycase, I run into these situations myself, thus I propose this CI improvement which I find useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, I'd like to get input by other Doctrine maintainers about the usefulness. My very personal opinion is that we should encourage people not to rely on the CI for checks so as to get as few notifications about PRs with failing builds as possible.
doesn't this double execution time? |
Even /wo cache the execution is fast - ~6 secs for Doctrine DBAL, ~9 secs for Doctrine ORM. |
does it make sense to do --no-colors for |
Wouldn't colors leave a bunch of console-color noise like |
I agree colored output it better for UX - I commited the change, here is an example: https://github.com/mvorisek/sql-formatter/actions/runs/9135074458/job/25121808121?pr=1#step:6:17 |
Make constributions easier by providing easy to read autofix diff.