import { OctoKit } from '../api/octokit' ; import { getInput , getRequiredInput } from '../common/utils' ; import { Locker } from './Locker' ; import { Action } from '../common/Action' ; class LockerAction extends Action { id = 'Locker' ; async onTriggered ( github ) { await new Locker ( github , + getRequiredInput ( 'daysSinceClose' ) , + getRequiredInput ( 'daysSinceUpdate' ) , getInput ( 'ignoredLabel' ) || undefined , getInput ( 'ignoreLabelUntil' ) || undefined , getInput ( 'labelUntil' ) || undefined ) . run ( ) ; } } new LockerAction ( ) . run ( ) ;