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

init: accept unambiguous app path and basename aliases for --app

Đang mở
#1,390 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/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ệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating the TypeScript entry point that parses --app and selects among discovered apps, then read its existing tests. Add coverage for nested paths, unique and duplicate basenames, and exact-match precedence; done means unambiguous aliases select the app while ambiguous basenames fail with matching paths listed.

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

Mô tả

CLI enhancement

Problem

Non-interactive monorepo selection can require the exact discovered display name. Common inputs such as --app apps/api or --app api fail when the discovered name differs, even when the target is unambiguous.

This behavior was bundled into draft PR getsentry/cli#1418, but it is independent from existing-Sentry detection and should be handled separately.

Expected behavior

  • Prefer an exact app name or exact normalized full path.
  • Accept a unique path basename as an alias.
  • If a basename matches multiple apps, fail and list the matching paths instead of choosing one.
  • Keep path matching scoped to the discovered apps.
  • Cover nested paths, duplicate basenames, and exact-match precedence in tests.
Ngôn ngữ chính
TypeScript
Star
938
Fork
166
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
156

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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 getsentry/toolkit

Tất cả issue của getsentry/toolkit

Issue tương tự

Thêm issue về TypeScript

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.