Skip to content

Commit a2350e5

Browse files
authored
Merge pull request #148 from PolicyEngine/fix/auto-updater-changelog-fragment
fix: Add changelog fragment to auto-updater script
2 parents 22c459d + f4bd572 commit a2350e5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/scripts/update-package.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ if git diff --quiet uv.lock pyproject.toml; then
5858
exit 0
5959
fi
6060

61-
# 7. Create branch, commit, push, open PR
61+
# 7. Create branch, add changelog fragment, commit, push, open PR
6262
BRANCH="auto/update-${PACKAGE}-${LATEST}"
6363
git checkout -b "$BRANCH"
64-
git add uv.lock pyproject.toml
64+
65+
FRAGMENT="changelog.d/${PACKAGE}-${LATEST}.changed.md"
66+
echo "Update ${PACKAGE} to ${LATEST}." > "$FRAGMENT"
67+
68+
git add uv.lock pyproject.toml "$FRAGMENT"
6569
git commit -m "chore(deps): update ${PACKAGE} to ${LATEST}"
6670
git push -u origin "$BRANCH"
6771

changelog.d/147.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Auto-updater PRs now include a changelog fragment.

0 commit comments

Comments
 (0)