Skip to content

Commit 052fc72

Browse files
authored
Merge pull request #724 from peter-evans/fix-assignees
fix: use the correct assignees property
2 parents 34371f0 + ed00d46 commit 052fc72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ class GitHubHelper {
988988
// Apply assignees
989989
if (inputs.assignees.length > 0) {
990990
core.info(`Applying assignees '${inputs.assignees}'`);
991-
yield this.octokit.issues.addAssignees(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, labels: inputs.assignees }));
991+
yield this.octokit.issues.addAssignees(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { issue_number: pull.number, assignees: inputs.assignees }));
992992
}
993993
// Request reviewers and team reviewers
994994
const requestReviewersParams = {};

src/github-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class GitHubHelper {
141141
await this.octokit.issues.addAssignees({
142142
...this.parseRepository(baseRepository),
143143
issue_number: pull.number,
144-
labels: inputs.assignees
144+
assignees: inputs.assignees
145145
})
146146
}
147147

0 commit comments

Comments
 (0)