- write-notes-like-deepseek 从三个子仓库的重复副本改为 meta 唯一副本 - 新增 .agents/scripts/verify-notes.ts,从 meta 视角一次校验四个笔记根 - workspace-layout 补「共有技能单一来源」的落位与理由 - .rgignore 排除 archived 历史快照
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
# 复制到宿主仓库的 workflow 目录后启用:
|
||
# GitHub → .github/workflows/verify-notes.yml
|
||
# Gitea → .gitea/workflows/verify-notes.yml(并把 github.* 换成 gitea.*)
|
||
# 默认项目级安装路径;使用其他路径时请同步修改下方命令。
|
||
name: Verify Agent Notes
|
||
|
||
on:
|
||
push:
|
||
branches:
|
||
- main
|
||
pull_request:
|
||
|
||
permissions:
|
||
contents: read
|
||
|
||
jobs:
|
||
verify:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
with:
|
||
fetch-depth: 0
|
||
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version: 24
|
||
|
||
- name: Verify note tree, format, and archive seals
|
||
env:
|
||
# HEAD is a no-op on a clean checkout. Compare against the pre-change
|
||
# commit: PR base, or the previous tip of the pushed branch.
|
||
# A new-branch push sends before=0000…; git show fails and the script
|
||
# skips append-only (seal-vs-disk still runs).
|
||
AGENT_NOTE_ARCHIVE_BASE_REF: ${{ github.event.pull_request.base.sha || github.event.before }}
|
||
run: |
|
||
node .agents/skills/write-notes-like-deepseek/scripts/verify-agent-note-tree.ts
|
||
node .agents/skills/write-notes-like-deepseek/scripts/verify-agent-note-format.ts
|
||
node .agents/skills/write-notes-like-deepseek/scripts/verify-archived-agent-notes.ts
|