reg-notify-gitlab-plugin
Version:
Notify reg-suit result to GitLab repository
17 lines (16 loc) • 1.02 kB
TypeScript
import { GitLabApiClient } from "./gitlab-api-client";
import { NotifyParams, PluginLogger } from "reg-suit-interface";
export declare type Context = {
noEmit: boolean;
client: GitLabApiClient;
logger: PluginLogger;
notifyParams: NotifyParams;
projectId: string;
shortDescription?: boolean;
};
export declare const COMMENT_MARK = "<!-- reg-notify-gitlab-plugin posted -->";
export declare const DESC_BODY_START_MARK = "<!-- reg-notify-gitlab-plugin posted -->";
export declare const DESC_BODY_END_MARK = "<!-- reg-notify-gitlab-plugin posted end -->";
export declare function commentToMergeRequests({ noEmit, logger, client, notifyParams, projectId, shortDescription, }: Context): Promise<void>;
export declare function addDiscussionToMergeRequests({ noEmit, logger, client, notifyParams, projectId, shortDescription, }: Context): Promise<void>;
export declare function appendOrUpdateMergerequestsBody({ noEmit, logger, client, notifyParams, projectId, shortDescription, }: Context): Promise<void>;