Skip to content

Commit 8bd4e6d

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

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
@@ -845,6 +845,14 @@ lane :validate_public_interface do
845845
# Generate markdown table for the PR comment
846846
header = '## Public Interface'
847847
content = "#{header}\n#{diff}"
848+
849+
# Truncate content to 65,000 characters if it exceeds the limit
850+
max_length = 65000
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
848856

849857
# Post PR comment if running in CI
850858
pr_comment(text: content, edit_last_comment_with_text: header) if is_ci

0 commit comments

Comments
 (0)