refactor: context - flatten support files under .github (#205)

* refactor: context - flatten support files under .github

* fix: context - preserve filenames when flattening

* refactor: extensions - retire Skill Seekers and move maintenance entrypoints

* refactor: extensions - retire Claude Skills Gitlink
This commit is contained in:
tradecatlabs
2026-10-22 12:35:58 +08:00
committed by GitHub
parent fe711a62a2
commit 0c647c96c3
64 changed files with 557 additions and 371 deletions
+4 -4
View File
@@ -18,11 +18,11 @@ import unittest
import source_archive
ROOT = Path(__file__).resolve().parents[1]
SCRIPT = ROOT / '.github/extensions/sync-gongfa-catalog.py'
SCRIPT = ROOT / '.github/sync-gongfa-catalog.py'
ARTIFACTS = None
catalog = None
TEMPLATE = Path(__file__).resolve().parents[1] / '.github/context/tool-explanation-template-v0.md'
V1_TEMPLATE = Path(__file__).resolve().parents[1] / '.github/context/tool-explanation-template-v1.md'
TEMPLATE = Path(__file__).resolve().parents[1] / '.github/tool-explanation-template-v0.md'
V1_TEMPLATE = Path(__file__).resolve().parents[1] / '.github/tool-explanation-template-v1.md'
STALE_EXPLANATION_LABELS = (
'冻结候选', '候选快照', '尚未独立语义复核', '未独立语义复核',
'尚未独立语义核验', '不代表独立语义批准',
@@ -80,7 +80,7 @@ class CatalogMaintenanceTest(unittest.TestCase):
target = root / '.github/context/gongfa'
target.mkdir(parents=True)
shutil.copyfile(ROOT / '.github/context/gongfa/data.json', target / 'data.json')
context_dir = root / '.github/context'
context_dir = root / '.github'
shutil.copyfile(V1_TEMPLATE, context_dir / V1_TEMPLATE.name)
return root