Repository navigation
feat: add bru.hasGlobalEnvVar method and update translations - #8037
Conversation
- Introduced the `bru.hasGlobalEnvVar(key)` method to check for the existence of global environment variables. - Updated translation mappings in Postman converters to include `pm.globals.has` for `bru.hasGlobalEnvVar`. - Enhanced test cases to validate the new method and its translation in both directions between Bruno and Postman.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds Bru.hasGlobalEnvVar(key), exposes it to the QuickJS shim, wires bidirectional 1:1 translations with Postman's pm.globals.has, updates Postman translation regex, adds the autocomplete hint, and updates/introduces tests to assert direct boolean checks. ChangesGlobal Environment Variable Existence Check
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
- Implemented the `hasGlobalEnvVar` method in the bru shim to check for the existence of global environment variables. - Updated the context setup to include the new method, enhancing the functionality of the environment variable management.
…o#8037) * feat: add bru.hasGlobalEnvVar method and update translations - Introduced the `bru.hasGlobalEnvVar(key)` method to check for the existence of global environment variables. - Updated translation mappings in Postman converters to include `pm.globals.has` for `bru.hasGlobalEnvVar`. - Enhanced test cases to validate the new method and its translation in both directions between Bruno and Postman. * feat: add hasGlobalEnvVar method to bru shim - Implemented the `hasGlobalEnvVar` method in the bru shim to check for the existence of global environment variables. - Updated the context setup to include the new method, enhancing the functionality of the environment variable management.
…o#8037) * feat: add bru.hasGlobalEnvVar method and update translations - Introduced the `bru.hasGlobalEnvVar(key)` method to check for the existence of global environment variables. - Updated translation mappings in Postman converters to include `pm.globals.has` for `bru.hasGlobalEnvVar`. - Enhanced test cases to validate the new method and its translation in both directions between Bruno and Postman. * feat: add hasGlobalEnvVar method to bru shim - Implemented the `hasGlobalEnvVar` method in the bru shim to check for the existence of global environment variables. - Updated the context setup to include the new method, enhancing the functionality of the environment variable management.
…o#8037) * feat: add bru.hasGlobalEnvVar method and update translations - Introduced the `bru.hasGlobalEnvVar(key)` method to check for the existence of global environment variables. - Updated translation mappings in Postman converters to include `pm.globals.has` for `bru.hasGlobalEnvVar`. - Enhanced test cases to validate the new method and its translation in both directions between Bruno and Postman. * feat: add hasGlobalEnvVar method to bru shim - Implemented the `hasGlobalEnvVar` method in the bru shim to check for the existence of global environment variables. - Updated the context setup to include the new method, enhancing the functionality of the environment variable management.
JIRA
Description
bru.hasGlobalEnvVar(key)method to check for the existence of global environment variables.pm.globals.hasforbru.hasGlobalEnvVar.Contribution Checklist:
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
New Features
Tests