Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
Pandapip1 committed Jul 28, 2022
2 parents 7227104 + 04470ca commit bfc2f4c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21485,12 +21485,17 @@ async function run() {
if (labels.has(label)) {
continue;
}
octokit.rest.issues.removeLabel({
owner: repository === null || repository === void 0 ? void 0 : repository.owner.login,
repo: repository === null || repository === void 0 ? void 0 : repository.name,
issue_number: pull_request === null || pull_request === void 0 ? void 0 : pull_request.number,
name: label
});
try {
octokit.rest.issues.removeLabel({
owner: repository === null || repository === void 0 ? void 0 : repository.owner.login,
repo: repository === null || repository === void 0 ? void 0 : repository.name,
issue_number: pull_request === null || pull_request === void 0 ? void 0 : pull_request.number,
name: label
});
}
catch (_a) {
// The label was not present
}
}
}
run();
Expand Down

0 comments on commit bfc2f4c

Please sign in to comment.