-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Testing: git push auto fixed files #4190
Testing: git push auto fixed files #4190
Conversation
…985/megalinter into 4153-testing-git-push
@nvuillam, I've moved away from messing with MegaLinter output status and just put coloured error messages within the reporter. I should be able to get what I need with MegaLinter & Azure PR comment status by the use of |
So |
Hi @lukelloyd1985 quite interesting to see you contributing for
Some cool guy was trying it out as well, but not sure if that worked with him or not. but worth mentioning https://etienne.deneuve.xyz/2023/07/28/autofix-megalinter-azure-devops/ @nvuillam But nice to see that @lukelloyd1985 is embedding it already inside the code:
|
Thanks for the enthusiasm, yes it's certainly something I am keen to get working to close the loop on an already great tool :)
Nothing special about the config needed, just follow https://megalinter.io/beta/install-azure/ Just waiting for this PR to be merged so I can test the next stage (there's been a few iterations fixing each error that's found to date)
I've only been working with it set to True for my needs but it shouldn't make a difference as using git add with update which will only commit modified tracked files
Again as above it should work with any linter that has changed any file with git add with update being used
I think next stage is to get this PR merged so it can be tested to see what works and/or what errors are found. If/when it's working some support with testing different scenarios would be useful. Also do you have experience with other git platforms e.g. GitHub/Bitbucket etc as those would need testing too?
Yeah whatever can be put in code is going to be better I think, less to configure on pipelines and means all git platforms operate the same. Still need to get |
@nvuillam what are your thoughts on Can this PR be merged into alpha so I can test the next stage of git auto fixes? |
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.
It's for alpha, so I'm taking the liberty to unblock you, it seems fine enough for me anyways (even if it wasn't for alpha). Nicolas can continue thinking about the direction of it when it will be time to merge alpha back
@lukelloyd1985 maybe adress cspell not recognizing some words in the updated sources reporter |
@echoix unless I'm being thick where can I see the failed cspell tests? |
Following on from PRs #4176 & #4180 & #4183
Added git config commands for setting author
Coloured error messages in reporter if git fails for auto fixed files
Proposed Changes
Testing git add, commit & push when there are fixed sources files
Readiness Checklist
Author/Contributor
Reviewing Maintainer
breaking
if this is a large fundamental changeautomation
,bug
,documentation
,enhancement
,infrastructure
, orperformance