Skip to content

Conversation

@rianjs
Copy link
Contributor

@rianjs rianjs commented Jan 29, 2026

Summary

Replace local truncate() function with shared view.Truncate() in jtk issues package.

Changes

  • Update get.go and types.go to import shared view package
  • Replace truncate(s, n) calls with view.Truncate(s, n)
  • Remove the local truncate() function definition

Test plan

  • All jtk tests pass
  • Lint passes

Closes #21

🤖 Generated with Claude Code

Replace local truncate() function with shared view.Truncate().
The duplicate was in tools/jtk/internal/cmd/issues/get.go.

Closes #21

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rianjs rianjs merged commit 9a2cd38 into main Jan 29, 2026
7 checks passed
@rianjs rianjs deleted the refactor/21-remove-duplicate-helpers branch January 29, 2026 20:57
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.

refactor: remove duplicate helper functions

2 participants