From 127e2a72f05a01c624723512d8ff46f2e9456cf4 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 27 Jan 2026 19:24:59 -0800 Subject: [PATCH 1/2] Align generate-release-contributors.sh across repos --- .github/scripts/generate-release-contributors.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/generate-release-contributors.sh b/.github/scripts/generate-release-contributors.sh index 3219318d3..583a63b31 100755 --- a/.github/scripts/generate-release-contributors.sh +++ b/.github/scripts/generate-release-contributors.sh @@ -10,7 +10,7 @@ from_version=$1 # get the date of the first commit that was not in the from_version -from=$(git log --reverse --pretty=format:"%cI" $from_version..HEAD | head -1) +from=$(git log --reverse --pretty=format:"%cI" "$from_version..HEAD" | head -1) # get the last commit on main that was included in the release to=$(git merge-base origin/main HEAD | xargs git log -1 --pretty=format:"%cI") @@ -69,22 +69,22 @@ query($q: String!, $endCursor: String) { } } ' --jq '.data.search.edges.[].node.body' \ - | grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<&#;]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \ - | grep -oE "[0-9]{3,}" \ + | grep -oE "#[0-9]{4,}$|#[0-9]{4,}[^0-9<]|$GITHUB_REPOSITORY/issues/[0-9]{4,}" \ + | grep -oE "[0-9]{4,}" \ | xargs -I{} gh issue view {} --json 'author,url' --jq '[.author.login,.url]' \ | grep -v '/pull/' \ | sed 's/^\["//' \ | sed 's/".*//') -# TODO (trask) can remove dependabot line after next release -echo $contributors1 $contributors2 \ +echo "$contributors1" "$contributors2" \ | sed 's/ /\n/g' \ | sort -uf \ + | grep -v codecov \ | grep -v copilot-pull-request-reviewer \ | grep -v copilot-swe-agent \ | grep -v github-actions \ | grep -v github-advanced-security \ | grep -v linux-foundation-easycla \ - | grep -v renovate \ | grep -v otelbot \ + | grep -v renovate \ | sed 's/^/@/' From 8ef625e1e588fb4e8a425cef0278dc593a5f9d88 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Fri, 6 Feb 2026 16:01:28 -0800 Subject: [PATCH 2/2] up --- .github/scripts/generate-release-contributors.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/generate-release-contributors.sh b/.github/scripts/generate-release-contributors.sh index 583a63b31..f7f903153 100755 --- a/.github/scripts/generate-release-contributors.sh +++ b/.github/scripts/generate-release-contributors.sh @@ -52,6 +52,8 @@ query($q: String!, $endCursor: String) { # this query captures authors of issues which have had PRs in the current range reference the issue # but not necessarily through closingIssuesReferences (e.g. addressing just a part of an issue) +# +# note: [^0-9<&#;] below excludes HTML entity markers to avoid matching Ӓ as issue #1234 contributors2=$(gh api graphql --paginate -F q="repo:$GITHUB_REPOSITORY is:pr base:main is:merged merged:$from..$to" -f query=' query($q: String!, $endCursor: String) { search(query: $q, type: ISSUE, first: 100, after: $endCursor) { @@ -69,8 +71,8 @@ query($q: String!, $endCursor: String) { } } ' --jq '.data.search.edges.[].node.body' \ - | grep -oE "#[0-9]{4,}$|#[0-9]{4,}[^0-9<]|$GITHUB_REPOSITORY/issues/[0-9]{4,}" \ - | grep -oE "[0-9]{4,}" \ + | grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<&#;]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \ + | grep -oE "[0-9]{3,}" \ | xargs -I{} gh issue view {} --json 'author,url' --jq '[.author.login,.url]' \ | grep -v '/pull/' \ | sed 's/^\["//' \