diff --git a/.github/workflows/re-draft-on-changes-requested.yml b/.github/workflows/re-draft-on-changes-requested.yml index b5fd7c19edc175..8eef421cb9094e 100644 --- a/.github/workflows/re-draft-on-changes-requested.yml +++ b/.github/workflows/re-draft-on-changes-requested.yml @@ -28,8 +28,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!) {