ci: add stub workflow for review.agent discovery#120
Conversation
GitHub Actions requires workflow_dispatch workflows to exist on the default branch before they can be triggered via API/CLI. This stub enables discovery so that the real workflow on feat/expert-review-workflow can be dispatched with --ref. The stub exits with failure if run directly — it only serves as a discovery placeholder. Once PR #118 merges, it will be replaced by the real compiled workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a minimal placeholder GitHub Actions workflow on main so workflow_dispatch can be discovered, enabling gh workflow run ... --ref <branch> to execute the real workflow defined on a feature branch (per PR #118).
Changes:
- Introduces a stub
review.agent.lock.ymlwith aworkflow_dispatchtrigger andpr_numberinput. - Adds a single stub job that prints guidance and exits non-zero to prevent accidental direct use.
| pr_number: | ||
| description: 'PR number to review' | ||
| required: true | ||
| type: number |
There was a problem hiding this comment.
workflow_dispatch inputs don't support type: number (supported types are typically string (default), boolean, choice, environment). Using an unsupported type can make the workflow invalid and prevent GitHub from discovering/dispatching it. Suggest removing type: entirely (defaults to string) or switching to type: string and letting the caller pass numeric text.
| type: number | |
| type: string |
Shows as "skipped" in Actions UI instead of a red failure if accidentally triggered without --ref. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Re: Copilot suggestion to change Not a valid concern — The real workflow on |
Summary
Adds a minimal stub
review.agent.lock.ymlto main so that GitHub Actions can discover theworkflow_dispatchtrigger. This enables testing the real review workflow from the feature branch (feat/expert-review-workflow, PR #118) using:Why this is needed
GitHub requires
workflow_dispatchworkflows to exist on the default branch before they can be triggered via API/CLI/UI. The real workflow only exists onfeat/expert-review-workflow(PR #118).What it does
--refcan dispatch the real workflowSafe to merge
permissions: {}— no permissions granted