Skip to content

Commit

Permalink
Fix API for adding custom label
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jul 2, 2021
1 parent 10f33f5 commit d33d232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {readFileSync} = require("fs");

// Effectively the main function
async function run() {
core.info("Running version 1.5.1")
core.info("Running version 1.5.4")

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

const assignees = core.getInput('if_no_maintainers_assign')
Expand Down

0 comments on commit d33d232

Please sign in to comment.