From 1fbe8332640a9527d37f6b50160ab7a39a9d4902 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 15 Oct 2024 11:59:48 -0700 Subject: [PATCH] Update re-draft-on-changes-requested.yml --- .github/workflows/re-draft-on-changes-requested.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/re-draft-on-changes-requested.yml b/.github/workflows/re-draft-on-changes-requested.yml index d7a1581c8cad2e..1a38a566959c88 100644 --- a/.github/workflows/re-draft-on-changes-requested.yml +++ b/.github/workflows/re-draft-on-changes-requested.yml @@ -27,8 +27,8 @@ jobs: repo: context.repo.repo, pull_number, }); - if (!pullRequest.data.node_id) throw new Error(`pullRequestId no found for '${pull_number}'`); - return pullRequest.data.node_id; + if (!pullRequest.data.id) throw new Error(`pullRequestId no found for '${pull_number}'`); + return pullRequest.data.id; } const query = ` mutation($id: ID!) {