@spaceflow/publish 0.43.0 → 0.45.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/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.44.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/publish@0.43.0...@spaceflow/publish@0.44.0) (2026-03-02)
4
+
5
+ ### 新特性
6
+
7
+ * **core:** Gitea适配器支持通过标签名称创建Issue ([cf10eda](https://github.com/Lydanne/spaceflow/commit/cf10eda5d025c560cc0d8e3826dad40716020d5c))
8
+ * **review-summary:** commit-based 评分新增修复问题加分机制,支持从 review 模块精确提取问题统计 ([304bf81](https://github.com/Lydanne/spaceflow/commit/304bf81ab475b280ab5f4011159bc697861bddf6))
9
+ * **review-summary:** 支持为周期统计报告 Issue 配置自定义标签 ([df1cc61](https://github.com/Lydanne/spaceflow/commit/df1cc61167851ff7106104914319f43f73ba8902))
10
+ * **review-summary:** 支持通过配置文件自定义评分权重 ([53e1a37](https://github.com/Lydanne/spaceflow/commit/53e1a371288aea6ceac63b03fda99eea1739be4b))
11
+ * **review-summary:** 新增 commit-based 评分策略,支持按有效 commit 累计计分 ([111c0d6](https://github.com/Lydanne/spaceflow/commit/111c0d6b9d87d12096e0edb69a11eceff55b79c1))
12
+ * **review:** 为行级评论 Review 添加统计信息摘要 ([58d5b37](https://github.com/Lydanne/spaceflow/commit/58d5b37ba54daa24bd2f8396318fedc87f388c74))
13
+ * **review:** 优化问题统计展示,按 severity 分级显示 error/warn 数量 ([bcb2608](https://github.com/Lydanne/spaceflow/commit/bcb26086589a67e815db075f3001209904572926))
14
+ * **review:** 保留历史行级评论,为每轮 Review 生成独立评论并添加上轮回顾 ([de431a0](https://github.com/Lydanne/spaceflow/commit/de431a09b4e3b5e1ada9ee5f1ee65786d22b6ff9))
15
+ * **review:** 支持用户手动 resolve 评论并在报告中区分 AI 修复与手动解决 ([c968b65](https://github.com/Lydanne/spaceflow/commit/c968b65c850bc68de3f4409aa3b5294e5a0311ff))
16
+ * **review:** 新增 MCP 工具支持从目录批量加载代码审查规则 ([289a836](https://github.com/Lydanne/spaceflow/commit/289a83650f1e222482fcbaaa69fb5ea562c5a4c2))
17
+ * **review:** 新增解决率统计指标,区分修复率和解决率的计算维度 ([436541f](https://github.com/Lydanne/spaceflow/commit/436541fce605319da562445a81242a8feb257df9))
18
+
19
+ ### 修复BUG
20
+
21
+ * **review:** 修复率计算仅统计 AI 修复的问题,排除手动解决的问题 ([12b3415](https://github.com/Lydanne/spaceflow/commit/12b3415749c9d8523e8b23365fbb39fc7657ff1d))
22
+ * **review:** 修正 PR 评论标题中的 emoji 显示问题 ([bcdc946](https://github.com/Lydanne/spaceflow/commit/bcdc9467bf7970c9acd3ea00303bcae5eaff131f))
23
+
24
+ ### 代码重构
25
+
26
+ * **review:** 抽取规则加载和问题验证逻辑为独立方法,优化代码复用性 ([7ea02ba](https://github.com/Lydanne/spaceflow/commit/7ea02ba86e369bc130c69c561195634072cc060a))
27
+
28
+ ### 文档更新
29
+
30
+ * **docs:** 为 review-summary 命令文档补充 Issue 输出配置说明 ([196fa94](https://github.com/Lydanne/spaceflow/commit/196fa94ad1ed2dbadbdcb332ef26cf1fe7fcd8d7))
31
+ * **review-summary:** 完善文档,新增时间预设、评分算法及输出示例说明 ([fb04685](https://github.com/Lydanne/spaceflow/commit/fb04685dde4157f0a1a2f8edaf1fb3c125280e27))
32
+ * **review:** 完善 review 命令文档,新增审查流程、多轮审查、问题生命周期等核心机制说明 ([d6b2a20](https://github.com/Lydanne/spaceflow/commit/d6b2a20802ab98e5ddb01937c0fe8b268c403c6f))
33
+
34
+ ### 其他修改
35
+
36
+ * **core:** released version 0.20.0 [no ci] ([b7ed239](https://github.com/Lydanne/spaceflow/commit/b7ed239455244cd96f2b59ef67886dd0bfc057a8))
37
+ * **review-summary:** released version 0.21.0 [no ci] ([11379c4](https://github.com/Lydanne/spaceflow/commit/11379c478859a12dd0340a78b1578487d9a24b31))
38
+ * **review:** released version 0.53.0 [no ci] ([5a6af03](https://github.com/Lydanne/spaceflow/commit/5a6af03c260060ac1b1901bb7273f501ca0037c7))
39
+ * **review:** released version 0.54.0 [no ci] ([252269a](https://github.com/Lydanne/spaceflow/commit/252269a299f9e580b858e04814e7d9a13fed7736))
40
+ * **review:** released version 0.55.0 [no ci] ([0245743](https://github.com/Lydanne/spaceflow/commit/02457439788dd70925b91118f7d5936a61d0e0de))
41
+ * **review:** released version 0.56.0 [no ci] ([2481dec](https://github.com/Lydanne/spaceflow/commit/2481dec141b0d5f444b5815ab9598378ac3e0b12))
42
+ * **scripts:** released version 0.21.0 [no ci] ([1f0a213](https://github.com/Lydanne/spaceflow/commit/1f0a2139d155807451dc968de8213bafe2e4edb8))
43
+ * **shell:** released version 0.21.0 [no ci] ([b619af7](https://github.com/Lydanne/spaceflow/commit/b619af741e16053868a2eedd41f56d50134954d8))
44
+
45
+ ## [0.43.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/publish@0.42.0...@spaceflow/publish@0.43.0) (2026-03-02)
46
+
47
+ ### 修复BUG
48
+
49
+ * **core:** 重构配置 Schema 生成逻辑,使用 SpaceflowConfigSchema 作为基础 ([c73eb1c](https://github.com/Lydanne/spaceflow/commit/c73eb1ce5b6f212b8a932a15224db7e63822f8d0))
50
+
51
+ ### 测试用例
52
+
53
+ * **review:** 增强 AI 评论识别和过滤功能的测试覆盖 ([bda706b](https://github.com/Lydanne/spaceflow/commit/bda706b99aab113521afe6bcd386a590811e20a6))
54
+
55
+ ### 其他修改
56
+
57
+ * **core:** released version 0.19.0 [no ci] ([c8bfe6b](https://github.com/Lydanne/spaceflow/commit/c8bfe6ba20893e2c3cd383ed7e7d3217b0492eb6))
58
+ * **review-summary:** released version 0.20.0 [no ci] ([bb3f815](https://github.com/Lydanne/spaceflow/commit/bb3f81567bf6946964a19b9207b8b9beff690b8a))
59
+ * **review:** released version 0.50.0 [no ci] ([cff42fa](https://github.com/Lydanne/spaceflow/commit/cff42fafcc588d0c497d9e0e4750620262adcfec))
60
+ * **review:** released version 0.51.0 [no ci] ([c93be78](https://github.com/Lydanne/spaceflow/commit/c93be78f6f1df9cb5e3515cee58cda65cad1b00f))
61
+ * **review:** released version 0.52.0 [no ci] ([c86406f](https://github.com/Lydanne/spaceflow/commit/c86406f6934d5de4f198eadff66ee6c3f7cfbe0d))
62
+ * **review:** 移除 .spaceflow 目录及其配置文件 ([64b310d](https://github.com/Lydanne/spaceflow/commit/64b310d8a77614a259a8d7588a09169626efb3ae))
63
+ * **scripts:** released version 0.20.0 [no ci] ([e1fac49](https://github.com/Lydanne/spaceflow/commit/e1fac49257bf4a5902c5884ec0e054384a7859d6))
64
+ * **shell:** released version 0.20.0 [no ci] ([8b69b53](https://github.com/Lydanne/spaceflow/commit/8b69b5340fe99973add2bea3e7d53f2082d0da54))
65
+
3
66
  ## [0.42.0](https://github.com/Lydanne/spaceflow/compare/@spaceflow/publish@0.41.0...@spaceflow/publish@0.42.0) (2026-02-27)
4
67
 
5
68
  ### 新特性
package/dist/index.js CHANGED
@@ -167,10 +167,10 @@ class PublishService {
167
167
  const repository = ciConf?.repository;
168
168
  const branch = ciConf?.refName;
169
169
  if (!repository) {
170
- throw new Error("缺少配置 ci.repository (环境变量 GITHUB_REPOSITORY)");
170
+ throw new Error("缺少配置 ci.repository (环境变量 GITHUB_REPOSITORY / GITEA_REPOSITORY)");
171
171
  }
172
172
  if (!branch) {
173
- throw new Error("缺少配置 ci.refName (环境变量 GITHUB_REF_NAME)");
173
+ throw new Error("缺少配置 ci.refName (环境变量 GITHUB_REF_NAME / GITEA_REF_NAME)");
174
174
  }
175
175
  const [owner, repo] = repository.split("/");
176
176
  if (!owner || !repo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaceflow/publish",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "Spaceflow CI 发布插件,用于在发布流程中锁定/解锁分支",
5
5
  "license": "MIT",
6
6
  "author": "Lydanne",
@@ -24,7 +24,7 @@
24
24
  "@spaceflow/cli": "0.38.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@spaceflow/core": "0.19.0"
27
+ "@spaceflow/core": "0.21.0"
28
28
  },
29
29
  "spaceflow": {
30
30
  "type": "flow",
@@ -71,11 +71,11 @@ export class PublishService {
71
71
  const branch = ciConf?.refName;
72
72
 
73
73
  if (!repository) {
74
- throw new Error("缺少配置 ci.repository (环境变量 GITHUB_REPOSITORY)");
74
+ throw new Error("缺少配置 ci.repository (环境变量 GITHUB_REPOSITORY / GITEA_REPOSITORY)");
75
75
  }
76
76
 
77
77
  if (!branch) {
78
- throw new Error("缺少配置 ci.refName (环境变量 GITHUB_REF_NAME)");
78
+ throw new Error("缺少配置 ci.refName (环境变量 GITHUB_REF_NAME / GITEA_REF_NAME)");
79
79
  }
80
80
 
81
81
  const [owner, repo] = repository.split("/");