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 }) }