Skip to content

Monorepo support - #143

Merged
michaelst merged 2 commits into
mainfrom
monorepo-support
Apr 26, 2026
Merged

Monorepo support#143
michaelst merged 2 commits into
mainfrom
monorepo-support

Conversation

@michaelst

@michaelst michaelst commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added optional subdirectory input to configure coverage reporting for monorepo projects. Multiple jobs with distinct subdirectory values now consolidate into a single status with combined coverage metrics.
  • Documentation

    • Added dedicated "Monorepo support" section explaining how separate uploads are merged with summed coverage totals in status reporting.

@coderabbitai

coderabbitai Bot commented Apr 26, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 07b736da-23ea-48ec-ab47-9f838fc59b63

📥 Commits

Reviewing files that changed from the base of the PR and between 0129f90 and d4a075f.

⛔ Files ignored due to path filters (1)
  • dist/index.js is excluded by !**/dist/**
📒 Files selected for processing (3)
  • README.md
  • src/main.ts
  • src/post-coverage.ts

📝 Walkthrough

Walkthrough

This PR adds monorepo support by introducing a subdirectory action input. When separate jobs target different subdirectories, their coverage uploads are consolidated into a single commit status with aggregated totals. The implementation includes documentation, type definition updates, and changes to the commit status URL structure.

Changes

Cohort / File(s) Summary
Documentation
README.md
Adds subdirectory input documentation and new "Monorepo support" section explaining how separate uploads per subdirectory are consolidated into a single commit status with summed coverage totals.
Type Definition
src/post-coverage.ts
Expands CoverageResponse type with repository_id: string property to support new URL construction.
Payload and URL Configuration
src/main.ts
Includes subdirectory field in the postCoverage payload (normalized to null if empty) and updates patch coverage commit status target_url to use repository_id and sha instead of id.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Monorepo support' directly corresponds to the main feature being added: support for monorepos through the new optional subdirectory input and consolidation logic for multiple jobs.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch monorepo-support

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

@michaelst
michaelst merged commit 229704c into main Apr 26, 2026
10 checks passed
@michaelst
michaelst deleted the monorepo-support branch April 26, 2026 18:00
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.

1 participant