Skip to content

Coderabbit integration and danger file update to include all 40 rules#348

Open
bittubharadwaj wants to merge 5 commits into
expertiza:bkatna_workonbotsfrom
bittubharadwaj:main
Open

Coderabbit integration and danger file update to include all 40 rules#348
bittubharadwaj wants to merge 5 commits into
expertiza:bkatna_workonbotsfrom
bittubharadwaj:main

Conversation

@bittubharadwaj
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 30, 2026 16:52
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f33e7d70-9bcb-497b-a282-f2483c1888f4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces CodeRabbit configuration/documentation and expands the repository’s automated PR policy checks by replacing the minimal Dangerfile with a larger “legacy Expertiza” rule set, plus adjusts CI coverage publishing.

Changes:

  • Replace Dangerfile with an expanded ruleset (size/scope checks, test hygiene checks, sensitive-file guardrails, etc.).
  • Add CodeRabbit configuration and a repository-specific CodeRabbit guideline document.
  • Update CI to publish coverage via a Qlty GitHub Action and adjust the PR comment workflow.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Dangerfile Replaces the prior lightweight checks with a comprehensive Expertiza-style PR policy ruleset.
CODERABBIT_GUIDELINES.md Adds repo-specific guidance for CodeRabbit reviews and policy mirroring.
.github/workflows/main.yml Switches coverage upload step from Code Climate to Qlty action using coverage/coverage.json.
.github/workflows/CommentPR.yml Modifies how the PR comment workflow sets/passes GITHUB_TOKEN.
.coderabbit.yaml Adds CodeRabbit configuration (review behavior, path instructions, pre-merge checks, tool toggles).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dangerfile
return if CURRENT_MAINTAINERS.include?(PR_AUTHOR)
return unless TOUCHED_FILES.grep(regex).any?

fail("You changed #{filename}; please double-check whether this is necessary.", sticky: true)
Comment thread Dangerfile
Comment on lines +217 to +227
if TOUCHED_FILES.grep(%r{^app/}).any? && TOUCHED_FILES.grep(%r{^spec/}).empty?
warn(
markdown(
<<~MARKDOWN
There are code changes, but no corresponding tests.
Please include tests if this PR introduces any modifications in behavior.
MARKDOWN
),
sticky: true
)
end
Comment on lines 38 to 44
message: |
🚨 **RSpec Tests Report**
```
${{ steps.read_files.outputs.test_output }}
```
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants