Add a `changed-files-only` input

Đang mở
#22 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ó
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, javascript
Lĩnh vực
ci-cd

Hướng nghiên cứu

Read action.yml, src/action.js, and src/diff.js to trace how inputs and scanned files are handled; use test/diff.test.js as the starting point for verification. Take changed files from the pull request event, ignore deleted files, and warn while ignoring the input for non-pull-request events. Update README.md and run npm test -- test/diff.test.js; done when the acceptance criteria pass.

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

Mô tả

enhancement wave

Context

Scanning the whole workspace on every pull request is wasteful and reports findings the author did not touch. A diff-scoped mode would keep the check focused on the change.

Scope

  • action.yml
  • src/action.js
  • src/diff.js
  • test/diff.test.js
  • README.md

Acceptance criteria

  • When enabled, only files changed against the base branch are scanned.
  • The file list comes from the pull request event, not from git diff guessing.
  • Deleted files are ignored.
  • When the event is not a pull request, the input is ignored with a warning.

Verification

npm test -- test/diff.test.js

Complexity

Large (1 day)

Part of Stellar Wave. Comment to claim this issue before starting.

Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
7 giờ 28 phút
Pull request đã merge (30 ngày)
10

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

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 codepacct/codepact-action

Tất cả issue của codepacct/codepact-action

Issue tương tự

Thêm issue về JavaScript

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.