mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
396ceb34bb
Linear's new Diffs feature exposes pull request reviews at
linear.review/{owner}/{repo}/pull/{number}, mirroring GitHub pull request
urls. Pasting such a url into a document can now be converted to a mention
that renders with pull request state, matching the GitHub plugin.
Linear's public API does not expose pull requests directly yet, so the
unfurl reads the pull request data Linear syncs onto the attachments of
linked issues via the attachmentsForURL query.
https://claude.ai/code/session_01F9cLTRp6WsFHDxGtd5euGW
19 lines
545 B
TypeScript
19 lines
545 B
TypeScript
import { createLazyComponent } from "~/components/LazyLoad";
|
|
import { Hook, PluginManager } from "~/utils/PluginManager";
|
|
import config from "../plugin.json";
|
|
import Icon from "./Icon";
|
|
|
|
PluginManager.add([
|
|
{
|
|
...config,
|
|
type: Hook.Settings,
|
|
value: {
|
|
group: "Integrations",
|
|
icon: Icon,
|
|
description:
|
|
"Connect your Linear account to Outline to enable rich, realtime, issue and pull request review previews inside documents.",
|
|
component: createLazyComponent(() => import("./Settings")),
|
|
},
|
|
},
|
|
]);
|