Skip to content

Commit c6262e1

Browse files
committed
Try fixing failing public interface job
1 parent 90b2eae commit c6262e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fastlane/Fastfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,14 @@ lane :validate_public_interface do
846846
header = '## Public Interface'
847847
content = "#{header}\n#{diff}"
848848

849+
# Truncate content to 65,000 characters if it exceeds the limit
850+
max_length = 65_000
851+
if content.length > max_length
852+
truncated_content = content[0, max_length - 100] # Leave room for truncation message
853+
truncated_content += "\n\n... (content truncated due to length limit of #{max_length} characters)"
854+
content = truncated_content
855+
end
856+
849857
# Post PR comment if running in CI
850858
pr_comment(text: content, edit_last_comment_with_text: header) if is_ci
851859

0 commit comments

Comments
 (0)