Skip to content

Commit

Permalink
fix: use the correct assignees property
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Feb 10, 2021
1 parent 34371f0 commit ed00d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down
2 changes: 1 addition & 1 deletion src/github-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

Expand Down

0 comments on commit ed00d46

Please sign in to comment.