Skip to content

fix(product-docs): limit sync PR body length#258

Merged
Terry-Mao merged 1 commit into
mainfrom
fix/product-doc-body-too-long-257
Jun 9, 2026
Merged

fix(product-docs): limit sync PR body length#258
Terry-Mao merged 1 commit into
mainfrom
fix/product-doc-body-too-long-257

Conversation

@Terry-Mao

Copy link
Copy Markdown
Owner

Summary

  • Cap generated product docs sync PR body/comment markdown before calling GitHub.
  • Summarize only recent ledger decisions and truncate oversized reason/patch fields.
  • Document the length guard in product docs raw/wiki.

Validation

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s .github/aicodingflow-tests -p 'test_product_docs_sync.py'
  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s .github/aicodingflow-tests
  • PYTHONPYCACHEPREFIX=/tmp/aicodingflow-pycache python3 -m py_compile .github/scripts/write_product_docs_sync_pr_body.py .github/aicodingflow-tests/test_product_docs_sync.py
  • git diff --check

Fixes #257

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

未发现需要阻塞合并的问题。

@Terry-Mao
Terry-Mao merged commit a62a65c into main Jun 9, 2026
3 checks passed
@Terry-Mao
Terry-Mao deleted the fix/product-doc-body-too-long-257 branch June 9, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Product doc body 太长了,会直接报错

1 participant