mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 02:05:58 +08:00
fix: mark-duplicate
labels invalid (#116)
* test * test * fix labels length
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -14934,7 +14934,7 @@ function doMarkDuplicate(comment, closeReason, labels, emoji) {
|
|||||||
if (duplicateLabels) {
|
if (duplicateLabels) {
|
||||||
newLabels = [...newLabels, ...(0, actions_util_1.dealStringToArr)(duplicateLabels)];
|
newLabels = [...newLabels, ...(0, actions_util_1.dealStringToArr)(duplicateLabels)];
|
||||||
}
|
}
|
||||||
if (labels) {
|
if (labels === null || labels === void 0 ? void 0 : labels.length) {
|
||||||
newLabels = [...labels];
|
newLabels = [...labels];
|
||||||
}
|
}
|
||||||
if (newLabels.length > 0) {
|
if (newLabels.length > 0) {
|
||||||
|
@@ -344,7 +344,7 @@ export async function doMarkDuplicate(
|
|||||||
if (duplicateLabels) {
|
if (duplicateLabels) {
|
||||||
newLabels = [...newLabels, ...dealStringToArr(duplicateLabels)];
|
newLabels = [...newLabels, ...dealStringToArr(duplicateLabels)];
|
||||||
}
|
}
|
||||||
if (labels) {
|
if (labels?.length) {
|
||||||
newLabels = [...labels];
|
newLabels = [...labels];
|
||||||
}
|
}
|
||||||
if (newLabels.length > 0) {
|
if (newLabels.length > 0) {
|
||||||
|
Reference in New Issue
Block a user