@cnzgray/dsh-mattpocock-workflow 0.3.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnzgray/dsh-mattpocock-workflow",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "在 DSH 里运行 mattpocock/skills 工作流的 MattWorkflow 任务面板插件。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,7 +19,9 @@ Only read issue endpoints. `tea issues list --kind issues` and `type=issues` kee
19
19
 
20
20
  ## Parent and child tickets
21
21
 
22
- Gitea has no sub-issues. Put `Part of #<parent>` at the top of the child body, and register the child in the parent body's task list as `- [ ] #<child>`.
22
+ Gitea has no sub-issues. Make `Part of #<parent>` the **first non-empty line** of the child body, alone on that line, and register the child in the parent body's task list as `- [ ] #<child>`.
23
+
24
+ The task panel reads the parent only from that first line. A `Part of` line further down, inside a quote or heading, with extra text, or pointing at another repository is not treated as a parent. Keep `Blocked by:` lines below it; blocking never implies a parent.
23
25
 
24
26
  ## Blocking
25
27
 
@@ -29,7 +31,7 @@ Gitea's **native issue dependencies** are canonical and visible in the web UI. `
29
31
  - **Add a blocker**: `tea api --method POST /repos/{owner}/{repo}/issues/<child>/dependencies -F index=<blocker>`.
30
32
  - **Remove a blocker**: `tea api --method DELETE /repos/{owner}/{repo}/issues/<child>/dependencies -F index=<blocker>`.
31
33
 
32
- The instance or the repo can disable issue dependencies; the API then answers 404. In that case put `Blocked by: #<n>, #<n>` at the top of the child body and use that line to judge blocking.
34
+ The instance or the repo can disable issue dependencies; the API then answers 404. In that case put `Blocked by: #<n>, #<n>` at the top of the child body (right after the `Part of` line when there is one) and use that line to judge blocking.
33
35
 
34
36
  ## Triage labels
35
37
 
@@ -19,7 +19,9 @@
19
19
 
20
20
  ## 父子关系
21
21
 
22
- Gitea 没有子 issue。子票正文顶部写 `Part of #<父票>`,并在父票正文的任务列表里登记子票:`- [ ] #<子票>`。
22
+ Gitea 没有子 issue。子票正文的**第一个非空行**单独写 `Part of #<父票>`,并在父票正文的任务列表里登记子票:`- [ ] #<子票>`。
23
+
24
+ 任务面板只从这一行读父级。写在正文后面、放在引用块或标题里、带多余文字或指向其他仓库的 `Part of` 都不算父级。`Blocked by:` 行写在它下面;阻塞关系不代表父子。
23
25
 
24
26
  ## 阻塞
25
27
 
@@ -29,7 +31,7 @@ Gitea 原生的 issue 依赖是规范的、网页上也可见的表示。`tea`
29
31
  - **加阻塞关系**:`tea api --method POST /repos/{owner}/{repo}/issues/<子票>/dependencies -F index=<阻塞票>`。
30
32
  - **删阻塞关系**:`tea api --method DELETE /repos/{owner}/{repo}/issues/<子票>/dependencies -F index=<阻塞票>`。
31
33
 
32
- 实例或仓库可以关闭 issue 依赖功能,此时接口返回 404。这种情况下把 `Blocked by: #<n>, #<n>` 写在子票正文顶部,改用这一行判断阻塞。
34
+ 实例或仓库可以关闭 issue 依赖功能,此时接口返回 404。这种情况下把 `Blocked by: #<n>, #<n>` 写在子票正文顶部(有 `Part of` 行时紧跟在它后面),改用这一行判断阻塞。
33
35
 
34
36
  ## 分诊标签
35
37