Files
outline/plugins/gitlab/server/index.ts
T
Salihu cad670f19c feat: GitLab integration (#10861)
Co-authored-by: Tom Moor <tom@getoutline.com>
closes #6795
2026-02-21 17:52:27 -05:00

28 lines
671 B
TypeScript

import { Minute } from "@shared/utils/time";
import { PluginManager, Hook } from "@server/utils/PluginManager";
import config from "../plugin.json";
import { GitLabIssueProvider } from "./GitLabIssueProvider";
import router from "./api/gitlab";
import { GitLab } from "./gitlab";
import GitLabWebhookTask from "./tasks/GitLabWebhookTask";
PluginManager.add([
{
...config,
type: Hook.API,
value: router,
},
{
type: Hook.IssueProvider,
value: new GitLabIssueProvider(),
},
{
type: Hook.UnfurlProvider,
value: { unfurl: GitLab.unfurl, cacheExpiry: Minute.seconds },
},
{
type: Hook.Task,
value: GitLabWebhookTask,
},
]);