Auto-merge green Dependabot updates and group the pm toolchain into one daily PR
Merged
UN
16d ago+104+104+012345678901234567890123456789-0-0-0123456789
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.- Repository setting: auto-merge allowed, merged branches deleted.
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 merging green Dependabot version bumps so pm CLI releases reach every package without a hand-written certification PR.
.github/dependabot.ymlchecks npm daily, grouping@unbrained/pm-cliandpm-*packages into onepm-toolchainPR and other minor/patch updates into onedependenciesPR..github/workflows/dependabot-auto-merge.ymlenables squash auto-merge for the calendar-versionedpm-toolchaingroup (year rollovers read as semver-major) and for updatesfetch-metadataclassifies as minor or patch; anything unclassified or major waits for a person.- The workflow only runs for Dependabot PRs in the
unbraindorg, uses least-privilege permissions, and documents why it needs write scopes. - Branch protection still requires the test checks, so a failing bump stays open as a defect.
- Records the work as
pm-ado-14nnand adds a changelog entry.
Same change as the reviewed pilot unbraind/pm-presets#118.
Summary by Sourcery
Automate the safe propagation of Dependabot dependency updates while retaining manual review for major updates outside the pm toolchain.
New Features:
- Configure daily npm Dependabot updates, grouping the pm toolchain separately from other minor and patch dependencies.
- Automatically enable squash auto-merge for green non-major Dependabot updates, including calendar-versioned pm-toolchain releases.
Enhancements:
- Restrict the auto-merge workflow to Dependabot pull requests in the unbraind organization and grant it least-privilege permissions while preserving required status checks.
Chores:
- Record the change in the project changelog and PM task history.