feat(linear): add Vercel Connect support#649
Open
bensabic wants to merge 3 commits into
Open
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
accessToken now accepts a () => string | Promise<string> resolver in addition to a string, so tokens can be sourced from Vercel Connect at runtime, and a new optional webhookVerifier verifies inbound webhooks (e.g. Connect trigger-forwarded requests via a Vercel OIDC token) in place of the Linear webhook secret. Connect-mode outbound calls outside webhook handling are supported via withInstallation(). Pair with connectLinearAdapter() from @vercel/connect/chat. Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
Wire the Linear adapter via connectLinearAdapter() from @vercel/connect/chat (gated on LINEAR_CONNECTOR), replacing the API-key / OAuth / webhook-secret auth and the now-obsolete Linear OAuth install routes, and update the env docs. The adapter resolves its bot identity from the Connect access token (viewer query), so no bot-user-id env var is needed. Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
577abf7 to
e3a7726
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Excluding .git from the deployment broke the fumadocs lastModified() plugin, which shells out to `git log` and failed the docs build with exit status 128. .git isn't the upload-size problem (node_modules is), so keep it. Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
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.
Adds Vercel Connect support to the Linear adapter:
accessTokennow accepts a() => string | Promise<string>resolver in addition to a string, so tokens can be sourced from Vercel Connect at runtime.webhookVerifierverifies inbound webhooks (Connect trigger-forwarded requests via a Vercel OIDC token) in place of the Linear webhook secret.withInstallation(organizationId, fn).Pair with
connectLinearAdapter()from@vercel/connect/chat. Includes a changeset (@chat-adapter/linearminor).Stacked on #647 (base
vercel-connect/base).Companion
@vercel/connect/chatsubpath: vercel/vercel#16826.