docs(plays): check root README when archiving an application
Add a step to the plays-archive skill and the after-release track 1 to check the root README of the main and current branches before generating a functional summary: merge the README into the summary when it exists, summarize directly otherwise, and update (create) the root README after archiving when neither branch has one. Root README creation follows the fork-owner convention.
This commit is contained in:
1 parent
a80e739979
commit
f71a70780d
4 files changed
+58
-3
No files matched your search
@@ -22,6 +22,12 @@ the cover image as `plays/<app-name>/<app-name>-cover.<webp|png|jpg>`. Commit on
|
||||
the summary and cover; do not store the firmware `.bin` here. See
|
||||
[`../../plays/README.md`](../../plays/README.md).
|
||||
|
||||
Before generating the summary, check the root README of the `main` and current
|
||||
branches (`plays-archive` skill): if a README exists, prompt the developer to
|
||||
update it and merge it into the summary; if not, summarize directly. After
|
||||
archiving, if neither branch has a root README, update (create) it so the
|
||||
archived application is discoverable from the fork's own README.
|
||||
|
||||
## Track 2: Collect suggestions and file issues
|
||||
|
||||
Run the `issue-suggestions` skill to gather the releasing developer's own
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
`plays/<app-name>/<app-name>-cover.<webp|png|jpg>`。只提交总结与封面;**不要**在这里存固件
|
||||
`.bin`。见 [`../../plays/README.md`](../../plays/README.md)。
|
||||
|
||||
生成总结前,先检查 `main` 分支和当前分支**根目录**的 README(`plays-archive` skill):若有 README,
|
||||
提示开发者更新并把它合并进总结;若没有,直接总结。归档完成后,若两侧分支根目录都无 README,
|
||||
则更新(创建)它,让归档的应用能从 fork 自己的 README 检索到。
|
||||
|
||||
## 轨道 2:收集建议并提交 issue
|
||||
|
||||
运行 `issue-suggestions` skill,收集发布固件的开发者本人的改进点,把有价值的整理成功能
|
||||
|
||||
@@ -36,6 +36,28 @@ Confirm the application name and the source it belongs to (for example a
|
||||
subdirectory name. See [`../../plays/README.md`](../../plays/README.md) for the full
|
||||
convention.
|
||||
|
||||
## Check the project README
|
||||
|
||||
Before generating the summary, check the **root README** of both the `main`
|
||||
branch and the current branch:
|
||||
|
||||
- `git ls-tree --name-only main README.md` — is there a README on `main`?
|
||||
- `test -f README.md` — is there a README on the current branch?
|
||||
|
||||
Follow the repository rule that the root README path is reserved for the fork
|
||||
owner (see `docs/fork-guide.md`); do not create a root README unless the fork
|
||||
actually owns one.
|
||||
|
||||
1. **If a README exists** (on `main` or the current branch): prompt the developer
|
||||
to update it and read it. When archiving, **merge the README content into the
|
||||
functional summary** so the summary reflects the human-facing description, not
|
||||
just the code.
|
||||
2. **If no README exists**: summarize directly from the implementation, with no
|
||||
README merge.
|
||||
3. **After archiving is complete**: if neither `main` nor the current branch has a
|
||||
root README, update (create) the root README so the archived application is
|
||||
discoverable from the fork's own README.
|
||||
|
||||
## Generate the functional summary
|
||||
|
||||
Write `plays/<app-name>/README.md` and its paired `.zh_CN.md` as an AI-generated
|
||||
@@ -47,6 +69,9 @@ functional summary for later querying (not a publishing artifact). Record:
|
||||
- The source branch or directory it lives in.
|
||||
- The cover image file name and format.
|
||||
|
||||
If the root README exists, merge its content into the summary rather than
|
||||
ignoring the human-facing description.
|
||||
|
||||
Write the default `.md` in English and the `.zh_CN.md` in Simplified Chinese,
|
||||
aligned in the same change.
|
||||
|
||||
@@ -59,7 +84,8 @@ to the repository. Keep it representative and under 10 MiB.
|
||||
|
||||
Commit the summary and cover on the dedicated branch (English imperative
|
||||
Conventional Commit title, for example
|
||||
`docs(plays): add <app-name> application archive`). Do **not** store the merged
|
||||
`docs(plays): add <app-name> application archive`). If a root README was created
|
||||
or updated, include it in the same change. Do **not** store the merged
|
||||
firmware `.bin` here; it is a build/publish artifact. Report Build, Host tests,
|
||||
Device tests, and Unverified separately.
|
||||
|
||||
|
||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user