From 4c077e1de2d34b460d4f714ab32366be19411c06 Mon Sep 17 00:00:00 2001 From: Mukundan Sundararajan Date: Fri, 28 Jan 2022 00:30:40 +0530 Subject: [PATCH] fix github action for dapr comment analyzer bot (#680) Signed-off-by: Mukundan Sundararajan Co-authored-by: Artur Souza --- .github/workflows/dapr_bot.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dapr_bot.yml b/.github/workflows/dapr_bot.yml index c1cb92306..0c2676c7a 100644 --- a/.github/workflows/dapr_bot.yml +++ b/.github/workflows/dapr_bot.yml @@ -20,7 +20,8 @@ jobs: if (!isFromPulls && commentBody && commentBody.indexOf("/assign") == 0) { if (!issue.assignees || issue.assignees.length === 0) { - await github.issues.addAssignees({ + // See https://github.com/actions/github-script#breaking-changes-in-v5 + await github.rest.issues.addAssignees({ owner: issue.owner, repo: issue.repo, issue_number: issue.number,