Skip to content

Add integration commands - #98

Merged
rmorehig merged 4 commits into
mainfrom
jordiori/integration-commands
Nov 4, 2026
Merged

rmorehig merged 4 commits into
mainfrom
jordiori/integration-commands

Conversation

@jordiori

@jordiori jordiori commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Slack workflow sinks need the ID of a connected integration, but the CLI had no way to find one or to connect Slack.

  • Add rtree integration list and rtree integration add slack. list resolves the organization's ID, like service-account. add slack opens the organization's integration settings (/<org>/~/settings#integrations). Integrations need a user login; any member can list them and connecting one requires an organization admin, as the help texts now state. Auth errors come straight from the server.
  • Point the Slack sink help and README to rtree integration list.
  • Derive UI links from the API URL: hosted APIs open rawtree.com, development APIs open rawtree.dev, and other APIs open their own origin. This also applies to rtree open and rtree status. RAWTREE_UI_URL still overrides it.
  • Bump the CLI to 0.8.0.

Depends on rawtreedb/rawtree-platform#1849, which moves the integrations API to organization IDs; merge after it deploys.


Note

Low Risk
Additive CLI surface and URL-mapping logic for browser opens; no changes to query, auth, or data paths.

Overview
Adds rtree integration list and rtree integration add slack so users can discover Slack integration IDs for workflow sinks and open the org integrations settings page to connect Slack. List hits the org integrations API and renders a table (or raw JSON with --json); add slack opens /{org}/~/settings#integrations in the browser.

UI base URLs are no longer fixed to rawtree.com: resolve_ui_base_url now takes the resolved API URL—hosted *.rawtree.com / *.rawtree.dev map to https://rawtree.com or https://rawtree.dev, and other APIs (e.g. localhost) use their request origin. RAWTREE_UI_URL still wins. This applies to rtree open, rtree status, and integration add.

Docs and workflow Slack sink help now point to rtree integration list. Version 0.8.0.

Reviewed by Cursor Bugbot for commit a50d520. Bugbot is set up for automated code reviews on this repo. Configure here.

`rtree open` and `rtree status` now link to the UI that matches the API in
use: rawtree.com for hosted APIs, rawtree.dev for development APIs, and the
API's own origin otherwise, such as a local gateway. RAWTREE_UI_URL still
overrides it.
Add `rtree integration list` to find the ID of a connected integration for
Slack workflow sinks, and `rtree integration add slack` to open the
organization's integration settings in the UI. Point the Slack sink help and
README to them.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit baf8169. Configure here.

Comment thread src/commands/integration.rs Resolved
Resolve the organization's ID before listing integrations, as service accounts
and federation issuers do, since the integrations API now takes the ID in its
path. `add slack` keeps the name, which the UI URL uses.
@jordiori
jordiori requested a review from rmorehig November 2, 2026 15:42
@rmorehig
rmorehig merged commit 725f522 into main Nov 4, 2026
8 checks passed
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.

2 participants