Skip to content

Commit 127e2a7

Browse files
committed
Align generate-release-contributors.sh across repos
1 parent 7e07cab commit 127e2a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/scripts/generate-release-contributors.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from_version=$1
1111

1212
# get the date of the first commit that was not in the from_version
13-
from=$(git log --reverse --pretty=format:"%cI" $from_version..HEAD | head -1)
13+
from=$(git log --reverse --pretty=format:"%cI" "$from_version..HEAD" | head -1)
1414

1515
# get the last commit on main that was included in the release
1616
to=$(git merge-base origin/main HEAD | xargs git log -1 --pretty=format:"%cI")
@@ -69,22 +69,22 @@ query($q: String!, $endCursor: String) {
6969
}
7070
}
7171
' --jq '.data.search.edges.[].node.body' \
72-
| grep -oE "#[0-9]{3,}$|#[0-9]{3,}[^0-9<&#;]|$GITHUB_REPOSITORY/issues/[0-9]{3,}" \
73-
| grep -oE "[0-9]{3,}" \
72+
| grep -oE "#[0-9]{4,}$|#[0-9]{4,}[^0-9<]|$GITHUB_REPOSITORY/issues/[0-9]{4,}" \
73+
| grep -oE "[0-9]{4,}" \
7474
| xargs -I{} gh issue view {} --json 'author,url' --jq '[.author.login,.url]' \
7575
| grep -v '/pull/' \
7676
| sed 's/^\["//' \
7777
| sed 's/".*//')
7878

79-
# TODO (trask) can remove dependabot line after next release
80-
echo $contributors1 $contributors2 \
79+
echo "$contributors1" "$contributors2" \
8180
| sed 's/ /\n/g' \
8281
| sort -uf \
82+
| grep -v codecov \
8383
| grep -v copilot-pull-request-reviewer \
8484
| grep -v copilot-swe-agent \
8585
| grep -v github-actions \
8686
| grep -v github-advanced-security \
8787
| grep -v linux-foundation-easycla \
88-
| grep -v renovate \
8988
| grep -v otelbot \
89+
| grep -v renovate \
9090
| sed 's/^/@/'

0 commit comments

Comments
 (0)