Skip to content

[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

Open
wants to merge 41 commits into
base: 5.3-dev
Choose a base branch
from

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Jun 25, 2025

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.

@laoneo
Copy link
Member

laoneo commented Jun 25, 2025

Can we somehow test this before it gets merged?

@Hackwar
Copy link
Member Author

Hackwar commented Jun 25, 2025

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.

@rdeutz
Copy link
Contributor

rdeutz commented Jun 25, 2025

for such things we can use another branch and play there

@laoneo
Copy link
Member

laoneo commented Jun 25, 2025

So basically a pr against Hackwar:ghactions-codestyle would be enough for testing. Or?

@Hackwar
Copy link
Member Author

Hackwar commented Jun 25, 2025

You might be right. 😄

@laoneo laoneo self-assigned this Jul 23, 2025
@laoneo laoneo requested review from rdeutz and laoneo as code owners July 25, 2025 09:31
./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.'
Copy link
Contributor

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."

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants