Repository navigation
Add integration commands - #98
Merged
Merged
Conversation
`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.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Slack workflow sinks need the ID of a connected integration, but the CLI had no way to find one or to connect Slack.
rtree integration listandrtree integration add slack.listresolves the organization's ID, likeservice-account.add slackopens 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.rtree integration list.rawtree.com, development APIs openrawtree.dev, and other APIs open their own origin. This also applies tortree openandrtree status.RAWTREE_UI_URLstill overrides it.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 listandrtree integration add slackso 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#integrationsin the browser.UI base URLs are no longer fixed to
rawtree.com:resolve_ui_base_urlnow takes the resolved API URL—hosted*.rawtree.com/*.rawtree.devmap tohttps://rawtree.comorhttps://rawtree.dev, and other APIs (e.g. localhost) use their request origin.RAWTREE_UI_URLstill wins. This applies tortree 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.