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

Support retrieving specific repository files before executing script

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

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github, github-actions, javascript, typescript
Lĩnh vực
api, ci-cd

Hướng nghiên cứu

Start by reading the action's existing input handling and script execution flow. Determine how a files input could retrieve selected repository files through the GitHub API before the main script runs, and define completion as those files being available for require() without a full checkout.

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

Mô tả

enhancement

Is your feature request related to a problem? Please describe.

  1. Writing javascript in YAML is less than ideal. Most editors won't fully support syntax highlighting, linting, etc.
  2. Using the checkout action first, a user can require() a local script and run it, but performing a full checkout first for large repositories for workflows that only need to run a single script is less than optimal.

Describe the solution you'd like

  1. Add an additional input such as files which can be retrieved via the github API if not present, before the main script is run.

Describe alternatives you've considered

  1. Checking out the entire repository, then using require() and run.
  2. Using other 3rd party actions to load one or more repository files, then require() and run.
  3. Role our own to do the same thing
  4. Requesting actions/checkout add a files input to reduce retrieved content and use that here.

Additional context
I find writing actions and workflows, even using act, to be a painful experience in general. Any additional features of an action that ease the pain somewhat are greatly appreciated. Using multiple actions to simulate something that an action could do on its own works, but it's less than ideal.

Ngôn ngữ chính
TypeScript
Star
5k
Fork
586
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 actions/github-script

Tất cả issue của actions/github-script

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.