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

4
package-lock.json generated
View File

@@ -29,8 +29,8 @@
"typescript": "^4.9.5"
},
"engines": {
"node": ">=16.0.0 <17.0.0",
"npm": ">= 7.0.0"
"node": ">=16.0.0 <20.0.0",
"npm": ">= 8.0.0"
}
},
"node_modules/@actions/core": {

View File

@@ -8,8 +8,8 @@
"@actions/github": "^5.0.3"
},
"engines": {
"node": ">=16.0.0 <17.0.0",
"npm": ">= 7.0.0"
"node": ">=16.0.0 <20.0.0",
"npm": ">= 8.0.0"
},
"devDependencies": {
"@github/prettier-config": "^0.0.6",

View File

@@ -54,6 +54,7 @@ export async function addToProject(): Promise<void> {
const issueOwnerName = github.context.payload.repository?.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') {