branch-remover
Version:
A small application for quickly removing unnecessary branches from GitHub.
26 lines • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.branchRemoveCancelationReasonFormatter = void 0;
const Core_1 = require("../Core");
const branchRemoveCancelationReasonFormatter = (value) => {
switch (value) {
case Core_1.BranchRemoveCancelationReason.Other:
return 'undefined';
case Core_1.BranchRemoveCancelationReason.Ignored:
return 'matches an ignored value';
case Core_1.BranchRemoveCancelationReason.BranchNotFound:
return 'branch details not found';
case Core_1.BranchRemoveCancelationReason.MergeDateOutOfRange:
return 'merge date out of the allowed range';
case Core_1.BranchRemoveCancelationReason.UpdateDateOutOfRange:
return 'update date out of the allowed range';
case Core_1.BranchRemoveCancelationReason.CanceledByUser:
return 'canceled by user';
case Core_1.BranchRemoveCancelationReason.CanceledByBeforeHandler:
return 'canceled by before handler';
default:
return Core_1.BranchRemoveCancelationReason[value];
}
};
exports.branchRemoveCancelationReasonFormatter = branchRemoveCancelationReasonFormatter;
//# sourceMappingURL=BranchRemoveCancelationReasonFormatter.js.map