Skip to content

fix: exempt dependabot PRs from branch name validation - #1933

Merged
ashleyshaw merged 1 commit into
developfrom
fix/dependabot-branch-validation-exemption
Aug 12, 2026
Merged

fix: exempt dependabot PRs from branch name validation#1933
ashleyshaw merged 1 commit into
developfrom
fix/dependabot-branch-validation-exemption

Conversation

@ashleyshaw

Copy link
Copy Markdown
Member

Summary

Adds exemption for dependabot and renovate PRs from branch name validation checks.

  • Exempts and PR authors
  • Skips validation for branches matching and patterns
  • Allows automated dependency update PRs to merge without branch naming conflicts

Resolves

Why

GitHub's dependabot creates branches with names like dependabot/npm_and_yarn/multi-{hash} which don't follow the LightSpeed branching strategy ({type}/{scope}-{title}). Since we cannot control dependabot's branch naming, we need to exempt it from validation to allow these critical dependency updates to merge automatically.

@ashleyshaw
ashleyshaw enabled auto-merge (squash) August 12, 2026 21:53
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@ashleyshaw, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 2494dd50-c0fe-4c4f-a194-5929283544d1

📥 Commits

Reviewing files that changed from the base of the PR and between c5e1116 and f181f47.

📒 Files selected for processing (1)
  • .github/workflows/branch-name-validation.yml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

❌ Branch Name Validation Failed

The branch name fix/dependabot-branch-validation-exemption does not follow the LightSpeed branching strategy.

Required Format

{type}/{scope}-{short-title}
  • type: one of the allowed prefixes (lowercase)
  • scope: lowercase, hyphens only (no underscores or uppercase)
  • title: lowercase, hyphens only (no underscores or uppercase)

Allowed Branch Types

feat, fix, hotfix, release, refactor, chore, docs, test, perf, ci, build, deps, security, revert, research, design, a11y, ux, i18n, ops, proto, ds, api, schema, telemetry, content, seo, config, migrate, qa, uat, audit, codex

Valid Examples

  • feat/branch-naming-enforcement
  • fix/validation-script-bug
  • chore/update-dependencies
  • docs/branching-strategy-guide
  • hotfix/critical-security-patch

Invalid Examples

  • claude/my-branch (type "claude" not allowed)
  • Feature/MyBranch (uppercase not allowed)
  • fix-bug (missing type prefix)
  • feat/my_feature (underscores not allowed)
  • feat/MyFeature (uppercase not allowed)

Solution

Rename your branch to follow the pattern and update the PR.

For more information, see docs/BRANCHING_STRATEGY.md.

@github-actions github-actions Bot added status:needs-review Awaiting code review type:bug Bug or defect priority:normal Default priority area:ci Build and CI pipelines type:chore Chore / small hygiene change meta:needs-changelog Requires a changelog entry before merge labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⏱️ Aging and SLA annotation

  • Age: 0 day(s)
  • SLA state: Within SLA
  • Thresholds: warn at 7 days, breach at 14 days
  • Last updated: 2026-08-12T21:58:20.868Z

Maintained by project-meta-sync workflow.

@ashleyshaw
ashleyshaw force-pushed the fix/dependabot-branch-validation-exemption branch from 628f5d2 to fd08156 Compare August 12, 2026 22:10
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

⚠️ A merged PR reached develop without passing the template content guardrail.

Missing required section(s): Linked issues, Changelog, Global DoD checklist

This is a post-merge backstop for admin bypasses. Please review branch protection for develop.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Reviewer Summary for PR #1933

CI Status:success
Files changed: 1
Risk Distribution: 1 critical, 0 high, 0 medium, 0 low

Recommendations

  • ⚠️ 1 critical-risk file(s) modified (workflows, secrets)
  • ⚠️ Security-sensitive files modified (review carefully)

- Add exemption for dependabot[bot] and renovate[bot] PR authors
- Skip validation for branches matching dependabot/* and renovate/* patterns
- Allows automated dependency update PRs to merge without branch naming conflict

This resolves merge blocking on PR #1864 and #1870 (dependabot dependency updates)
@ashleyshaw
ashleyshaw force-pushed the fix/dependabot-branch-validation-exemption branch from fd08156 to f181f47 Compare August 12, 2026 22:19
@ashleyshaw
ashleyshaw merged commit 5f846bc into develop Aug 12, 2026
17 of 23 checks passed
@ashleyshaw
ashleyshaw deleted the fix/dependabot-branch-validation-exemption branch August 12, 2026 22:23
@github-actions github-actions Bot removed the type:chore Chore / small hygiene change label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Build and CI pipelines meta:needs-changelog Requires a changelog entry before merge priority:normal Default priority status:needs-review Awaiting code review type:bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant