Enhancement: add a `junit` input to the GitHub Action
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
- 74/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, typescript
Hướng nghiên cứu
Start with action.yml and the action implementation, then read the baseline path validation and summary-out help probe; the issue names src/reporting/commands/scan.ts as the existing --junit entry point. Check the test/action-*.ts contract tests. Done when the optional input adds --junit only when set, rejects unsafe or conflicting paths, handles older CLI versions with a notice, and leaves default runs unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Difficulty: small
- Area: GitHub Action
Problem
vg scan already has --junit <file> (src/reporting/commands/scan.ts, around line 406). The composite action in action.yml maps max-score, fail-on-epss, baseline, and max-worsening to flags, but has no first-class junit input. Callers must stuff --junit … into args, which is easier to get wrong and is not documented next to the other gates.
Expected behaviour
Add an optional junit input (repo-relative output path). When it is set, pass --junit <path> to scan, after the same kind of path check used for baseline (inside the repository, not absolute, not ..). Do not default it (empty means no JUnit file). output / --out and junit must remain different files; if they resolve to the same path, fail the step with the same message the CLI already uses. Probe scan --help for --junit the way summary-out is probed, so an older image-tag gets a notice instead of a hard failure on an unknown flag.
Acceptance
action.ymldocuments the input and that it maps to--junit.- A unit/contract test in the
test/action-*.tsstyle asserts the flag is added only when the input is set, is omitted when empty, and is rejected when it equalsoutput. - Default runs (no
junitinput) are unchanged.
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 3
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vibgrate/cli
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
area: documentation status: in progress type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Oddmash/oddmash-ui#222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
appium/appium-wincore-driver#169 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
india-ultimate/hub#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation Entwickler
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
Maintainer thường phản hồi trong vòng 1 ngày