mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-11 12:37:16 +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 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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user