From 97f2f392dda2500dfc3ca4f05d8fafcf16c0ab78 Mon Sep 17 00:00:00 2001
From: Bob Callaway <bobcallaway@users.noreply.github.com>
Date: Sat, 8 Jan 2022 12:25:36 -0500
Subject: [PATCH] update API calls to v5 (#591)

Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
---
 .github/workflows/milestone.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/milestone.yml b/.github/workflows/milestone.yml
index 4aee20b..cd107c3 100644
--- a/.github/workflows/milestone.yml
+++ b/.github/workflows/milestone.yml
@@ -34,7 +34,7 @@ jobs:
               console.log('PR has existing milestone, skipping.');
               return;
             }
-            milestones = await github.issues.listMilestones({
+            milestones = await github.rest.issues.listMilestones({
               owner: context.repo.owner,
               repo: context.repo.repo,
               state: 'open',
@@ -45,7 +45,7 @@ jobs:
               console.log('There are no milestones, skipping.');
               return;
             }
-            await github.issues.update({
+            await github.rest.issues.update({
               owner: context.repo.owner,
               repo: context.repo.repo,
               issue_number: context.payload.pull_request.number,
-- 
GitLab