The template for `github/workflows/ci-template-check.yml` has been updated

Đang mở Phù hợp với người mới
#274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/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, python, yaml
Lĩnh vực
ci-cd

Hướng nghiên cứu

So sánh .github/workflows/ci-template-check.yml với diff được cung cấp và template dùng chung được liên kết tại templates/github/workflows/ci-template-check.yml. Bắt đầu bằng cách xem xét workflow hiện có và các thay đổi được đề xuất; đồng thời kiểm tra toàn bộ diff của template để tìm các quy ước liên quan khác. Hoàn tất khi mở pull request với các thay đổi phù hợp hoặc đóng issue nếu không có thay đổi nào cần áp dụng.

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

Mô tả

Templating

The template for .github/workflows/ci-template-check.yml has been updated; see the diff below. Please either:

  • Action this issue with a pull request applying some/all of these changes to .github/workflows/ci-template-check.yml[^1].
  • Close this issue if none of these changes are appropriate for this repo.

Also consider reviewing a full diff between the template and .github/workflows/ci-template-check.yml, in case other valuable shared conventions have previously been missed.

File Links

Diff

diff --git a/templates/github/workflows/ci-template-check.yml b/templates/github/workflows/ci-template-check.yml
new file mode 100644
index 0000000..674c962
--- /dev/null
+++ b/templates/github/workflows/ci-template-check.yml
@@ -0,0 +1,20 @@
+# Checks if a PR makes any changes that ought to be shared via templating.
+# See the called workflow in the scitools/workflows repo for more details.
+
+name: ci-template-check
+
+on:
+  pull_request_target:  # zizmor: ignore[dangerous-triggers]
+    branches:
+      - main
+
+permissions: {}
+
+jobs:
+  prompt-share:
+    uses: scitools/workflows/.github/workflows/ci-template-check.yml@28aea7a3a1eb58e1bbf9b1d9c8cb2de07892b67e
+    secrets:
+      AUTH_APP_ID: ${{ secrets.AUTH_APP_ID }}
+      AUTH_APP_PRIVATE_KEY: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
+    with:
+      pr_number: ${{ github.event.pull_request.number }}

[^1]: Include this text in the PR body to avoid any prompts about applying your changes back to the template!
@scitools-templating: please no share prompt

Ngôn ngữ chính
Python
Star
16
Fork
6
Merge trung bình
2 ngày 20 giờ
Pull request đã merge (30 ngày)
2

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 SciTools/ncdata

Tất cả issue của SciTools/ncdata

Issue tương tự

Thêm issue về Python

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.