chore: rollback got

This commit is contained in:
DIYgod
2024-03-02 02:20:43 +08:00
parent 52074bdfa0
commit f0e09ee9e0
4 changed files with 115 additions and 37 deletions

View File

@@ -1,5 +1,6 @@
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'];
@@ -43,8 +44,6 @@ 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();