Skip to content

Commit

Permalink
Fix CLA checks after domain change of CLA check server (#22148)
Browse files Browse the repository at this point in the history
`https://www.lightbend.com/contribute/cla/scala/check/` now is a
redirect to `https://contribute.akka.io/contribute/cla/scala/check`.
It's breaking CLA check becouse curl by default does not follow
redirects
  • Loading branch information
hamzaremmal authored Dec 5, 2024
2 parents 7d9771d + 191535b commit c61897d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/scripts/check-cla.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ echo "Pull request submitted by $AUTHOR";
if [[ "$AUTHOR" == "github-actions[bot]" || "$AUTHOR" == "dependabot[bot]" ]] ; then
echo "CLA check for $AUTHOR successful";
else
signed=$(curl -s "https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR" | jq -r ".signed");
signed=$(curl -L -s "https://contribute.akka.io/contribute/cla/scala/check/$AUTHOR" | jq -r ".signed");
if [ "$signed" = "true" ] ; then
echo "CLA check for $AUTHOR successful";
else
echo "CLA check for $AUTHOR failed";
echo "Please sign the Scala CLA to contribute to the Scala compiler.";
echo "Go to https://www.lightbend.com/contribute/cla/scala and then";
echo "Go to https://contribute.akka.io/contribute/cla/scala and then";
echo "comment on the pull request to ask for a new check.";
echo "";
echo "Check if CLA is signed: https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR";
echo "Check if CLA is signed: https://contribute.akka.io/contribute/cla/scala/check/$AUTHOR";
exit 1;
fi;
fi;

0 comments on commit c61897d

Please sign in to comment.