mirror of
https://github.com/sxyazi/yazi.git
synced 2026-11-21 07:33:21 +00:00
feat: support VFS for join(), starts_with(), and ends_with() of Url (#3094)
This commit is contained in:
parent
0054cf0b87
commit
c27ef58116
36 changed files with 699 additions and 449 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue