Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#4,548 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
documentation

Direzione di ricerca

Inizia dal blocco on: dell'esempio pr-reviewer in workshop/14b-pr-reviewer-workflow.md e dal passaggio dispatch-workflow in workshop/28-orchestrate-workflows.md. Riproduci l'errore compilando l'orchestratore con gh aw compile, che dovrebbe segnalare che a pr-reviewer manca workflow_dispatch. Scegli una delle tre correzioni indicate nella issue, poi ricompila. È fatto quando l'affermazione di successo del checkpoint è vera e il testo corrisponde al comportamento compilato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
53
Fork
35
Merge medio
13h 50m
PR unite (30g)
14

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di githubnext/gh-aw-workshop

Tutte le issue di githubnext/gh-aw-workshop

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.