Skip to content

Commit

Permalink
Merge pull request #724 from peter-evans/fix-assignees
Browse files Browse the repository at this point in the history
fix: use the correct assignees property
  • Loading branch information
peter-evans authored Feb 10, 2021
2 parents 34371f0 + ed00d46 commit 052fc72
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 052fc72

Please sign in to comment.