feat: support VFS for join(), starts_with(), and ends_with() of Url (#3094)

This commit is contained in:
三咲雅 misaki masa 2025-08-23 10:26:20 +08:00 • committed by sxyazi
parent 0054cf0b87
commit c27ef58116
No known key found for this signature in database
36 changed files with 699 additions and 449 deletions

View file

@ -186,6 +186,25 @@ If the problem persists, please file a new issue and complete the issue template
}
}
async function closeUnsupportedIssue(id) {
try {
await github.rest.issues.update({
...context.repo,
issue_number: id,
state : "closed",
state_reason: "not_planned",
})
await github.rest.issues.createComment({
...context.repo,
issue_number: id,
body : `Unsupported issue template.
Either the [Bug Report](https://github.com/sxyazi/yazi/issues/new?template=bug.yml) or [Feature Request](https://github.com/sxyazi/yazi/issues/new?template=feature.yml) template should be used.`,
})
} catch (e) {
core.error(`Error closing unsupported issue: ${e.message}`)
}
}
async function main() {
const hash = await nightlyHash()
if (!hash) return
@ -206,6 +225,8 @@ If the problem persists, please file a new issue and complete the issue template
} else if (await hasLabel(id, "feature")) {
const body = featureRequestBody(creator, content)
await updateLabels(id, !!body, body)
} else if (context.payload.action === "opened") {
await closeUnsupportedIssue(id)
}
}
}