Generate release notes for NNCF
Contexts
Files:
ReleaseNotes.mdsrc/nncf/version.py.github/skills/generate_release_notes/parse_commits.sh
Execution Logic
- Extract Commits: Run
.github/skills/generate_release_notes/parse_commits.sh. Format of stdout:AUTHOR;COMMIT_HASH;COMMIT_MESSAGE. - Read Version: Get new version from
src/nncf/version.py. - Categorize by Backend: Prepend backend name in brackets based on keywords:
- OpenVINO:
openvino,ov,npu. - PyTorch:
pytorch,torch,pt,cuda,fx,torch.fx. - ONNX:
onnx,onnxruntime,ort. - If no backend keywords, no prefix.
- Do not add backend prefixes to the
RequirementsandGeneralsections.
- OpenVINO:
- Formatting:
- Each line:
(Backend) Description (https://github.com/openvinotoolkit/nncf/pull/PR_NUMBER) - Sort subcategories by backend: General first, then OpenVINO, PyTorch, ONNX.
- If message is unclear, use:
git log --format=%B -n 1 COMMIT_HASH.
- Each line:
- Template: Update
ReleaseNotes.mdusing this structure (use- ...for empty sections):
## New in Release X.Y.Z
Breaking changes:
- ...
General:
- ...
Features:
- ...
Fixes:
- ...
Improvements:
- ...
Tutorials:
- ...
Known issues:
- ...
Deprecations/Removals:
- ...
Requirements:
- ...
Constraints
- Update only
ReleaseNotes.md. - Use only parse_commits.sh for commit lists.
- Use only
git log --format=%B -n 1 COMMIT_HASHto get commit messages if needed.
Source: openvinotoolkit/nncf — distributed by TomeVault.