-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): 修复 octokit 依赖更新导致 cli 命令执行失败的问题 (#1293)
### 问题 **在 #1251 中,octokit发生大版本更新导致octokit的导入出现问题, 通过require导入也无法解决** octokit/octokit.js#2674 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/db6d16c8-402d-4c86-8a49-c739c8020ed4) **octokit/core等不支持octokit.rest方法** ![image](https://github.com/PKUHPC/SCOW/assets/43978285/830e702d-89f6-4114-80b9-cbced9e9fe42) ### 修改 ### 可回退octokit版本或者指定 octokit/rest进行修复 **此PR指定依赖为 @octokit/rest 进行修复** **修复后可正常运行cli命令** ![image](https://github.com/PKUHPC/SCOW/assets/43978285/3c09055c-7e70-4fff-a3e0-e89f8c52929f)
- Loading branch information
Showing
4 changed files
with
75 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/cli": patch | ||
--- | ||
|
||
修复更新 octokit 依赖后导致 cli 命令执行失败的问题 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.