mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
chore: workflow call with no inputs
This commit is contained in:
parent
bfb68c3464
commit
f487f93441
7
.github/workflows/check-team-approval.yml
vendored
7
.github/workflows/check-team-approval.yml
vendored
@ -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}`);
|
||||||
|
|
||||||
|
2
.github/workflows/required-reviewers.yml
vendored
2
.github/workflows/required-reviewers.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user