docs(release-skills): add third-party contributor attribution to release workflow
This commit is contained in:
parent
b1af3a3e45
commit
f9f168fc1f
|
|
@ -114,11 +114,17 @@ Display version change: `1.2.3 → 1.3.0`
|
||||||
For each detected changelog file:
|
For each detected changelog file:
|
||||||
|
|
||||||
1. **Identify language** from filename suffix
|
1. **Identify language** from filename suffix
|
||||||
2. **Generate content in that language**:
|
2. **Detect third-party contributors**:
|
||||||
|
- Check merge commits: `git log ${LAST_TAG}..HEAD --merges --pretty=format:"%H %s"`
|
||||||
|
- For each merged PR, identify the PR author via `gh pr view <number> --json author --jq '.author.login'`
|
||||||
|
- Compare against repo owner (`gh repo view --json owner --jq '.owner.login'`)
|
||||||
|
- If PR author ≠ repo owner → third-party contributor
|
||||||
|
3. **Generate content in that language**:
|
||||||
- Section titles in target language
|
- Section titles in target language
|
||||||
- Change descriptions written naturally in target language (not translated)
|
- Change descriptions written naturally in target language (not translated)
|
||||||
- Date format: YYYY-MM-DD (universal)
|
- Date format: YYYY-MM-DD (universal)
|
||||||
3. **Insert at file head** (preserve existing content)
|
- **Third-party contributions**: Append contributor attribution `(by @username)` to the changelog entry
|
||||||
|
4. **Insert at file head** (preserve existing content)
|
||||||
|
|
||||||
**Section Title Translations** (built-in):
|
**Section Title Translations** (built-in):
|
||||||
|
|
||||||
|
|
@ -138,6 +144,7 @@ For each detected changelog file:
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
- Description of new feature
|
- Description of new feature
|
||||||
|
- Description of third-party contribution (by @username)
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Description of fix
|
- Description of fix
|
||||||
|
|
@ -148,6 +155,12 @@ For each detected changelog file:
|
||||||
|
|
||||||
Only include sections that have changes. Omit empty sections.
|
Only include sections that have changes. Omit empty sections.
|
||||||
|
|
||||||
|
**Third-Party Attribution Rules**:
|
||||||
|
- Only add `(by @username)` for contributors who are NOT the repo owner
|
||||||
|
- Use GitHub username with `@` prefix
|
||||||
|
- Place at the end of the changelog entry line
|
||||||
|
- Apply to all languages consistently (always use `(by @username)` format, not translated)
|
||||||
|
|
||||||
**Multi-language Example**:
|
**Multi-language Example**:
|
||||||
|
|
||||||
English (CHANGELOG.md):
|
English (CHANGELOG.md):
|
||||||
|
|
@ -155,7 +168,7 @@ English (CHANGELOG.md):
|
||||||
## 1.3.0 - 2026-01-22
|
## 1.3.0 - 2026-01-22
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
- Add user authentication module
|
- Add user authentication module (by @contributor1)
|
||||||
- Support OAuth2 login
|
- Support OAuth2 login
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
@ -167,7 +180,7 @@ Chinese (CHANGELOG.zh.md):
|
||||||
## 1.3.0 - 2026-01-22
|
## 1.3.0 - 2026-01-22
|
||||||
|
|
||||||
### 新功能
|
### 新功能
|
||||||
- 新增用户认证模块
|
- 新增用户认证模块 (by @contributor1)
|
||||||
- 支持 OAuth2 登录
|
- 支持 OAuth2 登录
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
@ -179,7 +192,7 @@ Japanese (CHANGELOG.ja.md):
|
||||||
## 1.3.0 - 2026-01-22
|
## 1.3.0 - 2026-01-22
|
||||||
|
|
||||||
### 新機能
|
### 新機能
|
||||||
- ユーザー認証モジュールを追加
|
- ユーザー認証モジュールを追加 (by @contributor1)
|
||||||
- OAuth2 ログインをサポート
|
- OAuth2 ログインをサポート
|
||||||
|
|
||||||
### 修正
|
### 修正
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue