Skill站外收录 @skilllib/skill-2014279404845740033
minor-release-notes
自动生成比特币核心小版本的发布说明,通过解析回溯提交中的 GitHub PR 编号,检索主分支上的对应标题,按功能类别整理成结构化列表,并提取贡献者名单与系统支持信息,辅助生成符合规范的正式发布文档。
效率工具 AI 技能
Skills.MD
<!-- Requires you to already have bumped the version. -->
<!-- Note that this doesn't handle partially backported PRs or copy text release notes for significant changes like
mempool policy or activation params. You should definitely write more extensive release notes. -->
# Bitcoin Core minor release notes
Extract GitHub Pull Request numbers from backport commits and format them for release notes.
## Identify Current Release Version
Check `CMakeLists.txt` to determine what release is being prepared and what BASE_VERSION tag to use.
```bash
grep -E "CLIENT_VERSION_(MAJOR|MINOR|BUILD|RC)" CMakeLists.txt | head -4
```
Example output:
```
set(CLIENT_VERSION_MAJOR 29)
set(CLIENT_VERSION_MINOR 3)
set(CLIENT_VERSION_BUILD 0)
set(CLIENT_VERSION_RC 1)
```
This means we're preparing `v29.3rc1`. The previous release tag to diff from is `v29.2`.
### Determining the BASE_VERSION tag
Find the most recent non-release-candidate tag on the `X.x` branch:
```bash
git tag --list 'vX.*' --sort=-v:refname | grep -v "rc" | head -1
```
Example for v29.3:
```bash
git tag --list 'v29.*' --sort=-v:refname | grep -v "rc" | head -1
```
This handles cases like:
- Preparing v29.3 → finds v29.2 (or v29.2.1 if a patch release exists)
- Preparing v30.1 → finds v30.0.1 if it exists, otherwise v30.0
- Release candidates use the same BASE_VERSION tag as the final release (e.g. v29.3rc2 and v29.3rc1 should both use v29.2)
## Extract PR Numbers
The `Github-Pull` field in commit messages can use inconsistent formats, so handle all three:
- `Github-Pull: #XXXXX`
- `Github-Pull: XXXXX` (no `#`)
- `Github-Pull: bitcoin/bitcoin#XXXXX`
### Get all unique PR numbers between a tag and HEAD
```bash
git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq
```
Example:
```bash
git log v29.2..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq
```
### View all Github-Pull lines (to debug format issues)
```bash
git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sort | uniq
```
### Find PRs merged directly to the release branch (not backported from master)
In rare cases, a PR may be merged directly into the X.x branch rather than being backported from master. These appear as merge commits in the subject line and usually don't mention "backport".
```bash
git log <tag>..HEAD --oneline | grep "Merge bitcoin/bitcoin#" | grep -iv "backport"
```
Example:
```bash
git log v29.2..HEAD --oneline | grep "Merge bitcoin/bitcoin#" | grep -iv "backport"
```
## Look Up PR Titles from Master
This is much faster than looking them up through github.
Merge commits in master use the format: `Merge bitcoin/bitcoin#XXXXX: <title>`
### Search for specific PR numbers
```bash
git log master --oneline | grep -E "bitcoin/bitcoin#(PR1|PR2|PR3|...)"
```
Example:
```bash
git log master --oneline | grep -E "bitcoin/bitcoin#(31423|32473|33050|33105)"
```
## Formatting for Release Notes
### 1. Generate the PR list with titles
Combine the above commands to get a formatted list:
```bash
# First, get the PR numbers
prs=$(git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq | tr '\n' '|' | sed 's/|$//')
# Then look up titles
git log master --oneline | grep -E "bitcoin/bitcoin#($prs)"
```
### 2. Format as markdown table
The output from the merge commit search can be transformed into a markdown table:
| PR Number | Title | Backport? |
|-----------|-------|-----------|
| #XXXXX | Description of the change | Yes/No |
### 3. Categorize for release notes
Group PRs by type based on their title prefixes. Default to Misc:
- **Validation**: `validation`, `consensus`
- **P2P Network**: `net`, `p2p`
- **Mempool**: `mempool`, `tx relay policy`, `policy`, `fee est`
- **Wallet**: `wallet`, `wallettool`
- **Mining**: `miner`, `mining`
- **Build**: `build`, `guix`, `depends`
- **Tests**: `test`, `qa`
- **Docs**: `doc`, `docs`
- **Misc**: `ci`, `contrib`
### 4. Get contributors for credits section
```bash
git log --format='- %aN' <tag>..HEAD | grep -v 'merge-script' | sort -fiu
```
### 5. Get supported systems
Find the supported systems string from the BASE_VERSION's historical release notes:
```bash
grep -A2 "is supported and" doc/release-notes/release-notes-<BASE_VERSION>.md | tail -2 | tr '\n' ' '
```
Example for v29.3rc1 (BASE_VERSION is v29.2):
```bash
grep -A2 "is supported and" doc/release-notes/release-notes-29.2.md | tail -2 | tr '\n' ' '
```
This extracts the line like `Linux Kernel 3.17+, macOS 13+, and Windows 10+`.
## Release notes format
See `release-notes-template.md` for the full template structure. Copy it to `doc/release-notes.md` and fill in:
- Replace `<VERSION>` with the version number (e.g., `30.1` or `29.3rc1`)
- Replace `<DIRNAME>` with the download directory path:
- Final releases: `bitcoin-core-X.Y/`
- Example: v28.3 → `bitcoin-core-28.3/`
- Release candidates: `bitcoin-core-X.Y/test.rcN/`
- Example: v29.1rc2 → `bitcoin-core-29.1/test.rc2/`
- Replace `<SUPPORTED_SYSTEMS>` with the appropriate string
- Add PR entries under the appropriate category sections
- Fill in the credits section with contributor names
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「minor-release-notes」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次