@spaceflow/core 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1046,7 +1046,17 @@ function parseDiffText(diffText) {
|
|
|
1046
1046
|
return this.request("POST", `/repos/${owner}/${repo}/pulls/${index}/reviews`, options);
|
|
1047
1047
|
}
|
|
1048
1048
|
async listPullReviews(owner, repo, index) {
|
|
1049
|
-
|
|
1049
|
+
const allReviews = [];
|
|
1050
|
+
let page = 1;
|
|
1051
|
+
const limit = 50;
|
|
1052
|
+
while(true){
|
|
1053
|
+
const reviews = await this.request("GET", `/repos/${owner}/${repo}/pulls/${index}/reviews?page=${page}&limit=${limit}`);
|
|
1054
|
+
if (!reviews || reviews.length === 0) break;
|
|
1055
|
+
allReviews.push(...reviews);
|
|
1056
|
+
if (reviews.length < limit) break;
|
|
1057
|
+
page++;
|
|
1058
|
+
}
|
|
1059
|
+
return allReviews;
|
|
1050
1060
|
}
|
|
1051
1061
|
async updatePullReview(owner, repo, index, reviewId, body) {
|
|
1052
1062
|
// Gitea 不支持更新 review,使用删除+创建的方式模拟
|
|
@@ -11414,7 +11424,7 @@ async function exec(extensions = [], options = {}) {
|
|
|
11414
11424
|
// 6. 创建 CLI 程序
|
|
11415
11425
|
const program = new Command();
|
|
11416
11426
|
const cliVersion = options.cliVersion || "0.0.0";
|
|
11417
|
-
const coreVersion = true ? "0.
|
|
11427
|
+
const coreVersion = true ? "0.17.0" : 0;
|
|
11418
11428
|
const versionOutput = `spaceflow/${cliVersion} core/${coreVersion}`;
|
|
11419
11429
|
program.name("spaceflow").description("Spaceflow CLI").version(versionOutput, "-V, --version", "显示版本信息");
|
|
11420
11430
|
// 定义全局 verbose 选项(支持计数:-v, -vv, -vvv)
|