Skip to content

fix(flue): parse single-package Dependabot PR bodies#31363

Open
mvvmm wants to merge 3 commits into
productionfrom
flue/dependabot-single-package-fallback
Open

fix(flue): parse single-package Dependabot PR bodies#31363
mvvmm wants to merge 3 commits into
productionfrom
flue/dependabot-single-package-fallback

Conversation

@mvvmm

@mvvmm mvvmm commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What

Adds a prose fallback to parseDependabotPackages() in the flue dependabot-review workflow.

Why

Grouped Dependabot PRs include a markdown table that the parser already handles:

| Package | From | To |
| [name](url) | `old` | `new` |

Single-package PRs (including all major-version bumps, which Dependabot never groups) use prose instead:

Bumps [vite](https://github.com/...) from 7.3.5 to 8.0.16.

The parser only matched the table format, so single-package PRs returned an empty list and the workflow exited early at the packages.length === 0 guard without posting a review comment. This is why the bot ran on #31359 (grouped, 9 packages) but not #31357 (vite 7→8, single-package major bump).

Fix

When the table regex finds nothing, fall back to matching the prose format. The grouped path is unchanged.

Grouped Dependabot PRs include a markdown table; single-package PRs use
prose on the first line: "Bumps [name](url) from X to Y."

The parser only matched the table format, so single-package PRs (e.g.
major version bumps like vite 7→8) returned an empty package list and
the workflow exited early without posting a review comment.

Add a prose fallback that runs when the table regex finds nothing.
@mvvmm mvvmm requested review from a team and kodster28 as code owners June 9, 2026 22:49
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review

⏸️ Automatic reviews for this PR are paused.

This PR has already received 2 automatic reviews. To run another review, a codeowner can comment /review or /full-review.

Tip: Keep PRs in draft mode until they are ready for review — the bot skips draft PRs automatically.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
*.ts @cloudflare/content-engineering, @kodster28

@ask-bonk ask-bonk Bot added bug Something isn't working engineering Problems or updates to developers.cloudflare.com website labels Jun 9, 2026

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Summary: Adds a prose-regex fallback to so single-package Dependabot PRs (including all major-version bumps) are correctly parsed. Previously only the grouped-PR markdown table format was matched, causing the workflow to exit early on single-package PRs.

Assessment: No issues found. Clean, targeted fix with appropriate JSDoc updates.

Labels applied: ,

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Summary: Adds a prose-regex fallback to parseDependabotPackages() so single-package Dependabot PRs (including all major-version bumps) are correctly parsed. Previously only the grouped-PR markdown table format was matched, causing the workflow to exit early on single-package PRs.

Assessment: No issues found. Clean, targeted fix with appropriate JSDoc updates.

Labels applied: bug, engineering

@ask-bonk

ask-bonk Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

I've reviewed PR #31363.

What changed: Added a prose-regex fallback in .flue/workflows/dependabot-review.ts so single-package Dependabot PRs (including major-version bumps) are correctly parsed. Previously, parseDependabotPackages() only matched the grouped-PR markdown table format, causing the workflow to exit early when encountering the prose format used by single-package PRs like vite 7→8.

Labels applied: bug, engineering

Assessment: No issues found. The fix is minimal and targeted, the JSDoc is updated to document both formats, and the change is consistent with the existing code style. No inline suggestions were needed. I've posted an approving review on the PR.

github run

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@mvvmm

mvvmm commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

/review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working engineering Problems or updates to developers.cloudflare.com website size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants