Skip to content

feat: enhance translation for request and response URLs - #6956

Merged
bijin-bruno merged 1 commit into
usebruno:mainfrom
sanish-bruno:add/missing-translations
Jan 28, 2026
Merged

bijin-bruno merged 1 commit into
usebruno:mainfrom
sanish-bruno:add/missing-translations

Conversation

@sanish-bruno

@sanish-bruno sanish-bruno commented Jan 28, 2026 •

Copy link
Copy Markdown
Collaborator

Description

added translations for req.url, res.url, res.getUrl

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

Release Notes

  • New Features

    • Improved Bruno to Postman conversion to support URL reference translation for both request and response objects with enhanced compatibility across different reference formats.
  • Tests

    • Added comprehensive test cases to validate URL reference translations work correctly across various usage patterns.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Jan 28, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

Enhanced the Bruno-to-Postman converter to support URL property translations, adding mappings for req.url, res.url, and res.getUrl() to their Postman equivalents, with corresponding test coverage for both property and function call patterns.

Changes

Cohort / File(s) Summary
URL Translation Support
packages/bruno-converters/src/utils/bruno-to-postman-translator.js
Added simple property translations (req.url → pm.request.url, res.url → pm.response.url) and extended complex transformations to handle res.getUrl()
Request URL Translation Tests
packages/bruno-converters/tests/bruno/bruno-to-postman-translations/request.test.js
Added test case validating req.url property translation to pm.request.url
Response URL Translation Tests
packages/bruno-converters/tests/bruno/bruno-to-postman-translations/response.test.js
Added test cases for both res.getUrl() function and res.url property translations to pm.response.url

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

size/XXL

Suggested reviewers

  • helloanoop
  • lohit-bruno
  • naman-bruno
  • bijin-bruno

Poem

🔗 URLs now dance in translation's light,
From Bruno's req and res to Postman's sight,
Property paths and function calls align,
A mapper's delight, oh so refined! ✨

🚥 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 describes the main change: adding translations for request and response URL properties in the Bruno-to-Postman converter.
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

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.

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.

2 participants