feat: update esm dependencies

This commit is contained in:
DIYgod
2024-03-01 22:58:04 +08:00
parent a9de313f41
commit d88620c39c
32 changed files with 753 additions and 688 deletions

View File

@@ -1,6 +1,5 @@
const unified = require('unified');
const parse = require('remark-parse');
const got = require('got');
// @TODO maybe we could use label or some other better ways to distinguish bug/feature issues
const matchTitle = ['路由地址', 'Routes'];
@@ -44,6 +43,8 @@ async function parseBodyRoutes(body, core) {
}
async function getMaintainersByRoutes(routes, core) {
const got = await import('got');
// TODO: change me when https://github.com/actions/github-script is run on node20
// const response = await fetch(maintainerURL);
// const maintainers = await response.json();