Skip to content

Commit d33d232

Browse files
committed
Fix API for adding custom label
1 parent 10f33f5 commit d33d232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {readFileSync} = require("fs");
77

88
// Effectively the main function
99
async function run() {
10-
core.info("Running version 1.5.1")
10+
core.info("Running version 1.5.4")
1111

1212
// Tell folks they can merge
1313
if (context.eventName === "pull_request_target") {
@@ -62,7 +62,7 @@ async function commentOnMergablePRs() {
6262
const labelToAdd = core.getInput('if_no_maintainers_add_label')
6363
if (labelToAdd) {
6464
const labelConfig = { name: labelToAdd, color: Math.random().toString(16).slice(2, 8) }
65-
await createOrAddLabel(octokit, thisRepo, labelConfig)
65+
await createOrAddLabel(octokit, { ...thisRepo, id: pr.number }, labelConfig)
6666
}
6767

6868
const assignees = core.getInput('if_no_maintainers_assign')

0 commit comments

Comments
 (0)