docs(plays): handle root README per-branch when archiving
Refine the plays-archive README check so after archiving each branch is handled independently: create the root README on a branch that lacks one, and prompt the developer to update the README on a branch that already has one. Merge an existing README into the functional summary; summarize directly when none exists.
This commit is contained in:
1 parent
f71a70780d
commit
9281f81745
4 files changed
+23
-17
No files matched your search
@@ -23,10 +23,10 @@ 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.
|
||||
branches (`plays-archive` skill): if a README exists, merge it into the summary;
|
||||
if not, summarize directly. After archiving, handle each branch independently:
|
||||
create the root README on a branch that lacks one, and prompt the developer to
|
||||
update the README on a branch that already has one.
|
||||
|
||||
## Track 2: Collect suggestions and file issues
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
`.bin`。见 [`../../plays/README.md`](../../plays/README.md)。
|
||||
|
||||
生成总结前,先检查 `main` 分支和当前分支**根目录**的 README(`plays-archive` skill):若有 README,
|
||||
提示开发者更新并把它合并进总结;若没有,直接总结。归档完成后,若两侧分支根目录都无 README,
|
||||
则更新(创建)它,让归档的应用能从 fork 自己的 README 检索到。
|
||||
把它合并进总结;若没有,直接总结。归档完成后对每个分支**各自处理**:没有根 README 的分支创建它,
|
||||
已有根 README 的分支提示开发者更新它。
|
||||
|
||||
## 轨道 2:收集建议并提交 issue
|
||||
|
||||
|
||||
@@ -48,15 +48,19 @@ 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.
|
||||
1. **If a README exists** (on `main` or the current branch): when archiving, **merge
|
||||
the README content into the functional summary** so the summary reflects the
|
||||
human-facing description, not just the code. A README that already exists is
|
||||
kept for the branch that owns it.
|
||||
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.
|
||||
3. **After archiving is complete**, handle each branch's root README independently
|
||||
(not as a single combined decision):
|
||||
- For a branch with **no** root README, **create** (or update) the README on
|
||||
that branch so the archived application is discoverable from the fork's own
|
||||
README.
|
||||
- For a branch that already **has** a root README, **prompt the developer to
|
||||
update it** to reflect the new archived application.
|
||||
|
||||
## Generate the functional summary
|
||||
|
||||
|
||||
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