react-doctor 0.3.0-dev.915745e → 0.3.0-dev.9a8ad6e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ Companion extensions for VS Code/Cursor and Zed live under `packages/`; any othe
53
53
 
54
54
  [![GitHub Action](https://img.shields.io/badge/GitHub%20Action-React%20Doctor-000000?style=flat&labelColor=000000&logo=githubactions&logoColor=white)](https://github.com/marketplace/actions/react-doctor)
55
55
 
56
- Add the reusable GitHub Action from Marketplace to scan every pull request, show inline annotations, and leave findings where reviewers already look.
56
+ On a pull request the Action reports only the issues your change **introduced** — it scans the PR and the merge-base and reports the difference (like Codecov for coverage), leaving pre-existing findings alone. It posts inline review comments on the changed lines and a sticky summary with the new / fixed delta.
57
57
 
58
58
  ```yaml
59
59
  name: React Doctor
@@ -76,9 +76,13 @@ jobs:
76
76
  runs-on: ubuntu-latest
77
77
  steps:
78
78
  - uses: actions/checkout@v5
79
+ with:
80
+ fetch-depth: 0 # so React Doctor can diff against the merge-base for new-vs-existing
79
81
  - uses: millionco/react-doctor@v1
80
82
  ```
81
83
 
84
+ `fetch-depth: 0` is recommended so the baseline comparison can read the base commit; without enough history the Action falls back to reporting every finding in the changed files.
85
+
82
86
  `@v1` always resolves to the latest `v1.x` release of the Action. For hardened CI — recommended whenever the workflow is granted `pull-requests: write` — pin to a full commit SHA instead and let Dependabot or Renovate keep it current:
83
87
 
84
88
  ```yaml