import { MergeRequestPayload } from '../../schemas/gitlab/merge-request-payload' ; import { Reaction , ReactionCanHandleOptions , ReactionHandleOptions } from '../github/reaction' ; export class MergeRequestMerged extends Reaction < MergeRequestPayload > { getStreamLabsMessage ( { payload } ) { return `The merge request from *${ payload . user . username }* has been merged into *${ payload . repository . name }*` ; } getTwitchChatMessage ( { payload } ) { return `The merge request from ${ payload . user . username } has been merged into ${ payload . object_attributes . url }` ; } canHandle ( { payload , event } ) { return event === 'Merge Request Hook' && payload . object_attributes . state === 'merged' ; } }