Skip to content

ci: fix dependabot auto-merge for grouped updates#318

Merged
laurelfulford merged 1 commit intotrunkfrom
ci/fix-dependabot-auto-merge-grouped
Apr 2, 2026
Merged

ci: fix dependabot auto-merge for grouped updates#318
laurelfulford merged 1 commit intotrunkfrom
ci/fix-dependabot-auto-merge-grouped

Conversation

@adekbadek
Copy link
Copy Markdown
Member

Summary

  • Replaces the deprecated ahmadnassri/action-dependabot-auto-merge@v2 with dependabot/fetch-metadata@v2
  • Adds version parsing fallback for grouped multi-dependency PRs where fetch-metadata doesn't populate update-type
  • Parses PR body for from X to Y version patterns and blocks auto-merge if any dependency has a major bump

Same change as Automattic/newspack-plugin#4599 and 14 other Newspack repos.

@adekbadek adekbadek requested a review from a team as a code owner March 27, 2026 11:09
@adekbadek adekbadek force-pushed the ci/fix-dependabot-auto-merge-grouped branch from c038081 to 13ec055 Compare March 27, 2026 11:13
Copy link
Copy Markdown
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, let's see how it goes!

Copy link
Copy Markdown
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, when is HAS_MAJOR checked? Shouldn't it be used in the next step?

@adekbadek
Copy link
Copy Markdown
Member Author

Lines 47 & 59 → steps.check-major.outputs.has_major != 'true'

@adekbadek adekbadek requested a review from miguelpeixe March 30, 2026 07:31
@miguelpeixe
Copy link
Copy Markdown
Member

Ah ok, that was not intuitive 😄

@laurelfulford laurelfulford merged commit 0872633 into trunk Apr 2, 2026
13 checks passed
@laurelfulford laurelfulford deleted the ci/fix-dependabot-auto-merge-grouped branch April 2, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants