Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add diff prioritization and truncation with notices

Đang mở
#190 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
devtools

Hướng nghiên cứu

Start by tracing the existing MAX_TOKENS handling that excludes oversized files, then read the linked context in #183. Identify where diffs are ordered and rendered. Done means code, documentation, and test files receive the stated priority, oversized diffs are partially retained, and truncated files include the specified notice.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When total diff exceeds token limits, we should prioritize core logic files over documentation or tests, and truncate individual file diffs with a notice like:

... [diff truncated for length]

Currently, files exceeding the MAX_TOKENS limit are simply excluded entirely. We need a more nuanced approach that:

  1. Prioritizes certain file types (code > docs > tests)
  2. Truncates large diffs instead of excluding them entirely
  3. Appends truncation notices

Originally identified in #183 - Smart Token Budgeting & Large Diff Truncation.

Ngôn ngữ chính
Go
Star
0
Fork
0
Merge trung bình
18 giờ 49 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rm-hull/git-commit-summary

Tất cả issue của rm-hull/git-commit-summary

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.