Fix another bug in the backport action (#53187)
authorDoug Bunting <6431421+dougbu@users.noreply.github.com>
Mon, 24 May 2021 18:32:15 +0000 (11:32 -0700)
committerGitHub <noreply@github.com>
Mon, 24 May 2021 18:32:15 +0000 (11:32 -0700)
- #52938 was incomplete
- see also dotnet/aspnetcore#32930

eng/actions/backport/index.js

index 775c910..49a2c74 100644 (file)
@@ -86,7 +86,7 @@ async function run() {
 
     if (git_am_failed) {
       const git_am_failed_body = `@${github.context.payload.comment.user.login} backporting to ${target_branch} failed, the patch most likely resulted in conflicts:\n\n\`\`\`shell\n${git_am_output}\n\`\`\`\n\nPlease backport manually!`;
-      await octokit.issues.createComment({
+      await octokit.rest.issues.createComment({
         owner: repo_owner,
         repo: repo_name,
         issue_number: pr_number,