Skip to content

Comments

Validate that the dependabot ref namespace is available#14218

Merged
robaiken merged 2 commits intodependabot:mainfrom
yeikel:validate-dependabot-ref
Feb 20, 2026
Merged

Validate that the dependabot ref namespace is available#14218
robaiken merged 2 commits intodependabot:mainfrom
yeikel:validate-dependabot-ref

Conversation

@yeikel
Copy link
Contributor

@yeikel yeikel commented Feb 18, 2026

What are you trying to accomplish?

Executes a validation before the job to ensure that a branch called dependabot does not exist

If a branch named dependabot already exists, branches in the format dependabot/<name> cannot be created because Git does not allow a ref to be both a file and a directory

Fixes #14193

Anything you want to highlight for special attention from reviewers?

The design is very similar to the existing validate_target_branch method

How will you know you've accomplished your goal?

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@yeikel yeikel force-pushed the validate-dependabot-ref branch 4 times, most recently from 6c7545f to 2c57ca7 Compare February 18, 2026 19:33
@yeikel yeikel marked this pull request as ready for review February 18, 2026 19:34
@yeikel yeikel requested a review from a team as a code owner February 18, 2026 19:34
@yeikel yeikel force-pushed the validate-dependabot-ref branch 2 times, most recently from 27ee43c to 422a7c7 Compare February 18, 2026 20:08
@robaiken robaiken self-assigned this Feb 18, 2026
@yeikel yeikel force-pushed the validate-dependabot-ref branch 2 times, most recently from c9cba63 to d946205 Compare February 19, 2026 12:57
…dependabot` does not exist

If a branch named `dependabot` already exists, branches in the format `dependabot/<name>` cannot be created because Git does not allow a ref to be both a file and a directory

Fixes dependabot#14193
@yeikel yeikel force-pushed the validate-dependabot-ref branch from d946205 to 2094ed8 Compare February 19, 2026 16:56
@yeikel
Copy link
Contributor Author

yeikel commented Feb 20, 2026

Thanks for the review @robaiken. The CI failure seems unrelated, can you try re-triggering it? Thanks!

@robaiken
Copy link
Contributor

@yeikel Thank you for another great contribution!

@robaiken robaiken merged commit 31016e6 into dependabot:main Feb 20, 2026
173 of 176 checks passed
@yeikel yeikel deleted the validate-dependabot-ref branch February 20, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependabot silently fails to create PRs when a branch named "dependabot" exists

2 participants