pr-description
Calculate and maintain the required change-count header when creating or updating pull requests in this repository.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
PR description
Begin every PR description with these three lines, using Markdown hard line breaks
so each renders separately:
Code changes: +<added> -<deleted>
Tests: +<added> -<deleted>
Others: +<added> -<deleted>
Calculate the numbers from the net diff against the PR's actual base. For a local
branch, use git diff --numstat <base>...<head>. After pushing, prefer GitHub's
per-file additions and deletions. Recalculate after the final push rather than
summing commit churn or estimating counts.
Count every changed file exactly once:
- Code changes: handwritten implementation, including SQL, migrations, styles,
and executable scripts.
- Tests: test code, fixtures, snapshots, and test-only helpers.
- Others: generated or vendored files, lockfiles, documentation, configuration,
and assets. Generated output belongs here even when it contains source code.
Show +0 -0 for empty categories. Binary files have no line count; mention their
count separately when present. Add a brief qualifier when useful, such as
Others: +11 -0 (generated sqlc).
Preserve the rest of an existing PR description. After creating or updating the PR,
read the published description and verify that its opening lines match the current
GitHub diff counts and required order.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。