Skip to content

Commit

Permalink
Merge pull request #11650 from amaltaro/fix-11640-take2
Browse files Browse the repository at this point in the history
Fix buildrelease for when there are no changes between releases
  • Loading branch information
amaltaro authored Jul 11, 2023
2 parents eb9cf78 + 66c6e16 commit 2613980
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/buildrelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ echo "" >> $TMP_HASHES_SUBJ_AUTHOR
# Use github public API to fetch pull request # from commit hash

cat $TMP_HASHES_SUBJ_AUTHOR | while read commitline; do
if [ -z "$commitline" ]
then
continue # line is empty
fi
HASH_ID=$(echo $commitline | awk '{print $1}')
PR=$(curl -s https://api.github.com/repos/dmwm/WMCore/commits/$HASH_ID/pulls | grep -Po '\"html_url\": \"https://github.com/dmwm/WMCore/pull/\K[0-9]+' | sort | uniq)
# remove hash_id from the commit line
Expand Down

0 comments on commit 2613980

Please sign in to comment.