code: function smartTruncate(input) {
    if (input.length < 60000) {
      return input;
    }
    const releaseNotesMatch = input.match(
      new RegExp(`### Release Notes.*### ${appName} configuration`, 'ms')
    );
    // istanbul ignore if
    if (releaseNotesMatch) {
      const divider = `</details>\n\n---\n\n### ${appName} configuration`;
      const [releaseNotes] = releaseNotesMatch;
      const nonReleaseNotesLength =
        input.length - releaseNotes.length - divider.length;
      const availableLength = 60000 - nonReleaseNotesLength;
      return input.replace(
        releaseNotes,
        releaseNotes.slice(0, availableLength) + divider
      );
    }
    return input.substring(0, 60000);
  }
docs: istanbul ignore next