Repository navigation
Auto-merge green Dependabot updates and group the pm toolchain into one daily PR - #90
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-vcs-0bur
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 to run daily and consolidate updates into a pm-toolchain group plus a minor/patch dependencies group, then adds a SHA-pinned, least-privilege workflow that enables squash auto-merge for eligible green Dependabot PRs. Calendar-versioned pm-toolchain updates are explicitly allowed through year-rollover major versions, while other major updates remain manual; repository auto-merge and branch cleanup settings are also enabled. Sequence diagram for Dependabot auto-merge workflowsequenceDiagram
participant Dependabot
participant GitHubActions
participant Metadata as dependabot/fetch-metadata
participant GitHub as GitHub PR
participant Checks as Required checks
Dependabot->>GitHub: Open grouped npm pull request
GitHub->>GitHubActions: Trigger pull_request
GitHubActions->>Metadata: Fetch update metadata
Metadata-->>GitHubActions: dependency-group and update-type
alt pm-toolchain group
GitHubActions->>GitHub: gh pr merge --auto --squash
else non-major update
GitHubActions->>GitHub: gh pr merge --auto --squash
else other major update
GitHubActions-->>GitHub: Leave PR for manual review
end
Checks-->>GitHub: Required checks pass
GitHub->>GitHub: Merge automatically and delete branch
Flow diagram for grouped daily Dependabot updatesflowchart TD
A[Daily npm Dependabot check] --> B{Package matches pm-toolchain?}
B -->|@unbrained/pm-cli or pm-*| C[pm-toolchain PR]
B -->|Other package| D{Minor or patch update?}
D -->|Yes| E[dependencies PR]
D -->|No| F[Major update remains manual]
C --> G[Auto-merge after required checks pass]
E --> G
G --> H[Squash merge and delete branch]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
pm item: pm-vcs-0bur
|
@coderabbitai full review |
Rate Limit Exceeded
|
pm item: pm-vcs-0bur
…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-vcs-0bur
|
@coderabbitai full review |
Rate Limit Exceeded
|
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),windows-acceptance-launcher (22),windows-acceptance-launcher (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 Sourcery
Automate the delivery of approved Dependabot updates while grouping pm toolchain releases into a daily update.
New Features:
Enhancements:
CI:
Chores:
Summary by cubic
Auto-merges green Dependabot updates so pm toolchain version bumps land without a hand-written certification PR, mirroring the reviewed pilot unbraind/pm-presets#118.
@unbrained/pm-cliandpm-*packages group into onepm-toolchainPR, and other minor/patch updates into adependenciesPR.fetch-metadataclassifies as minor or patch, or for thepm-toolchaingroup; a failing or unclassified update stays open for a person.pm-toolchaingroup has no update-type filter because pm uses calendar versions, so a year rollover (2026.x → 2027.x) reads as semver-major and still merges unattended.Written for commit 6927842. Summary will update on new commits.