Workflow syntax reference doesn't document top-level `description` key

Đang mở Phù hợp với người mới
#46,853 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
74/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, yaml
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với tài liệu tham khảo cú pháp workflow trên trang tài liệu được liên kết và so sánh các khóa cấp cao nhất được ghi lại với mục description trong schema workflow được liên kết. Xem hướng dẫn đóng góp tài liệu của repository để tìm tệp nguồn và quy trình xem trước. Hoàn thành khi tài liệu tham khảo giải thích liệu description ở cấp gốc có được hỗ trợ hay không, mục đích của nó là gì và liệu nó có xuất hiện trong UI hay không.

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

Mô tả

builder persona
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax

What part(s) of the article would you like to see updated?

The top-level keys documented are name, run-name, on, permissions, env, defaults, concurrency, cache-mode and jobs. There's no entry for description.

GitHub's own workflow schema has accepted a root-level description since January 2025:

Could the reference add a description section saying whether it's supported, what it's for (e.g. describing reusable workflows), and whether it's shown anywhere in the UI?

Additional information

Because it isn't documented, third-party tools that follow the docs reject it. actionlint (v1.7.12, latest) reports unexpected key "description" for "workflow" section, and the SchemaStore github-workflow.json schema, used by many editors' YAML validation, doesn't allow it either. Meanwhile the official GitHub Actions VS Code extension accepts it. We ran into this reviewing a reusable workflow, where different tools gave opposite answers about whether the file was valid.

Ngôn ngữ chính
TypeScript
Star
21.3k
Fork
69.4k
Merge trung bình
12 giờ 12 phút
Pull request đã merge (30 ngày)
84

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 github/docs

Tất cả issue của github/docs

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.