Skip to content

Commit aa0c9b4

Browse files
authored
[ci-skip] Merge branch 'fix/changelog-5.0' (#19) into main
* fix: ensure changelog contents changed before all * chore: updated logic if changelog check step * chore: disable manual trigger of this action * chore: updated action DEV-QA-PR.yml * chore: update changelog with latest 0.2.3 changes
1 parent 12849bf commit aa0c9b4

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/DEV-QA-PR.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: DEV/QA PR # Lint then Test on Pull Requests
22

33
on:
4-
workflow_dispatch: # allows manual trigger
4+
# workflow_dispatch: # allows manual trigger
55
pull_request:
66
branches:
77
- main # runs on PRs targeting main
@@ -14,6 +14,40 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Ensure CHANGELOG.md updated when required
21+
run: |
22+
set -e
23+
24+
BASE_SHA=${{ github.event.pull_request.base.sha }}
25+
HEAD_SHA=${{ github.sha }}
26+
27+
if [ -z "$BASE_SHA" ]; then
28+
echo "❌ ERROR: pull_request.base.sha is missing."
29+
echo "If you are running this locally with act, did you forget to provide a pull_request payload.json?"
30+
exit 1
31+
fi
32+
33+
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMR "$BASE_SHA" "$HEAD_SHA")
34+
35+
echo "Changed files:"
36+
echo "$CHANGED_FILES"
37+
38+
IGNORE_PATTERN="^(CHANGELOG.md$|README.md$|CONTRIBUTING.md$|LICENSE$|\.gitignore$|setup.cfg$|\.vscode/|\.github/|tests/|assets/)"
39+
40+
REQUIRES_CHANGELOG=$(echo "$CHANGED_FILES" | grep -Ev "$IGNORE_PATTERN" || true)
41+
42+
if [ -n "$REQUIRES_CHANGELOG" ]; then
43+
if ! echo "$CHANGED_FILES" | grep -q "^CHANGELOG.md$"; then
44+
echo "❌ ERROR: Code changes detected but CHANGELOG.md was not updated."
45+
exit 1
46+
fi
47+
echo "✅ CHANGELOG.md updated for code changes."
48+
else
49+
echo "⚠️ Only docs/config/CI changes detected. CHANGELOG not required."
50+
fi
1751
1852
- name: Set up Python
1953
uses: actions/setup-python@v5
@@ -27,6 +61,7 @@ jobs:
2761
2862
- run: flake8 . --config setup.cfg
2963
- run: pylint --rcfile setup.cfg .
64+
3065
qa:
3166
strategy:
3267
matrix:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.3] - 2026-02-17
9+
10+
### Changed
11+
12+
- Updated the extension metadata to ensure compatibility with the latest Blender version. No functional changes in this update
13+
814
## [0.2.2] - 2025-10-12
915

1016
### Added

0 commit comments

Comments
 (0)