[PR #5479] [MERGED] feat: add $randomCompanyName predefined variable #5234

Closed
opened 2026-03-17 02:42:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5479
Author: @EmanFateen
Created: 10/12/2025
Status: Merged
Merged: 10/27/2025
Merged by: @jamesgeorge007

Base: nextHead: company-name-pre-defined-variables


📝 Commits (3)

  • 58e7efd feat(predefined-variables): add randomCompanyName as a predefined variable
  • 5fd3b14 chore: remove Extra space
  • 3832460 chore: cleanup

📊 Changes

1 file changed (+32 additions, -0 deletions)

View changed files

📝 packages/hoppscotch-data/src/predefinedVariables.ts (+32 -0)

📄 Description

What's changed

Hello, this PR adds a new predefined variable for generating random company names in the Hoppscotch data package.

  • Adds $randomCompanyName predefined variable with 20 sample company names
  • Implements random selection logic using Math.random() and Math.floor()

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5479 **Author:** [@EmanFateen](https://github.com/EmanFateen) **Created:** 10/12/2025 **Status:** ✅ Merged **Merged:** 10/27/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `company-name-pre-defined-variables` --- ### 📝 Commits (3) - [`58e7efd`](https://github.com/hoppscotch/hoppscotch/commit/58e7efd265ebc6a37c43df3da75eba92218fd2d5) feat(predefined-variables): add randomCompanyName as a predefined variable - [`5fd3b14`](https://github.com/hoppscotch/hoppscotch/commit/5fd3b14b3766d9a423c5b8dc4527b9470a5b8ced) chore: remove Extra space - [`3832460`](https://github.com/hoppscotch/hoppscotch/commit/3832460b617a104124948febe08df9e4d85fa55d) chore: cleanup ### 📊 Changes **1 file changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-data/src/predefinedVariables.ts` (+32 -0) </details> ### 📄 Description ### What's changed Hello, this PR adds a new predefined variable for generating random company names in the Hoppscotch data package. - Adds `$randomCompanyName` predefined variable with 20 sample company names - Implements random selection logic using `Math.random()` and `Math.floor()` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:42:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5234
No description provided.