Skip to content

New Components - hubspot #17940

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 8 commits into from
Aug 11, 2025
Merged

New Components - hubspot #17940

merged 8 commits into from
Aug 11, 2025

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Aug 4, 2025

Resolves #17860

Summary by CodeRabbit

  • New Features
    • Added ability to batch create, update, and upsert multiple companies in Hubspot in a single action.
  • Chores
    • Updated package version to 1.4.0.
  • Other
    • Improved internal data parsing for Hubspot actions.

Copy link

vercel bot commented Aug 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Aug 8, 2025 2:41pm
pipedream-docs ⬜️ Ignored (Inspect) Aug 8, 2025 2:41pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Aug 8, 2025 2:41pm

Copy link
Contributor

coderabbitai bot commented Aug 4, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Three new Hubspot action modules are introduced to support batch creation, update, and upsert of company records via the Hubspot CRM API. A utility function for recursively parsing input data is added. The Hubspot package version is incremented to 1.4.0.

Changes

Cohort / File(s) Change Summary
Batch Create Companies Action
components/hubspot/actions/batch-create-companies/batch-create-companies.mjs
Adds a new action to batch create companies in Hubspot using the CRM v3 API.
Batch Update Companies Action
components/hubspot/actions/batch-update-companies/batch-update-companies.mjs
Adds a new action to batch update multiple companies in Hubspot using the CRM v3 API.
Batch Upsert Companies Action
components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs
Adds a new action to batch upsert (create or update) companies in Hubspot using the CRM v3 API.
Hubspot Utilities
components/hubspot/common/utils.mjs
Introduces a parseObject utility to recursively parse and transform input data.
Package Version Bump
components/hubspot/package.json
Updates the Hubspot package version from 1.3.0 to 1.4.0.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ActionModule
    participant HubspotAPI

    User->>ActionModule: Provide array of company inputs
    ActionModule->>ActionModule: Parse inputs (parseObject)
    ActionModule->>HubspotAPI: POST batch create/update/upsert request
    HubspotAPI-->>ActionModule: Return response
    ActionModule-->>User: Export summary and return response
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15 minutes

Assessment against linked issues

Objective Addressed Explanation
Implement batch create companies action for Hubspot (#17860)
Implement batch update companies action for Hubspot (#17860)
Implement batch upsert (create or update) companies action for Hubspot (#17860)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes were found.

Poem

A bunny hopped through Hubspot’s fields,
With batch requests and clever yields.
Create, update, upsert with glee,
Now companies flow in, three by three!
Utilities parse with whiskered flair,
Version bumped, so all beware—
The burrow’s code is fresh and neat,
A carrot treat for every feat! 🥕

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-17860

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ebbc0e6 and a8912c9.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • components/hubspot/actions/batch-create-companies/batch-create-companies.mjs (1 hunks)
  • components/hubspot/actions/batch-update-companies/batch-update-companies.mjs (1 hunks)
  • components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs (1 hunks)
  • components/hubspot/common/utils.mjs (1 hunks)
  • components/hubspot/package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: when developing pipedream components, do not add built-in node.js modules like `fs` to `package.json...
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.

Applied to files:

  • components/hubspot/package.json
📚 Learning: in `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "c...
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".

Applied to files:

  • components/hubspot/actions/batch-create-companies/batch-create-companies.mjs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (1)
components/hubspot/package.json (1)

3-3: LGTM!

The version bump from 1.3.0 to 1.4.0 correctly follows semantic versioning for the addition of new batch operation features.

luancazarine
luancazarine previously approved these changes Aug 4, 2025
Copy link
Collaborator

@luancazarine luancazarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @michelle0927, LGTM! Ready for QA!

@michelle0927
Copy link
Collaborator Author

/approve

luancazarine
luancazarine previously approved these changes Aug 7, 2025
@michelle0927
Copy link
Collaborator Author

/approve

@michelle0927
Copy link
Collaborator Author

/approve

@michelle0927 michelle0927 merged commit 90f2b52 into master Aug 11, 2025
11 checks passed
@michelle0927 michelle0927 deleted the issue-17860 branch August 11, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ACTION] Hubspot Batch Create or Update Company
2 participants