From 55fcee407aa3d9c4513d544257a1a1eb5cb42578 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:09:22 -0700 Subject: [PATCH] Fix broken PR issue close command in GHA (#55131) --- .github/workflows/pr-modified-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-modified-files.yml b/.github/workflows/pr-modified-files.yml index f0940bb8cec..09841f73fc6 100644 --- a/.github/workflows/pr-modified-files.yml +++ b/.github/workflows/pr-modified-files.yml @@ -99,7 +99,7 @@ jobs: MESSAGE+=" You can [read more here](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#contributing-libdts-fixes)." MESSAGE+=" For house-keeping purposes, this pull request will be closed." - gh pr close $issue --repo ${{ github.repository }} --comment "$MESSAGE" + gh pr close ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --comment "$MESSAGE" exit 1 # Stop the pipeline; we just closed the PR. fi