Skip to content

Add HubSpot Events Completions connector documentation - #618

Merged
daneshk merged 7 commits into
wso2:5.1.xfrom
daneshk:add-hubspot-events-completions-docs
Aug 11, 2026
Merged

Add HubSpot Events Completions connector documentation#618
daneshk merged 7 commits into
wso2:5.1.xfrom
daneshk:add-hubspot-events-completions-docs

Conversation

@daneshk

@daneshk daneshk commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the full four-page doc set for ballerinax/hubspot.events.completions under the CRM & Sales catalog category: overview.md, setup-guide.md, action-reference.md, and a validated example.md guide with six low-code UI screenshots showing the connector wired up end-to-end in WSO2 Integrator.
  • Generated with connector-doc-generator (overview, setup guide, action reference) and the ballerina-libdev generate-connector-docs Claude Code skill (example guide, screenshots, sample project — see ballerina-platform/ballerina-library#9013 for the tooling changes made alongside this), then hand-reviewed to fix the generator's naive title-casing of "HubSpot" and remove the raw Ballerina package identifier from prose per the site's established connector-doc conventions.
  • Registers the connector in en/sidebars.ts and en/docs/connectors/catalog/index.mdx.

Test plan

  • Hand-reviewed all four pages for content accuracy against the connector's own README/spec
  • Verified all six example screenshots render the described UI state and contain no leaked local paths, secrets, or dev-tooling chrome
  • Verified the sidebar entry resolves and matches sibling connectors' formatting

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added the HubSpot Events Completions connector to the catalog.
    • Added support for sending individual and batches of custom events.
    • Added setup guidance for authentication, service keys, custom events, and tracking IDs.
    • Added a complete usage example, including automation setup and result logging.
    • Added connector documentation links to the navigation sidebar.

Adds the full four-page doc set for ballerinax/hubspot.events.completions
under the CRM & Sales catalog category: overview, setup guide, action
reference, and a validated example guide with six low-code UI screenshots
showing the connector wired up end-to-end in WSO2 Integrator.

Generated with connector-doc-generator (overview, setup guide, action
reference) and the ballerina-libdev generate-connector-docs Claude Code skill
(example guide, screenshots, sample project), then hand-reviewed to fix the
generator's naive title-casing of "HubSpot" and remove the raw Ballerina
package identifier from prose per the site's established connector-doc
conventions.
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Added complete HubSpot Events Completions connector documentation, including setup, event operations, examples, catalog metadata, and sidebar navigation.

Changes

HubSpot Events Completions

Layer / File(s) Summary
Connector overview and setup
en/docs/connectors/catalog/crm-sales/hubspot.events.completions/overview.md, en/docs/connectors/catalog/crm-sales/hubspot.events.completions/setup-guide.md
Documents connector metadata, authentication requirements, Service Key creation, custom event definitions, and the action-reference link.
Event operations and usage example
en/docs/connectors/catalog/crm-sales/hubspot.events.completions/action-reference.md, en/docs/connectors/catalog/crm-sales/hubspot.events.completions/example.md
Documents sendEvent, sendEventBatch, payloads, response samples, and an automation example for sending custom behavioral events.
Catalog and sidebar integration
en/docs/connectors/catalog/index.mdx, en/sidebars.ts
Adds the connector to the catalog and sidebar navigation. The catalog closing JSX tag is also rewritten equivalently.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: anupama-pathirage, kavinduzoysa, nipunaranasinghe

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description includes a useful summary and test plan but omits most required template sections, including purpose, goals, release note, security checks, and test environment. Complete the required template sections or mark them N/A with brief explanations where they do not apply.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: documentation for the HubSpot Events Completions connector.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@en/docs/connectors/catalog/crm-sales/hubspot.events.completions/action-reference.md`:
- Around line 94-96: Update both fenced HTTP response examples in the document,
including the block near the `HTTP/1.1 204 No Content` example and the
additional block referenced by the review, to use the supported `bash` language
identifier. Preserve the response content unchanged.
- Around line 48-55: Add the ballerina/http import to the client initialization
sample alongside the existing ballerinax/hubspot.events.completions import, so
the http:Response references in the operation samples resolve correctly.

In `@en/docs/connectors/catalog/crm-sales/hubspot.events.completions/example.md`:
- Around line 104-106: Update the “Track customer purchase events” link in the
connector examples list to point to an existing connector repository sample or a
valid local documentation page using a lowercase, hyphenated path; do not retain
the broken crm-sales/examples relative link.

In `@en/docs/connectors/catalog/crm-sales/hubspot.events.completions/overview.md`:
- Line 10: Apply sentence case to all specified non-H1 headings: in
en/docs/connectors/catalog/crm-sales/hubspot.events.completions/overview.md:10
change “Key Features” to “Key features”; in setup-guide.md:16 and :38 change
“Create a Service Key” to “Create a service key” and “Create a Custom Event
Definition” to “Create a custom event definition”; and in action-reference.md:59
change “Event Reporting” to “Event reporting”.

In
`@en/docs/connectors/catalog/crm-sales/hubspot.events.completions/setup-guide.md`:
- Around line 40-45: Update the event setup instructions near the Custom Events
workflow to cover both Professional and Enterprise HubSpot accounts. Add the
Professional API-based event-definition creation path and explicitly require the
`behavioral_events.event_definitions.read_write` scope, while retaining the
existing Enterprise UI instructions.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 71d0d360-2ad8-4e0b-a722-a2ddfa583443

📥 Commits

Reviewing files that changed from the base of the PR and between ee5daa3 and a8112a3.

⛔ Files ignored due to path filters (9)
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_01_palette.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_02_connection_form.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_03_connections_list.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_04_operations_panel.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_05_operation_form.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/ballerinax_hubspot_events_completions_screenshot_06_completed_flow.png is excluded by !**/*.png
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/service-key-created.jpg is excluded by !**/*.jpg
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/service-key-select-scope.jpg is excluded by !**/*.jpg
  • en/static/img/connectors/catalog/crm-sales/hubspot.events.completions/service-keys-list.jpg is excluded by !**/*.jpg
📒 Files selected for processing (6)
  • en/docs/connectors/catalog/crm-sales/hubspot.events.completions/action-reference.md
  • en/docs/connectors/catalog/crm-sales/hubspot.events.completions/example.md
  • en/docs/connectors/catalog/crm-sales/hubspot.events.completions/overview.md
  • en/docs/connectors/catalog/crm-sales/hubspot.events.completions/setup-guide.md
  • en/docs/connectors/catalog/index.mdx
  • en/sidebars.ts

Comment thread en/docs/connectors/catalog/crm-sales/hubspot.events.completions/example.md Outdated
Comment thread en/docs/connectors/catalog/crm-sales/hubspot.events.completions/overview.md Outdated
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Broken links, images & orphan pages

Passing — no broken links or images found.

Links/images come from one crawl of the production build (baseUrl-aware). Orphans are docs not referenced by sidebars.ts.

Summary

  • Broken links & images — total 0 · 🆕 introduced 0 · 📄 already on main 0
  • Orphan pages — total 8 · 🆕 introduced 0 · 📄 already on main 8

Broken links & images

Introduced by this PR

No new broken link(s)/image(s) introduced by this PR. ✅

Already on main — 0 total

None.

Orphan pages

Introduced by this PR

No new orphan page(s) introduced by this PR. ✅

Already on main — 8 total

Already present on the base branch (not caused by this PR):

Show 8
  • docs/deploy-operate/observe/datadog-integration
  • docs/deploy-operate/observe/elastic-stack-elk
  • docs/deploy-operate/observe/metrics-prometheus-grafana
  • docs/deploy-operate/observe/opensearch-integration
  • docs/deploy-operate/observe/recipe-elk-stack
  • docs/deploy-operate/observe/recipe-kubernetes-production
  • docs/deploy-operate/observe/recipe-local-development
  • docs/deploy-operate/observe/recipe-opensearch-setup

daneshk added 5 commits August 9, 2026 23:33
The link to the track_customer_purchase_events example used a path relative
to the connector's own repo (../examples/...), which 404s once embedded in
docs-integrator's page structure. Point it at the file's GitHub blob URL
instead. Caught by this PR's own broken-links CI check.
- action-reference.md: add the missing ballerina/http import to the client
  init sample (both operation samples use http:Response), add a bash language
  tag to both HTTP response fences, sentence-case "Event reporting".
- overview.md, setup-guide.md: sentence-case "Key features", "Create a
  service key", "Create a custom event definition".
- setup-guide.md: clarify the Professional/Enterprise split for creating a
  custom event definition. Verified against HubSpot's own docs before writing
  this — the reviewer's suggested fix had it backwards: the UI wizard already
  documented here works on Professional accounts, but HubSpot's
  event-definitions API for creating definitions programmatically is
  Enterprise-only (scope behavioral_events.event_definitions.read_write).
overview.md never linked to example.md — connector-doc-generator writes
overview.md before the example page exists, and nothing revisited it
afterward. Root-caused and fixed in connector-doc-generator itself
(ballerina-platform/ballerina-library#9013); applying the same fix here.
Checked mi.docs.wso2.com across nine vendors plus docs-integrator's own
Twilio/HTTP pages: WSO2's established convention is Title Case with the
connector's name in every page's title, not just the overview. Our four
pages were inconsistent with each other and with that convention -
overview.md had a bare connector name (no "Overview"), setup-guide.md had a
generic "Setup Guide" title with no connector name, and action-reference.md/
example.md had no title at all.

Root-caused and fixed in connector-doc-generator and this skill
(ballerina-platform/ballerina-library#9013); applying the same fix here.
overview.md had no body H1, so the frontmatter title ("HubSpot Events
Completions Overview") was rendering as the on-page heading via Docusaurus's
fallback — same text as the browser tab. Added an explicit H1 with just the
connector name; the frontmatter title still carries the fuller form for the
browser tab. Root-caused in connector-doc-generator
(ballerina-platform/ballerina-library#9013).
wso2/integration-samples#155 renamed the sample to drop the "ballerinax_"
prefix, matching every other connector sample in that repo
(hubspot.crm.pipelines_connector_sample, not
ballerinax_hubspot_crm_pipelines_connector_sample). Updated both the Devant
deploy link and the GitHub source link here to match.
@daneshk
daneshk changed the base branch from main to 5.1.x August 10, 2026 09:35
@daneshk daneshk added the 5.1.0 label Aug 10, 2026
daneshk added a commit to wso2/integration-samples that referenced this pull request Aug 11, 2026
Sample integration built in WSO2 Integrator demonstrating the
ballerinax/hubspot.events.completions connector's Send Event operation:
an Automation entry point that sends a single custom behavioral event
occurrence to HubSpot and logs the resulting HTTP status.

Referenced from the connector's example documentation on docs-integrator
(wso2/docs-integrator#618) via the deterministic "Try it yourself" link,
which currently 404s without this PR.
@daneshk
daneshk merged commit e9704fc into wso2:5.1.x Aug 11, 2026
4 checks passed
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