身為開票的人,我要每個 repo 的標籤都一樣,我才不用每次猜標籤名 #4

Closed
opened 2026-08-20 04:52:36 +00:00 by claude-code · 1 comment
Member

Parent: #1

目的:標籤有唯一真相源,且所有受治理 repo 實際長得一樣;新 repo 納管時一個指令就對齊。

現況(實查 2026-08-20):ISEP 原本 0 個標籤(已由總管先建 23 個);InkStoneCo 只有 10 個且全部 exclusive:false;其餘 12 個 repo 未查。Gitea 1.26.4 支援 label exclusive

怎麼驗:跑一次同步後,隨機抽三個 repo 的標籤集與真相源逐項一致(名稱/顏色/描述/exclusive 四項都比);重跑第二次是 no-op(冪等)。

紅線不准刪既有標籤——刪除會把它從所有歷史票上摘掉。多出來的非規範標籤只告警不動手。

Parent: #1 **目的**:標籤有唯一真相源,且所有受治理 repo 實際長得一樣;新 repo 納管時一個指令就對齊。 **現況(實查 2026-08-20)**:ISEP 原本 0 個標籤(已由總管先建 23 個);InkStoneCo 只有 10 個且全部 `exclusive:false`;其餘 12 個 repo 未查。Gitea 1.26.4 支援 label `exclusive`。 **怎麼驗**:跑一次同步後,隨機抽三個 repo 的標籤集與真相源逐項一致(名稱/顏色/描述/exclusive 四項都比);重跑第二次是 no-op(冪等)。 **紅線**:**不准刪既有標籤**——刪除會把它從所有歷史票上摘掉。多出來的非規範標籤只告警不動手。
claude-code added this to the (deleted) milestone 2026-08-20 04:52:36 +00:00
claude-code added the
s
todo
p
high
type
governance
labels 2026-08-20 04:52:36 +00:00
claude-code added
s
doing
and removed
s
todo
labels 2026-08-20 04:54:14 +00:00
Author
Member

[decision] 標籤真相源+同步機制已建,14/14 repo 已對齊。分支 leaf/4-labels(未 merge,等總管 review)。

做了什麼

  • labels.yaml(repo 根目錄):23 個標籤唯一真相源,與現行 ISEP 實況(總管先建的那份)完全一致。
  • scripts/gitea-labels-sync.sh:讀 labels.yaml 對齊任一/全部受治理 repo。缺的建、既有的還原 color/description/exclusive(不改名)、多出來的只告警不刪;no-op 冪等。

實跑對帳(14 個 repo)

repo created updated extras(非規範標籤,僅告警)
InkStoneCo 14 9 0
arcrun-rag 14 9 6(bug/enhancement/help wanted/invalid/question/wontfix,Gitea 預設英文標籤)
Arcrun 14 9 0
mira 14 9 0
kbdb-graph-plugin 22 1 0
arcrun-harness 22 1 0
system-dev-template 20 3 0
arcrun-rag-bundles-staging 22 1 0
kbdb-ingest-plugin 22 1 0
content-pipeline 22 1 0
arcrun-components 22 1 0
Nebula 22 1 0
arcrun-collector 23 0 0
ISEP 0 0 0(已是總管先建的實況)
總計 253 46 6

第二次連跑(冪等驗證):全 14 個 repo 均 0 created / 0 updated(附完整輸出於 PR/commit)。

抽查三點(InkStoneCo、Arcrun、content-pipeline,含票數最多的 Arcrun):逐一比對名稱/顏色/描述/exclusive 四欄,與 labels.yaml 完全一致。

紅線遵守:沒有刪除任何既有標籤;改名一律不做(本次無改名需求);沒有推 main,開分支 leaf/4-labels 交回總管;token 沒有寫進任何檔案(腳本只讀取變數,來源同 InkStoneCo 頂層 gitea remote)。

發現並知會的一個問題:ISEP 工作目錄裡另一份未 commit 的 sdd-gitea-governance.md(治理規範草稿)用的是 gate/humanexec/human 命名,跟現行實況(Humanhuman/exec,也是這次 labels.yaml 採用的)不一致。已私訊該票的執行者知會,不在本票範圍內處理。

[decision] 標籤真相源+同步機制已建,14/14 repo 已對齊。分支 `leaf/4-labels`(未 merge,等總管 review)。 **做了什麼** - `labels.yaml`(repo 根目錄):23 個標籤唯一真相源,與現行 ISEP 實況(總管先建的那份)完全一致。 - `scripts/gitea-labels-sync.sh`:讀 labels.yaml 對齊任一/全部受治理 repo。缺的建、既有的還原 color/description/exclusive(**不改名**)、多出來的只告警不刪;no-op 冪等。 **實跑對帳(14 個 repo)** | repo | created | updated | extras(非規範標籤,僅告警) | |---|---|---|---| | InkStoneCo | 14 | 9 | 0 | | arcrun-rag | 14 | 9 | 6(bug/enhancement/help wanted/invalid/question/wontfix,Gitea 預設英文標籤) | | Arcrun | 14 | 9 | 0 | | mira | 14 | 9 | 0 | | kbdb-graph-plugin | 22 | 1 | 0 | | arcrun-harness | 22 | 1 | 0 | | system-dev-template | 20 | 3 | 0 | | arcrun-rag-bundles-staging | 22 | 1 | 0 | | kbdb-ingest-plugin | 22 | 1 | 0 | | content-pipeline | 22 | 1 | 0 | | arcrun-components | 22 | 1 | 0 | | Nebula | 22 | 1 | 0 | | arcrun-collector | 23 | 0 | 0 | | ISEP | 0 | 0 | 0(已是總管先建的實況) | | **總計** | **253** | **46** | **6** | 第二次連跑(冪等驗證):全 14 個 repo 均 0 created / 0 updated(附完整輸出於 PR/commit)。 抽查三點(InkStoneCo、Arcrun、content-pipeline,含票數最多的 Arcrun):逐一比對名稱/顏色/描述/exclusive 四欄,與 labels.yaml 完全一致。 **紅線遵守**:沒有刪除任何既有標籤;改名一律不做(本次無改名需求);沒有推 main,開分支 `leaf/4-labels` 交回總管;token 沒有寫進任何檔案(腳本只讀取變數,來源同 InkStoneCo 頂層 gitea remote)。 **發現並知會的一個問題**:ISEP 工作目錄裡另一份未 commit 的 `sdd-gitea-governance.md`(治理規範草稿)用的是 `gate/human`/`exec/human` 命名,跟現行實況(`Human`/`human/exec`,也是這次 labels.yaml 採用的)不一致。已私訊該票的執行者知會,不在本票範圍內處理。
claude-code added
s
review
and removed
s
doing
labels 2026-08-20 05:04:04 +00:00
claude-code added the
close
merged
label 2026-08-20 05:10:18 +00:00
claude-code added this to the (deleted) milestone 2026-08-20 09:12:26 +00:00
claude-code added this to the (已撤回)ISEP 初期鷹架 milestone 2026-08-20 10:37:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inkstone/ISEP#4