PKUHPC / SCOW

Super Computing On Web
https://www.pkuscow.com/
Mulan Permissive Software License, Version 2
180 stars 39 forks source link

fix(cli): 修复 octokit 依赖更新导致 cli 命令执行失败的问题 #1293

Closed piccaSun closed 3 weeks ago

piccaSun commented 3 weeks ago

问题

在 #1251 中,octokit发生大版本更新导致octokit的导入出现问题, 通过require导入也无法解决 https://github.com/octokit/octokit.js/pull/2674 image

octokit/core等不支持octokit.rest方法 image

修改

可回退octokit版本或者指定 octokit/rest进行修复

此PR指定依赖为 @octokit/rest 进行修复 修复后可正常运行cli命令 image

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: a1c5ab5e844e6709959bbf5ddcb112e23afa0a28

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ------------------- | ----- | | @scow/cli | Patch | | @scow/auth | Patch | | @scow/gateway | Patch | | @scow/mis-server | Patch | | @scow/mis-web | Patch | | @scow/portal-server | Patch | | @scow/portal-web | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

piccaSun commented 3 weeks ago

@ddadaal 请确认是对 #1251 中 octokit 版本进行回退, 还是通过指定 octokit/rest 进行修复

ddadaal commented 3 weeks ago

咦,我还是在本地试过才merge的。还是更新为@octokit/rest吧。