public static formChangeLabel()

in src/bll/utils/utils.ts [120:130]


    public static formChangeLabel(change: Change): string {
        const descriptionLines = change.myDescription.split("\n");
        const firstDescriptionLine = descriptionLines[0].trim();
        const firstLineCharacters = firstDescriptionLine.substring(0, 30);
        const shouldAddDots = (descriptionLines.length > 1) || (firstDescriptionLine !== firstLineCharacters);
        let shownDescription = firstLineCharacters + (shouldAddDots ? "..." : "");
        shownDescription = shownDescription ? shownDescription : "<no comment>";
        const myVersionControlName = change.myVersionControlName;
        const changesCount = `${change.myChangesCount} file${change.myChangesCount === 0 ? "s" : ""}`;
        return `${shownDescription}\n${myVersionControlName} | ${changesCount}`;
    }