fix: add pr_number input to dual-approval-check workflow

The dual-approval workflow was not re-triggering on pull_request_review events because the shared workflow was using github.event.pull_request.number which is not available in workflow_call context.

This change adds a required pr_number input to the reusable workflow.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Hugh Hackman
2026-03-25 12:51:52 +00:00
parent b11bc453dd
commit c31be7ef25
+5 -1
View File
@@ -20,6 +20,10 @@ name: Dual Approval Check
on:
workflow_call:
inputs:
pr_number:
description: "Pull request number"
required: true
type: number
cto-reviewer:
description: "GitHub username of the CTO reviewer"
required: false
@@ -43,7 +47,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
CTO_REVIEWER: ${{ inputs.cto-reviewer }}
QA_REVIEWER: ${{ inputs.qa-reviewer }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_NUMBER: ${{ inputs.pr_number }}
REPO: ${{ github.repository }}
run: |
if [ -z "${PR_NUMBER}" ]; then