Repository navigation
chore(github): 落地 repo-template 的 issue 表单、PR 模板与标签流程 - #9
Merged
Merged
Conversation
ZouZhao321
force-pushed
the
chore/repo-template
branch
from
October 9, 2026 06:58
d6acb8c to
1d2fff1
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
Closes #(无对应 issue,来自 repo-template 的配置落地)
做了什么
把
ZouZhao321/repo-template的协作设施整套带到 mpget:issue 表单、PR 模板、标签自动化与标签词表文档。路径规则按 mpget 的真实目录改过;标签已用gh label clone同步到仓库(26 个)。新增文件:
.github/ISSUE_TEMPLATE/:bug.yml、feature.yml、refactor.yml、task.yml、epic.yml、config.yml(关闭空白 issue).github/pull_request_template.md.github/labeler.yml:路径换成 mpget 的目录,.github/**、scripts/**、package.json、pnpm-lock.yaml、tsconfig.json、vitest.config.ts、eslint.config.mjs、.prettierrc等归kind/chore.github/workflows/pr-labeler.yml:PR 打开时按路径打kind/docs/kind/chore/needs-triage.github/workflows/triage.yml:新 issue 补needs-triage;每天 01:00 UTC 同步needs-kind/needs-priority.github/workflows/stale.yml:issue 60+7 天、PR 14+7 天scripts/sync-missing-labels.shdocs/agents/triage-labels.md:标签词表与组合规则验收
python .tmp/validate-yaml.py .worktrees/repo-template,结果:YAML 全部通过(逐份解析全部 YAML,并校验表单字段类型、name长度 > 3、workflow 的三段结构)GH_REPO=ZouZhao321/mpget bash scripts/sync-missing-labels.sh --dry-run,结果:对开启 issue 输出gh issue edit <n> --add-label needs-kind/--add-label needs-priorityGH_REPO=ZouZhao321/mpget bash scripts/sync-missing-labels.sh,结果:真实补标签成功;补上kind/chore与priority/backlog后重跑,两个标志标签被摘掉(临时 issue 已关闭)gh label clone ZouZhao321/repo-template -R ZouZhao321/mpget --force,结果:标签总数 26gh api repos/actions/labeler/tags、gh api repos/actions/stale/tags,结果:v7与v11均存在影响面与回滚
只新增文件,不改动
src/、tests/与既有ci.yml。.gitignore已单独在 main 上提交(忽略.worktrees/)。回滚:
git revert本提交并删除标签即可;标签保留不影响构建。pr-labeler与triage生效要等本 PR 合入默认分支:pull_request_target读取的是默认分支上的 workflow 文件,所以本 PR 自身不会被自动打标签。检查清单
type(scope): 中文描述format:check/lint/build/test)docs/(新增docs/agents/triage-labels.md)