diff --git a/.github/workflows/closing-issues-check.yml b/.github/workflows/closing-issues-check.yml index 48ce36a45d67..1f03fe22fab3 100644 --- a/.github/workflows/closing-issues-check.yml +++ b/.github/workflows/closing-issues-check.yml @@ -33,9 +33,9 @@ jobs: id: get_closing_issues with: query: | - query closingIssues($owner: String!, $repo: String!, $prNumber: Int!) { + query closingIssues($owner: String!, $repo: String!, $pr_number: Int!) { repository(owner:$owner,name:$repo) { - pullRequest(number: $prNumber) { + pullRequest(number: $pr_number) { id closingIssuesReferences (first: 50) { edges { @@ -47,9 +47,9 @@ jobs: } } } - owner: ${{ github.event.repository.owner.name }} - repo: ${{ github.event.repository.name }} - prNumber: ${{ github.event.pull_request.number }} + owner: ${{ github.event.pull_request.base.repo.owner.name }} + repo: ${{ github.event.pull_request.base.repo.name }} + pr_number: ${{ github.event.pull_request.number }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: echo '${{ steps.get_closing_issues.outputs.data }}'