Skip to content

docs: add cross-reference to cpp-linter-action#239

Merged
shenxianpeng merged 1 commit into
mainfrom
chore/add-cross-reference-to-action
Jun 8, 2026
Merged

docs: add cross-reference to cpp-linter-action#239
shenxianpeng merged 1 commit into
mainfrom
chore/add-cross-reference-to-action

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Jun 8, 2026

Copy link
Copy Markdown
Member

Add a TIP callout in the README recommending cpp-linter-action for users who want GitHub Actions CI integration, with bidirectional cross-linking between the two projects.

Summary by CodeRabbit

  • Documentation
    • Updated README with information about the cpp-linter-action companion project, including a new Table of Contents entry to help users discover the related GitHub Actions integration.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.07%. Comparing base (6e33844) to head (1328561).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #239   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files           4        4           
  Lines         239      239           
=======================================
  Hits          232      232           
  Misses          7        7           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

This PR updates README.md to promote the cpp-linter-action companion GitHub Actions project by adding a tip callout and updating the table of contents navigation.

Changes

GitHub Actions Companion Documentation

Layer / File(s) Summary
GitHub Actions companion tip and navigation
README.md
A new GitHub Actions tip callout is inserted near the top of the README, and the Table of Contents is expanded to include a link for the GitHub Actions companion project alongside the existing "Why cpp-linter-hooks?" entry.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes


Possibly related PRs


Suggested labels

documentation

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding a cross-reference to cpp-linter-action in the README documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/add-cross-reference-to-action

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 41: The TOC entry "GitHub Actions? Try cpp-linter-action" points to a
missing anchor; update README.md by converting the existing [!TIP] block into a
proper section with a matching heading (e.g., add a level-2 heading "## GitHub
Actions? Try cpp-linter-action" immediately above the TIP content) or change the
TOC entry to match the actual heading used; ensure the heading text exactly
matches the TOC anchor so the link `#github-actions-try-cpp-linter-action`
resolves.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bd6bed9b-4163-4b75-93e3-4f971a52c4fa

📥 Commits

Reviewing files that changed from the base of the PR and between 6e33844 and 1328561.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
## Table of Contents

- [Why cpp-linter-hooks?](#why-cpp-linter-hooks)
- [GitHub Actions? Try cpp-linter-action](#github-actions-try-cpp-linter-action)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for heading that would generate the anchor `#github-actions-try-cpp-linter-action`

# Test: Search for heading. Expect: No matching heading found.
rg -n '^#{1,6}\s+.*GitHub Actions.*cpp-linter-action' README.md

Repository: cpp-linter/cpp-linter-hooks

Length of output: 53


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== README.md lines 25-50 =="
nl -ba README.md | sed -n '25,50p'

echo
echo "== Headings containing 'cpp-linter-action' =="
rg -n '^#{1,6}\s+.*cpp-linter-action' README.md || true

echo
echo "== Headings containing 'GitHub Actions' =="
rg -n '^#{1,6}\s+.*GitHub Actions' README.md || true

echo
echo "== Any explicit anchor/id matching the TOC fragment? =="
rg -n '(github-actions-try-cpp-linter-action|`#github-actions-try-cpp-linter-action`|id=["'\'']github-actions-try-cpp-linter-action)' README.md || true

Repository: cpp-linter/cpp-linter-hooks

Length of output: 160


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== README.md lines 30-45 (around TOC entry) =="
awk 'NR>=30 && NR<=45 {printf "%4d: %s\n", NR, $0}' README.md

echo
echo "== Markdown headings mentioning 'cpp-linter-action' (any level) =="
rg -n '^#{1,6}\s+.*cpp-linter-action' README.md || true

echo
echo "== Markdown headings mentioning 'GitHub Actions' (any level) =="
rg -n '^#{1,6}\s+.*GitHub Actions' README.md || true

echo
echo "== Explicit anchors/ids that match the TOC fragment =="
rg -n '(github-actions-try-cpp-linter-action|id\s*=\s*["'\'']github-actions-try-cpp-linter-action["'\''])' README.md || true

Repository: cpp-linter/cpp-linter-hooks

Length of output: 1104


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== All Markdown headings in README.md =="
rg -n '^#{1,6}\s+' README.md

echo
echo "== Headings mentioning 'Actions' =="
rg -n '^#{1,6}\s+.*Actions' README.md || true

echo
echo "== Headings mentioning 'Try' and 'cpp-linter-action' =="
rg -n '^#{1,6}\s+.*Try.*cpp-linter-action' README.md || true

Repository: cpp-linter/cpp-linter-hooks

Length of output: 848


Broken TOC link: GitHub Actions? Try cpp-linter-action points to a non-existent anchor

The Table of Contents entry links to #github-actions-try-cpp-linter-action, but README.md contains no corresponding ## GitHub Actions? Try cpp-linter-action heading—only a [!TIP] blockquote—so clicking the TOC item won’t navigate anywhere.

🔗 Recommended fix: Convert the TIP into a proper section
-
-> [!TIP]
-> Using GitHub Actions for CI? Check out
-> **[cpp-linter-action](https://github.com/cpp-linter/cpp-linter-action)** —
-> our companion GitHub Action that runs the same tools in CI with rich PR reviews,
-> thread comments, step summaries, and file annotations.
-
+
+## GitHub Actions? Try cpp-linter-action
+
+Using GitHub Actions for CI? Check out **[cpp-linter-action](https://github.com/cpp-linter/cpp-linter-action)** — our companion GitHub Action that runs the same tools in CI with rich PR reviews, thread comments, step summaries, and file annotations.
+
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 41-41: Link fragments should be valid

(MD051, link-fragments)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 41, The TOC entry "GitHub Actions? Try cpp-linter-action"
points to a missing anchor; update README.md by converting the existing [!TIP]
block into a proper section with a matching heading (e.g., add a level-2 heading
"## GitHub Actions? Try cpp-linter-action" immediately above the TIP content) or
change the TOC entry to match the actual heading used; ensure the heading text
exactly matches the TOC anchor so the link
`#github-actions-try-cpp-linter-action` resolves.

Source: Linters/SAST tools

@shenxianpeng shenxianpeng merged commit 22f48d9 into main Jun 8, 2026
32 checks passed
@shenxianpeng shenxianpeng deleted the chore/add-cross-reference-to-action branch June 8, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant