Skip to content

Add description param to comment()/propose() with label/desc split by 1024 char boundary#10

Merged
iWedmak merged 4 commits into
masterfrom
feature/comment-desc-split
Jul 14, 2026
Merged

Add description param to comment()/propose() with label/desc split by 1024 char boundary#10
iWedmak merged 4 commits into
masterfrom
feature/comment-desc-split

Conversation

@iWedmak

@iWedmak iWedmak commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Added helper _split_label_desc() that splits text exceeding 1024 chars at word boundary
  • comment() now accepts optional description parameter
  • propose() applies same split logic for consistency
  • progress() inherits from comment() automatically
  • Version bumped to 2.35.2

Acceptance

  • comment --label short → label=short, desc=None
  • comment --label <2000> → label≈1024 (word boundary), description=tail
  • comment --desc <2000> → label=desc[:1024], description=tail
  • comment --label X --desc Y → label=X, desc=Y (as-is)
  • propose --label/--desc — analogous split
  • 93/93 tests passing

Commits

31d1466, b8b3bc6

ceki-plugin added 4 commits July 11, 2026 14:34
…undary

- Add _split_label_desc() helper: split long text (>1024) at word boundary
- comment(): add description param, apply split before payload
- propose(): apply split for consistency with long labels
- progress(): inherits automatically via comment() wrapper
- Bump version to 2.35.2

Acceptance:
- comment --label "short" → label=short, desc=None
- comment --label <2000 char> → label≈1024 (word boundary), description=tail
- comment --desc <2000> (no label) → label=desc[:1024], description=tail
- comment --label X --desc Y → label=X, desc=Y (both as-is)
- propose --label/--desc — same split logic
Replace test_comment_no_description_kwarg with test_comment_accepts_description_with_split:
- Test that comment() accepts description parameter
- Test that long text (>1024) is split at word boundary
- Test that both short label and description are passed as-is
- Test split behavior for long label and long description separately
All 93 tests pass.
@iWedmak iWedmak merged commit b348b51 into master Jul 14, 2026
3 checks passed
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.

1 participant