diffplug / diffplug/spotless

GitHub Action that translates spotless apply diff into GitHub pull request code suggestion comments

Offen
#1,704 2 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
5.6k
Forks
559
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
43

Beschreibung

### Discussed in https://github.com/diffplug/spotless/discussions/1700

Spotless GitHub Action developed & applied which takes the diff as created through spotless:apply and uses for instance [googleapis/code-suggester](https://github.com/googleapis/code-suggester#Action) to create [code suggestion comments](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/commenting-on-a-pull-request) on the pull request.

This is similar to

- #655

but that issue is blocked on a few internal enhancements to Spotless. This issue uses `spotlessApply` to change the files in the working copy, and then generate PR change suggestions from those changes in the working copy. That simplifies the implementation quite a bit, and should be workable with even very old versions of Spotless.

Happy to take a PR for this.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Lies zunächst die Diskussion #1700 und Issue #655, um den vorgeschlagenen Workflow und die bisherigen Einschränkungen zu verstehen. Die Implementierung sollte spotlessApply ausführen, den resultierenden Diff der Arbeitskopie untersuchen und eine GitHub code-suggester action verwenden, um Suggestion-Kommentare für Pull Requests zu erstellen; als erledigt gilt die Aufgabe, wenn dies mit alten Spotless-Versionen funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions
Bereich
ci-cd
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.