From b7e5ea2d45ed904e167c6b781f1a66a9c49fbcf7 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Thu, 5 Mar 2026 09:56:13 +0300 Subject: [PATCH] Fix effect ordering test, add contributors to release notes Fix renderer-effects test: check drawStrokeWithAlign call site instead of drawNodeStroke helper definition (stroke align refactor moved the method). Add a step to build.yml that resolves git authors to GitHub usernames via the compare API and appends a Contributors section to release notes. --- .github/workflows/build.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9bf7bb68f..76a1c6439 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,7 @@ jobs: id: changelog uses: ffurrer2/extract-release-notes@v2 - - name: Add contributors to release notes + - name: Add new contributors to release notes if: startsWith(github.ref, 'refs/tags/v') id: release_body env: @@ -73,20 +73,27 @@ jobs: RELEASE_NOTES: ${{ steps.changelog.outputs.release_notes }} run: | PREV_TAG=$(git tag -l 'v*' --sort=-version:refname | sed -n '2p') - CONTRIBUTORS="" + NEW="" if [ -n "$PREV_TAG" ]; then - CONTRIBUTORS=$(gh api "repos/${{ github.repository }}/compare/${PREV_TAG}...${{ github.ref_name }}" \ - --jq '[.commits[].author.login // empty] | unique | map("@" + .) | join(", ")' 2>/dev/null || true) + PREV=$(git log "$PREV_TAG" --format='%aE' | sort -u) + NEW=$(comm -23 \ + <(git log "${PREV_TAG}..${{ github.ref_name }}" --format='%aE' | sort -u) \ + <(echo "$PREV") \ + | while read -r email; do + git log "${PREV_TAG}..${{ github.ref_name }}" --format="%aE %aN" \ + | grep "^${email} " | head -1 | sed 's/^[^ ]* //' + done) fi + EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) { echo "body<<$EOF" printf '%s\n' "$RELEASE_NOTES" - if [ -n "$CONTRIBUTORS" ]; then + if [ -n "$NEW" ]; then echo "" - echo "### Contributors" + echo "### New Contributors" echo "" - echo "$CONTRIBUTORS" + echo "$NEW" | while read -r name; do echo "- $name"; done fi echo "$EOF" } >> "$GITHUB_OUTPUT"