Skip to content

fix: Fix registries deletion when adding new ecosystems to dependabot.yml #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Remove trailing whitespace from test file to fix linting issues
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
  • Loading branch information
Copilot and zkoppert committed Jul 8, 2025
commit 36c946d1ea91e79b6a6fe78a1d3596c5116bde12
6 changes: 3 additions & 3 deletions test_dependabot_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def test_build_dependabot_file_preserves_existing_registries(self):
"""Test that existing registries are preserved when adding new ecosystems"""
repo = MagicMock()
repo.file_contents.side_effect = lambda filename: filename == "Gemfile"

# Create existing config with registries but no bundler ecosystem
existing_config = MagicMock()
existing_config.content = base64.b64encode(
Expand All @@ -842,7 +842,7 @@ def test_build_dependabot_file_preserves_existing_registries(self):
interval: "weekly"
"""
)

expected_result = yaml.load(
b"""
version: 2
Expand All @@ -863,7 +863,7 @@ def test_build_dependabot_file_preserves_existing_registries(self):
interval: 'weekly'
"""
)

result = build_dependabot_file(
repo, False, [], {}, existing_config, "weekly", "", [], None
)
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy