export class CheckFollowupNeededUseCase {
    trackingGateway;
    constructor(trackingGateway) {
        this.trackingGateway = trackingGateway;
    }
    execute(input) {
        const mr = this.trackingGateway.getByNumber(input.projectPath, input.mrNumber, input.platform);
        if (!mr)
            return false;
        if (mr.state === 'merged' || mr.state === 'closed')
            return false;
        if (!mr.lastPushAt || !mr.lastReviewAt)
            return false;
        return new Date(mr.lastPushAt).getTime() > new Date(mr.lastReviewAt).getTime();
    }
}
//# sourceMappingURL=checkFollowupNeeded.usecase.js.map