Contributing to str
January 8, 2026 ยท View on GitHub
Thanks for helping! Short, practical guide.
Quick start
- Fork, create a branch:
git switch -c feat/your-change. - Run
gleam formatandgleam testlocally. - Open a PR against
mainwith a short description and tests.
Setup
- Requirements: Gleam (see
gleam.toml)
Commands:
gleam format
gleam test
Commits
Use brief prefixes: feat:, fix:, chore:, test:, perf:.
Example: feat(display): add truncate_display
No strict enforcement, use these prefixes as a guideline, not a hard rule.
PR checklist
- Tests added/updated
-
gleam format&gleam testpass - Update
CHANGELOG.mdif behaviour changes - Document noteworthy changes in
README.md, docs/ or examples/
Deprecations
- Report breaking changes in an issue and add migration notes in PRs. See
DEPRECATIONS.mdif present.
Testing
- Add unit tests for edge cases (ZWJ, skin tones, combining marks, CJK, ambiguous widths).