-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.3] Github Actions: Automatic codestyle fixes for PRs #45652
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
base: 5.3-dev
Are you sure you want to change the base?
Conversation
* Add phpstan to github action * Update ci.yml * Update ci.yml
Can we somehow test this before it gets merged? |
It has to be first in a branch of the target repo and then we would have to create a PR which has some broken codestyle. So, to be honest, I would rather merge this first and in worst case revert it later. |
for such things we can use another branch and play there |
So basically a pr against Hackwar:ghactions-codestyle would be enough for testing. Or? |
You might be right. 😄 |
./libraries/vendor/bin/${{ matrix.command }} | ||
- uses: parkerbxyz/suggest-changes@v2 | ||
with: | ||
comment: 'Your code does not comply with our codestyle. Please commit the suggested changes.' |
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.
not a fan of the word "comply" how about
"Your code does not follow our codestyle. Please commit the suggested changes."
or
"Your code does not meet our codestyle requirements. Please commit the suggested changes."
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.
I'm currently unable to do this myself. If you suggest this as a change, I can accept it here in the interface and we can move forward with this.
Summary of Changes
This PR implements automatic codestyle fixes to pull requests. When a PR does not have the right codestyle, this will create suggestions to fix it.