From ed00d4629c1bfff17f359aaa73b6160ed59c2a94 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Wed, 10 Feb 2021 09:00:23 +0900 Subject: [PATCH] fix: use the correct assignees property --- dist/index.js | 2 +- src/github-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 14193bf589..0a288f4533 100644 --- a/dist/index.js +++ b/dist/index.js @@ -988,7 +988,7 @@ class GitHubHelper { // Apply assignees if (inputs.assignees.length > 0) { core.info(`Applying assignees '${inputs.assignees}'`); - yield this.octokit.issues.addAssignees(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, labels: inputs.assignees })); + yield this.octokit.issues.addAssignees(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, assignees: inputs.assignees })); } // Request reviewers and team reviewers const requestReviewersParams = {}; diff --git a/src/github-helper.ts b/src/github-helper.ts index b9f18637cc..4debadc9c5 100644 --- a/src/github-helper.ts +++ b/src/github-helper.ts @@ -141,7 +141,7 @@ export class GitHubHelper { await this.octokit.issues.addAssignees({ ...this.parseRepository(baseRepository), issue_number: pull.number, - labels: inputs.assignees + assignees: inputs.assignees }) }