quarkusio / quarkus-updates

OpenRewrite recipes to update Quarkus projects
Apache License 2.0
10 stars 17 forks source link

Interest in automatically applying OpenRewrite best practices on pull requests? #189

Open timtebeek opened 1 month ago

timtebeek commented 1 month ago

Hi all! I was wondering if you'd be interested in having some best practices automatically applied to pull requests here. We added these friendly nudges to our own repositories a while ago, and they've really helped standardize our contributions. In practice what you'd get is one additional workflow run per PR, which comments code suggestions if it finds changes when applying best practices here.

You can see an example of such a comment here:

The full list of best practices are described here.

An example of what this would look like for a Maven project like this one is here.

A more detailed write up of what we've done and why can be found here.

I hope that's of use to you here; I'd be happy to open a PR if you'd indeed be open to adopting this practice.

timtebeek commented 1 month ago

As a first step this change would allow running those best practices once as a one-off: https://github.com/quarkusio/quarkus-updates/compare/main...timtebeek:quarkus-updates:best-practices-via-rewrite.yml

Then from there we can review any new issues coming in on PRs automatically, with a convenient local option to prevent these through the run button shown here. image

ia3andy commented 1 month ago

Thanks @timtebeek!

@gsmet wdyt?