You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your code currently does not meet [JabRef's code guidelines](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.html).
61
+
We use [Checkstyle](https://checkstyle.sourceforge.io/) to identify issues.
62
+
The tool reviewdog already placed comments on GitHub to indicate the places. See the tab "Files" in you PR.
63
+
Please carefully follow [the setup guide for the codestyle](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.html).
64
+
Afterwards, please [run checkstyle locally](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.html#run-checkstyle) and fix the issues.
65
+
66
+
67
+
You can check review dog's comments at the tab "Files changed" of your pull request.
68
+
comment_tag: automated-test-feedback
69
+
54
70
openrewrite:
55
71
name: OpenRewrite
56
72
runs-on: ubuntu-latest
@@ -72,6 +88,20 @@ jobs:
72
88
- name: Run OpenRewrite
73
89
run: |
74
90
./gradlew rewriteDryRun
91
+
- name: Add comment on pull request
92
+
if: ${{ failure() }}
93
+
uses: thollander/actions-comment-pull-request@v2
94
+
with:
95
+
message: >
96
+
Your code currently does not meet JabRef's code guidelines.
97
+
We use [OpenRewrite](https://docs.openrewrite.org/) to ensure "modern" Java coding practices.
98
+
The issues found can be **automatically fixed**.
99
+
Please execute the gradle task *`rewriteRun`*, check the results, commit, and push.
100
+
101
+
102
+
You can check the detailed error output by navigating to your pull request, selecting the tab "Checks", section "Tests" (on the left), subsection "OpenRewrite".
103
+
comment_tag: automated-test-feedback
104
+
75
105
modernizer:
76
106
name: Modernizer
77
107
runs-on: ubuntu-latest
@@ -95,6 +125,19 @@ jobs:
95
125
# enable failing of this task if modernizer complains
96
126
sed -i "s/failOnViolations = false/failOnViolations = true/" build.gradle
97
127
./gradlew modernizer
128
+
- name: Add comment on pull request
129
+
if: ${{ failure() }}
130
+
uses: thollander/actions-comment-pull-request@v2
131
+
with:
132
+
message: >
133
+
Your code currently does not meet JabRef's code guidelines.
134
+
We use [Gradle Modernizer Plugin](https://github.com/andygoossens/gradle-modernizer-plugin#gradle-modernizer-plugin) to ensure "modern" Java coding practices.
135
+
Please fix the detected errors, commit, and push.
136
+
137
+
138
+
You can check the detailed error output by navigating to your pull request, selecting the tab "Checks", section "Tests" (on the left), subsection "Modernizer".
139
+
comment_tag: automated-test-feedback
140
+
98
141
markdown:
99
142
name: Markdown
100
143
runs-on: ubuntu-latest
@@ -110,6 +153,19 @@ jobs:
110
153
globs: |
111
154
*.md
112
155
docs/**/*.md
156
+
- name: Add comment on pull request
157
+
if: ${{ failure() }}
158
+
uses: thollander/actions-comment-pull-request@v2
159
+
with:
160
+
message: >
161
+
You modified Markdown (`*.md`) files and did not meet JabRef's rules for consistently formatted Markdown files.
162
+
To ensure consistent styling, we have [markdown-lint](https://github.com/DavidAnson/markdownlint) in place.
163
+
[Markdown lint's rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#rules) help to keep our Markdown files consistent within this repository and consistent with the Markdown files outside here.
164
+
165
+
166
+
You can check the detailed error output by navigating to your pull request, selecting the tab "Checks", section "Tests" (on the left), subsection "Markdown".
0 commit comments