mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-13 13:41:53 +00:00
debug log for issue labels
This commit is contained in:
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
@@ -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 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;
|
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 owner: ${issueOwnerName}`);
|
||||||
|
core.debug(`Issue/PR labels: ${issueLabels.join(', ')}`);
|
||||||
// Ensure the issue matches our `labeled` filter based on the label-operator.
|
// Ensure the issue matches our `labeled` filter based on the label-operator.
|
||||||
if (labelOperator === 'and') {
|
if (labelOperator === 'and') {
|
||||||
if (!labeled.every(l => issueLabels.includes(l))) {
|
if (!labeled.every(l => issueLabels.includes(l))) {
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@@ -29,8 +29,8 @@
|
|||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0 <17.0.0",
|
"node": ">=16.0.0 <20.0.0",
|
||||||
"npm": ">= 7.0.0"
|
"npm": ">= 8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
"@actions/github": "^5.0.3"
|
"@actions/github": "^5.0.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0 <17.0.0",
|
"node": ">=16.0.0 <20.0.0",
|
||||||
"npm": ">= 7.0.0"
|
"npm": ">= 8.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@github/prettier-config": "^0.0.6",
|
"@github/prettier-config": "^0.0.6",
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export async function addToProject(): Promise<void> {
|
|||||||
const issueOwnerName = github.context.payload.repository?.owner.login
|
const issueOwnerName = github.context.payload.repository?.owner.login
|
||||||
|
|
||||||
core.debug(`Issue/PR owner: ${issueOwnerName}`)
|
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.
|
// Ensure the issue matches our `labeled` filter based on the label-operator.
|
||||||
if (labelOperator === 'and') {
|
if (labelOperator === 'and') {
|
||||||
|
|||||||
Reference in New Issue
Block a user