Repository navigation
Auto-merge green Dependabot updates and group the pm toolchain into one daily PR - #123
Conversation
…ne daily PR Version bumps of @unbrained/pm-cli, pm-ops and pm-changelog are mechanical. Dependabot now checks npm daily and groups the pm toolchain (and other minor/patch updates) into single pull requests; a least-privilege workflow enables squash auto-merge for every non-major Dependabot PR, so it lands as soon as the required checks pass and a failing bump stays open as a defect. pm item: pm-starter-enr4
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. Summary by CodeRabbit
WalkthroughDependabot now checks npm dependencies daily and groups updates into toolchain and general dependency pull requests. A new pull request workflow enables squash auto-merge for toolchain updates and semver minor or patch updates. ChangesDependabot update automation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Dependabot
participant GitHubActions
participant GitHubCLI
Dependabot->>GitHubActions: Open pull request triggers workflow
GitHubActions->>GitHubActions: Fetch Dependabot metadata
GitHubActions->>GitHubCLI: Run squash auto-merge for eligible update
GitHubCLI->>Dependabot: Enable pull request auto-merge
Merge Risk: ⚪ Minimal · up to The auto-merge command does not need a checkout for the URL it receives. No actionable merge-blocking issue was established; confirm the stated required checks through normal repository settings review. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The automation is limited to Dependabot pull requests in the intended organization, uses a pinned action, and does not execute pull-request code. No exploitable weakness was established. However, safe unattended merging depends on repository protection settings and pending auto-merge behavior that were not independently verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Reviewer's GuideThis PR changes npm Dependabot checks to daily grouped updates, then uses a narrowly scoped, SHA-pinned workflow to enable squash auto-merge for green PM-toolchain and other non-major Dependabot PRs while leaving major non-PM updates for manual review. Repository settings also permit auto-merge and delete merged branches. Sequence diagram for Dependabot auto-merge workflowsequenceDiagram
participant Dependabot
participant GitHub
participant Metadata as dependabot/fetch-metadata
participant Checks as Required checks
participant Merge as GitHub auto-merge
Dependabot->>GitHub: Open pull request
GitHub->>Metadata: fetch-metadata
Metadata-->>GitHub: dependency-group and update-type
alt pm-toolchain group
GitHub->>Merge: gh pr merge --auto --squash
else non-major update
GitHub->>Merge: gh pr merge --auto --squash
else major non-PM update
GitHub-->>Dependabot: Leave pull request for manual review
end
Merge->>Checks: Wait for required checks
Checks-->>Merge: Pass
Merge->>GitHub: Squash merge and delete branch
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
pm item: pm-starter-enr4
|
@coderabbitai full review |
Rate Limit Exceeded
|
…sions Review feedback: an update that fetch-metadata cannot classify must not auto-merge, so the condition now requires semver-minor or semver-patch outside the calendar-versioned pm-toolchain group. The job's write scopes are documented, the dependencies group selects every package explicitly, and the item's acceptance criteria name the pm-toolchain exception. pm item: pm-starter-enr4
|
@coderabbitai full review |
✅ Action performedFull review finished. |
What
.github/dependabot.yml: npm is checked daily;@unbrained/pm-cliandpm-*packages arrive as onepm-toolchainPR, other minor/patch updates as onedependenciesPR. Other ecosystems are unchanged..github/workflows/dependabot-auto-merge.yml: for Dependabot PRs only (and only inunbraind),dependabot/fetch-metadata(SHA-pinned v3.1.0) classifies the update; thepm-toolchaingroup (calendar-versioned, so a year rollover reads as semver-major) and every other non-major update getgh pr merge --auto --squash. Workflow default permissions are{}; the job alone getscontents: write+pull-requests: write.Why
Fleet rule ([companion pm-cli-website-6d05]): a pm CLI release must reach every package without a hand-written certification PR. Branch protection still requires
test (22),test (26), so nothing merges red; a bump that fails CI stays open as a real defect. Major updates still need a person. Same change as the reviewed pilot unbraind/pm-presets#118.pm item
Summary by cubic
Automates Dependabot version bumps for
unbraind: npm is now checked daily, pm toolchain packages are grouped into onepm-toolchainPR, and eligible Dependabot PRs get GitHub squash auto-merge that lands as soon as required checks pass.pm-toolchaingroup has noupdate-typesfilter, so a calendar-version year rollover (2026.x → 2027.x) still auto-merges; other minor/patch updates land in a disjointdependenciesgroup.dependabot/fetch-metadataclassifies as minor or patch auto-merge outside thepm-toolchaingroup; a major or unclassified update waits for a person, and a bump that fails CI stays open as a defect under branch protection.unbraind, uses SHA-pinneddependabot/fetch-metadata, and grantscontentsandpull-requestswrite to the job alone.Written for commit 02a1942. Summary will update on new commits.
Summary by Sourcery
Automate safe Dependabot maintenance by grouping daily npm updates and auto-merging eligible changes after required checks pass.
New Features:
Enhancements:
Chores: