Browse Source

Fix another bug in the backport action (#32930)

- #32927 was incomplete
- dotnet/runtime version of index.js is also incorrect
Doug Bunting 4 years ago
parent
commit
02f6494fda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      eng/actions/backport/index.js

+ 1 - 1
eng/actions/backport/index.js

@@ -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,