File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 11name : DEV/QA PR # Lint then Test on Pull Requests
22
33on :
4- workflow_dispatch : # allows manual trigger
4+ # workflow_dispatch: # allows manual trigger
55 pull_request :
66 branches :
77 - main # runs on PRs targeting main
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
2761
2862 - run : flake8 . --config setup.cfg
2963 - run : pylint --rcfile setup.cfg .
64+
3065 qa :
3166 strategy :
3267 matrix :
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and 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
You can’t perform that action at this time.
0 commit comments