Skip to content

Commit

Permalink
Merge pull request NixOS#303211 from risicle/ris-check-cherry-picks-e…
Browse files Browse the repository at this point in the history
…mpty-lines

check-cherry-picks.sh maintainer script: fix handling of cherry-pick-less branches
  • Loading branch information
LeSuisse authored Apr 10, 2024
2 parents 9207dab + dc4f218 commit b607b94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/scripts/check-cherry-picks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ PICKABLE_BRANCHES=${PICKABLE_BRANCHES:-master staging release-??.?? staging-??.?
problem=0

while read new_commit_sha ; do
if [ -z "$new_commit_sha" ] ; then
continue # skip empty lines
fi
if [ "$GITHUB_ACTIONS" = 'true' ] ; then
echo "::group::Commit $new_commit_sha"
else
Expand Down Expand Up @@ -57,6 +60,8 @@ while read new_commit_sha ; do

$range_diff_common --color

echo "Note this should not necessarily be treated as a hard fail, but a reviewer's attention should" \
"be drawn to it and github actions have no way of doing that but to raise a 'failure'"
problem=1
else
echo "$original_commit_sha highly similar to $new_commit_sha"
Expand Down

0 comments on commit b607b94

Please sign in to comment.