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

[workshop-sync] workshop/28-orchestrate-workflows.md: dispatch-workflow example fails to compile — pr-reviewer lacks workflow_dispatch trigger

Đã đóng Phù hợp với người mới
#4,548 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/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-actions
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu từ khối on: của ví dụ pr-reviewer trong workshop/14b-pr-reviewer-workflow.md và bước dispatch-workflow trong workshop/28-orchestrate-workflows.md. Tái hiện lỗi bằng cách biên dịch orchestrator với gh aw compile; lệnh này sẽ báo rằng pr-reviewer thiếu workflow_dispatch. Chọn một trong ba cách sửa trong issue, sau đó biên dịch lại. Hoàn thành khi khẳng định thành công của checkpoint là đúng và nội dung mô tả khớp với hành vi sau khi biên dịch.

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

Mô tả

documentation

Workshop file reviewed

workshop/28-orchestrate-workflows.md

Problem

The step instructs learners to build a repo-orchestrator workflow that dispatches the pr-reviewer workflow (built in workshop/14b-pr-reviewer-workflow.md) via the dispatch-workflow safe-output:

safe-outputs:\n dispatch-workflow:\n workflows:\n - daily-status\n - pr-reviewer\n max: 1

The pr-reviewer workflow from step 14b only declares pull_request and slash_command triggers — it has no workflow_dispatch trigger.

Current correct behaviour (verified by reproduction)

I reproduced this locally with gh aw compile (v0.89.21, matching the latest gh-aw release). Compiling an orchestrator that lists a dispatch target without workflow_dispatch in its on: section fails with:

error: dispatch-workflow validation failed: dispatch-workflow: workflow 'pr-reviewer' does not support workflow_dispatch trigger (must include 'workflow_dispatch' in the 'on' section)

This means following the workshop step exactly as written — using the existing pr-reviewer workflow from step 14b as a dispatch target — produces a compile error, not the success state the checkpoint describes ("gh aw compile repo-orchestrator succeeds").

Suggested fix

Either:

  1. Add a note/step in 28-orchestrate-workflows.md instructing learners to add workflow_dispatch: to pr-reviewer's on: section (alongside its existing triggers) before using it as a dispatch target, or
  2. Update workshop/14b-pr-reviewer-workflow.md to include workflow_dispatch: in the on: block from the start so it is dispatch-ready for step 28, or
  3. Use a different pre-built workshop workflow as the dispatch target example that already supports workflow_dispatch.

Reference: gh aw compile-time validation for dispatch-workflow (confirmed via direct reproduction against the installed v0.89.21 CLI).

Generated by 🔍 Workshop Sync Check · copilot · auto · 217.4 AIC · ⌖ 6.44 AIC · ⊞ 9.2K · ◷

  • expires on Oct 14, 2026, 2:56 PM UTC
Ngôn ngữ chính
JavaScript
Star
53
Fork
35
Merge trung bình
13 giờ 50 phút
Pull request đã merge (30 ngày)
14

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.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 githubnext/gh-aw-workshop

Tất cả issue của githubnext/gh-aw-workshop

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.