Skip to content

refactor: update opencollection extension for bruno#7013

Merged
bijin-bruno merged 2 commits intousebruno:mainfrom
naman-bruno:fix/opencollection/extension
Feb 2, 2026
Merged

refactor: update opencollection extension for bruno#7013
bijin-bruno merged 2 commits intousebruno:mainfrom
naman-bruno:fix/opencollection/extension

Conversation

@naman-bruno
Copy link
Collaborator

@naman-bruno naman-bruno commented Feb 2, 2026

Description

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Refactor
    • Reorganized internal extension configuration structure for improved maintainability and consistency in collection file handling.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Walkthrough

This PR restructures OpenCollection's extension schema by nesting ignore and presets configuration under a bruno sub-extension. The parsing and stringification logic is updated to read from and write to oc.extensions.bruno instead of the top-level extensions object.

Changes

Cohort / File(s) Summary
OpenCollection Fixture
packages/bruno-cli/tests/runner/fixtures/opencollection/collection/opencollection.yml
Moved ignore list from extensions.ignore to nested extensions.bruno.ignore structure.
YAML Parser
packages/bruno-filestore/src/formats/yml/parseCollection.ts
Updated to read ignore and presets from oc.extensions.bruno instead of top-level extensions, centralizing access via brunoExtension variable.
YAML Stringifier
packages/bruno-filestore/src/formats/yml/stringifyCollection.ts
Restructured to write ignore and presets under oc.extensions.bruno with nested structure for presets (presets.request); added hasBrunoExtensions gate to control bruno block output.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • bijin-bruno
  • lohit-bruno
  • helloanoop

Poem

🏗️ Extensions find their place,
Nested snug in bruno's space,
Parse and stringify align,
Config structures now refine! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: restructuring how ignore and presets are nested within the OpenCollection extensions from top-level to bruno sub-extension.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@bijin-bruno bijin-bruno merged commit c9059c9 into usebruno:main Feb 2, 2026
7 of 8 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Feb 13, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants