UNPKG

@pagopa/danger-plugin

Version:

Shared rules for DangerJS, used in the PagoPA projects

15 lines (14 loc) 655 B
/** * Implement methods for working with the title of a ticket / story */ import * as O from "fp-ts/lib/Option"; import * as TE from "fp-ts/TaskEither"; import { GenericTicket } from "../types"; export declare const getJiraIdFromTitle: (title: string) => O.Option<ReadonlyArray<string>>; export declare const getGenericTicketFromTitle: (title: string) => TE.TaskEither<Error, ReadonlyArray<GenericTicket>>; export declare const cleanTitle: (title: string) => string; export declare const splitTitle: (title: string) => O.Option<{ readonly taskId: string; readonly title: string; }>; export declare const composeTitle: (title: string) => string;