-
Notifications
You must be signed in to change notification settings - Fork 448
feat: add react doctor to the ci #1984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9748e52
add react doctor to the ci
mfortman11 cdb02fe
quick improvements
mfortman11 788b92f
reorganize actions
mfortman11 a23857e
code rabbit fix
mfortman11 71a7428
new fix set
mfortman11 4c58924
fix actions round 2
mfortman11 4e5b537
fix action scope
mfortman11 52db3a3
coderabbit
mfortman11 5abcfbe
react doctor pr comment render in render
mfortman11 22638ac
Merge branch 'main' into react-doctor-ci
mfortman11 c160434
update rule
mfortman11 e8080a2
Merge branch 'react-doctor-ci' of github.com:langflow-ai/openrag into…
mfortman11 11ab571
normalize actions/checkout version
mfortman11 35380be
Merge branch 'main' into react-doctor-ci
mfortman11 c81a721
Merge branch 'main' into react-doctor-ci
mfortman11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # React Doctor — finds security, performance, correctness, accessibility, | ||
| # bundle-size, and architecture issues in React codebases. | ||
| # | ||
| # Docs: https://www.react.doctor/ci | ||
| # Source: https://github.com/millionco/react-doctor | ||
|
|
||
| name: React Doctor | ||
|
|
||
| on: | ||
| # Scans the PR's changed files and posts a sticky summary comment listing only the new issues introduced relative to the merge base of the target branch. | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| # Scans `main` on every push to track the health-score trend and catch regressions that slipped past PR review. | ||
| push: | ||
| branches: ["main"] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| issues: write | ||
| statuses: write | ||
|
|
||
| # Cancels any in-flight scan for the same PR (or branch, on push) the moment a new commit arrives, so reviewers only ever see the latest run. | ||
| concurrency: | ||
| group: react-doctor-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| react-doctor: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - uses: millionco/react-doctor@v2 | ||
| # Advisory by default: React Doctor reports findings on every PR — a | ||
| # sticky summary comment, inline review comments, and a commit status | ||
| # with the health score — but never fails the check, so it won't red-X | ||
| # a teammate's PR on day one. When your team trusts the signal, graduate | ||
| # the gate: uncomment the block below and set blocking to "error" (fail | ||
| # on new error-severity findings) or "warning" (fail on any finding). | ||
| # Full reference: https://www.react.doctor/ci | ||
| # with: | ||
| # blocking: error # Gate level: "none" (advisory, the default) | "warning" | "error" | ||
| # scope: full # On PRs, scan the whole project instead of just changed files | ||
| # comment: false # Disable the sticky PR summary comment | ||
| # review-comments: false # Disable inline review comments on changed lines | ||
| # commit-status: false # Disable the commit status (score + counts, links to the run) | ||
| # version: "0.4.0" # Pin to a specific react-doctor version instead of "latest" | ||
| # directory: apps/web # Scan a sub-directory (default: ".") | ||
| # project: "web,admin" # In a monorepo, scan specific workspace project(s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.