From 4db045664be5256bedd06b0c27754796c0cef11a Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Tue, 21 Apr 2026 15:12:51 -0500 Subject: [PATCH 1/2] ci: add stub workflow for review.agent discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- .github/workflows/review.agent.lock.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/review.agent.lock.yml diff --git a/.github/workflows/review.agent.lock.yml b/.github/workflows/review.agent.lock.yml new file mode 100644 index 000000000..eddce9168 --- /dev/null +++ b/.github/workflows/review.agent.lock.yml @@ -0,0 +1,29 @@ +# Stub workflow — enables discovery of review.agent.lock.yml so that +# `gh workflow run review.agent.lock.yml --ref ` works. +# The real workflow lives on the feature branch; --ref executes THAT version. +# This stub is safe to leave on main — it does nothing on its own. +# +# Once PR #118 (feat/expert-review-workflow) merges, this stub is replaced +# by the real compiled workflow and can be removed. + +name: "Expert Code Review" + +on: + workflow_dispatch: + inputs: + pr_number: + description: 'PR number to review' + required: true + type: number + +permissions: {} + +jobs: + stub: + runs-on: ubuntu-latest + steps: + - run: | + echo "This is a stub workflow for discovery only." + echo "Use --ref to run the real workflow from a feature branch." + echo "See PR #118 for the full implementation." + exit 1 From 6e94dce62e21015206cd1c7a934ffe00924cb91a Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Tue, 21 Apr 2026 15:20:12 -0500 Subject: [PATCH 2/2] fix: use if:false instead of exit 1 for cleaner skip 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> --- .github/workflows/review.agent.lock.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/review.agent.lock.yml b/.github/workflows/review.agent.lock.yml index eddce9168..edec9d95a 100644 --- a/.github/workflows/review.agent.lock.yml +++ b/.github/workflows/review.agent.lock.yml @@ -20,10 +20,7 @@ permissions: {} jobs: stub: + if: false runs-on: ubuntu-latest steps: - - run: | - echo "This is a stub workflow for discovery only." - echo "Use --ref to run the real workflow from a feature branch." - echo "See PR #118 for the full implementation." - exit 1 + - run: echo "Stub for discovery only. Use --ref to run the real workflow."