mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
Fix GitLab webhook integration updates (#13764)
* fix GitLab webhook integration updates * support shared GitLab webhook credentials
This commit is contained in:
1 parent
e43ffc061c
commit
85deb8934b
6 files changed
+84
-25
No files matched your search
@@ -5,10 +5,11 @@ import { Hook, PluginManager } from "@server/utils/PluginManager";
|
||||
type Props = {
|
||||
headers: Record<string, unknown>;
|
||||
payload: Record<string, unknown>;
|
||||
teamId: string | null;
|
||||
};
|
||||
|
||||
export default class GitLabWebhookTask extends BaseTask<Props> {
|
||||
public async perform({ headers, payload }: Props): Promise<void> {
|
||||
public async perform({ headers, payload, teamId }: Props): Promise<void> {
|
||||
const plugins = PluginManager.getHooks(Hook.IssueProvider);
|
||||
const plugin = plugins.find(
|
||||
(p) => p.value.service === IntegrationService.GitLab
|
||||
@@ -21,6 +22,7 @@ export default class GitLabWebhookTask extends BaseTask<Props> {
|
||||
await plugin.value.handleWebhook({
|
||||
headers,
|
||||
payload,
|
||||
teamId,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user