chore: workflow call with no inputs

This commit is contained in:
Zack Pollard 2025-07-08 15:22:19 +01:00
parent bfb68c3464
commit f487f93441
2 changed files with 1 additions and 8 deletions

View File

@ -2,11 +2,6 @@ name: Check Team Approval
on: on:
workflow_call: workflow_call:
inputs:
pr_number:
required: true
type: number
description: 'Pull request number to check'
outputs: outputs:
has_approval: has_approval:
description: 'Whether the PR has approval from a team/admin member' description: 'Whether the PR has approval from a team/admin member'
@ -28,7 +23,7 @@ jobs:
with: with:
script: | script: |
const { owner, repo } = context.repo; const { owner, repo } = context.repo;
const prNumber = ${{ inputs.pr_number }}; const prNumber = context.payload.pull_request.number;
console.log(`Checking reviews for PR #${prNumber}`); console.log(`Checking reviews for PR #${prNumber}`);

View File

@ -7,8 +7,6 @@ on:
jobs: jobs:
check-member-review: check-member-review:
uses: ./.github/workflows/check-team-approval.yml uses: ./.github/workflows/check-team-approval.yml
with:
pr_number: ${{ github.event.pull_request.number }}
permissions: permissions:
pull-requests: read pull-requests: read
contents: read contents: read