Repository navigation
Group Dependabot security updates and apply the main title prefix - #16661
Draft
Vladimir Morozov (vmoroz) wants to merge 1 commit into
Draft
Vladimir Morozov (vmoroz) wants to merge 1 commit into
Vladimir Morozov (vmoroz) wants to merge 1 commit into
Conversation
Dependabot applies an entry's options to security updates only when the entry sets no target-branch. Dropping target-branch from the main npm entry lets security PRs on main use its prefix and labels, and a security-updates group batches them into one PR. GitHub Actions security updates are grouped the same way.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Removing target-branch causes security updates to inherit lockfile-only, preventing Dependabot from opening fixes for exact-pinned dependencies that require manifest changes.
1 open issue
What changed in this PR
Updates React Native Windows’ Dependabot configuration to group security updates and apply the existing main-branch title prefix and labels, addressing the separate, unprefixed PRs seen in #16657–#16659.
Changes:
- Removes the explicit npm
target-branch: "main"so security updates inherit the default-branch entry’s options. - Adds separate security-update groups for npm and GitHub Actions.
- Leaves stable-branch configuration unchanged.
| File | Description |
|---|---|
.github/dependabot.yml |
Enables default-branch option inheritance and groups security updates by ecosystem. |
Review effort: Balanced
| - package-ecosystem: npm | ||
| directory: "/" | ||
| target-branch: "main" | ||
| # Omit target-branch so security updates inherit this default-branch entry's options. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Type of Change
Why
Dependabot security updates on
mainopen one PR per package, without the📦 [main]title prefix and with default labels (#16657, #16658, #16659). Version updates are grouped and prefixed as expected.Since #15894, the main npm entry sets
target-branch: "main". GitHub doesn't apply an entry's options to security updates when it setstarget-branch, so security updates fall back to defaults: no prefix, no group, default labels. Groups also apply only to version updates unless they setapplies-to: security-updates.What
Main npm entry
target-branch: "main". Without it, the entry targets the default branch (main), so version updates don't change and security updates get the📦 [main]prefix and thedependencieslabel.security-updatesgroup, so security updates arrive as one PR:📦 [main]: Bump the security-updates group ….GitHub Actions entry
security-updatesgroup. The entry already applies its🎬 [main]prefix to security updates; this only groups them.The stable-branch entries are unchanged; security updates only target the default branch. The main entry's ignore rules use
update-types, which don't filter security updates.lockfile-onlynow also applies to npm security updates onmain, matching the version updates; the recent security PRs changed onlyyarn.lock.Screenshots
Not applicable.
Testing
The config validates against the SchemaStore Dependabot schema. GitHub checks it only after merge: the Dependabot check on the merge commit should pass, and the next security update on
mainshould open one prefixed, grouped PR.Changelog
Should this change be included in the release notes: no
Group Dependabot security updates and give them the usual title prefix.
Microsoft Reviewers: Open in CodeFlow