debug log for issue labels

This commit is contained in:
Matthew Costabile
2023-02-27 13:18:46 +00:00
parent 5f0c606906
commit 9f96b16f44
5 changed files with 7 additions and 5 deletions

1
dist/index.js generated vendored
View File

@@ -61,6 +61,7 @@ function addToProject() {
const issueLabels = ((_c = issue === null || issue === void 0 ? void 0 : issue.labels) !== null && _c !== void 0 ? _c : []).map((l) => l.name.toLowerCase());
const issueOwnerName = (_d = github.context.payload.repository) === null || _d === void 0 ? void 0 : _d.owner.login;
core.debug(`Issue/PR owner: ${issueOwnerName}`);
core.debug(`Issue/PR labels: ${issueLabels.join(', ')}`);
// Ensure the issue matches our `labeled` filter based on the label-operator.
if (labelOperator === 'and') {
if (!labeled.every(l => issueLabels.includes(l))) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long