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
{{ message }}
Repository navigation
Commit 85739d3
Browse filesBrowse the repository at this point in the historyBrowse files
docs: use the action's feature names on the home page (#70)
The home page section "Results show up on the pull request" named the
reports its own way ("Suggestions you can commit", "Notes in the diff",
"One summary comment", "Fixes pushed for you"). Readers who then open
cpp-linter-action find different names there, so the cards now use the
action README's headings, each with the input that turns it on, in the
same order as the organization profile banner (cpp-linter/.github#112):
- Annotations `file-annotations`
- Thread Comment `thread-comments`
- Step Summary `step-summary`, new: the same report in the job summary,
which also works on forks and in private repositories, where thread
comments are turned off
- Pull Request Review `tidy-review`, new card: clang-tidy diagnostics
with suggested changes
- Pull Request Review `format-review`
- Auto-fix `auto-fix`
Six cards fill the two-column grid in three rows. The section intro and
the cpp-linter-action tool card ("thread comments or pull request
reviews") use the same words. A new rule sets the input chip beside each
title to 13px; it inherited 8.5px from the header.
Checked with `mkdocs serve` at 1280px and 375px wide: three even rows on
desktop, one column on phones, no horizontal scroll. The step summary
and review wording follows `action.yml` (`step-summary` reuses the
thread comment's content; thread comments are disabled on private
repositories).
Copy file name to clipboardExpand all lines: docs/overrides/home.html
+57-17Lines changed: 57 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ <h1 class="cl-hero__title">
147
147
{% set tools = [
148
148
{
149
149
"title": "On every pull request", "name": "cpp-linter-action", "icon": "octicons/git-pull-request-24",
150
-
"text": "Annotates findings on the pull request. Pass GITHUB_TOKEN with pull-requests: write to add a summary comment or review suggestions. Linux, macOS and Windows runners.",
150
+
"text": "Annotates findings on the pull request. Pass GITHUB_TOKEN with pull-requests: write to add thread comments or pull request reviews. Linux, macOS and Windows runners.",
151
151
"code": "uses: cpp-linter/cpp-linter-action@v2",
152
152
"href": "https://cpp-linter.github.io/cpp-linter-action/", "cta": "Read the docs",
153
153
},
@@ -238,20 +238,9 @@ <h3>{{ title }}</h3>
238
238
<divclass="cl-head">
239
239
<pclass="cl-eyebrow">What reviewers see</p>
240
240
<h2class="cl-h2">Results show up on the pull request</h2>
241
-
<pclass="cl-sub">Annotations are on by default. Review suggestions, a summary comment and auto-fix each take one input plus write access for the job.</p>
241
+
<pclass="cl-sub">Annotations are on by default and each of the others takes one input. Thread comments, pull request reviews and auto-fix also need write access for the job; the step summary shows on the workflow run.</p>
<p>Set format-review or tidy-review and fixes for lines in the diff arrive as review suggestions. Needs pull-requests: write, so pull requests from forks get annotations only.</p>
254
-
</article>
255
244
<articleclass="cl-outcome">
256
245
<divclass="cl-outcome__art" aria-hidden="true">
257
246
<divclass="cl-mini cl-diff cl-diff--roomy">
@@ -261,8 +250,11 @@ <h3 class="cl-h3">Suggestions you can commit</h3>
261
250
</div>
262
251
<pclass="cl-annotation"><spanclass="cl-ico cl-ico--warn">{% include ".icons/octicons/alert-16.svg" %}</span><span><strong>Line 18</strong> · readability-braces-around-statements</span></p>
263
252
</div>
264
-
<h3class="cl-h3">Notes in the diff</h3>
265
-
<p>clang-tidy findings in the checked file are annotated on their line (GitHub shows up to 10 warnings per step), and clang-format adds one note per file. Annotations need no write access, so they also work on pull requests from forks.</p>
<p>On by default. clang-tidy findings in the checked file are annotated on their line (GitHub shows up to 10 warnings per step), and clang-format adds one note per file. Annotations need no write access, so they also work on pull requests from forks.</p>
266
258
</article>
267
259
<articleclass="cl-outcome">
268
260
<divclass="cl-outcome__art" aria-hidden="true">
@@ -272,9 +264,56 @@ <h3 class="cl-h3">Notes in the diff</h3>
<p>Set thread-comments: update and one comment lists the results, edited on each push while there are findings. It is posted by github-actions[bot] or your own App, and needs pull-requests: write, so it fails on pull requests from forks.</p>
<pclass="cl-summary__report"><strong>Cpp-Linter Report</strong> Some files did not pass the configured checks!</p>
278
+
<pclass="cl-summary__tags"><spanclass="cl-tag cl-tag--warn">clang-format (v21.1.0) reports: 1 file(s) not formatted</span></p>
279
+
</div>
280
+
</div>
281
+
<divclass="cl-outcome__title">
282
+
<h3class="cl-h3">Step Summary</h3>
283
+
<codeclass="cl-inline-code">step-summary</code>
284
+
</div>
285
+
<p>Set step-summary: true and the same report is added to the job summary of the workflow run. It needs no write access, so it also works on pull requests from forks and in private repositories, where thread comments are turned off.</p>
286
+
</article>
287
+
<articleclass="cl-outcome">
288
+
<divclass="cl-outcome__art" aria-hidden="true">
289
+
<pclass="cl-annotation"><span><strong>clang-tidy diagnostics</strong> · use nullptr [modernize-use-nullptr]</span></p>
<p>Set tidy-review: true and clang-tidy's fixes for lines in the diff are posted in a pull request review, as suggested changes under each diagnostic. Needs pull-requests: write, so pull requests from forks get annotations only.</p>
<p>Set format-review: true and clang-format's fixes for lines in the diff are posted in a pull request review, as suggested changes you commit in one click. Same permission as tidy-review.</p>
<pclass="cl-annotation"><codeclass="cl-inline-code">auto-fix: true</code> plus <codeclass="cl-inline-code">contents: write</code></p>
288
327
</div>
289
328
<divclass="cl-outcome__title">
290
-
<h3class="cl-h3">Fixes pushed for you</h3>
329
+
<h3class="cl-h3">Auto-fix</h3>
330
+
<codeclass="cl-inline-code">auto-fix</code>
291
331
<spanclass="cl-badge-new">New in v2.23</span>
292
332
</div>
293
333
<p>Set auto-fix: true and give the job contents: write, and the clang-format fixes are committed to the branch of a same-repository pull request, by default under the name of whoever triggered the run.</p>
0 commit comments