Skip to content

Commit 7aba7b0

Browse files
szymon-rdKordyjan
authored andcommitted
Allow PRs for GH actions bot
1 parent 8772756 commit 7aba7b0

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

project/scripts/check-cla.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
set -eux
33

44
echo "Pull request submitted by $AUTHOR";
5-
signed=$(curl -s https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR | jq -r ".signed");
6-
if [ "$signed" = "true" ] ; then
5+
if [ "$AUTHOR" = "github-actions[bot]" ] ; then
76
echo "CLA check for $AUTHOR successful";
87
else
9-
echo "CLA check for $AUTHOR failed";
10-
echo "Please sign the Scala CLA to contribute to the Scala compiler.";
11-
echo "Go to https://www.lightbend.com/contribute/cla/scala and then";
12-
echo "comment on the pull request to ask for a new check.";
13-
echo "";
14-
echo "Check if CLA is signed: https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR";
15-
exit 1;
8+
signed=$(curl -s "https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR" | jq -r ".signed");
9+
if [ "$signed" = "true" ] ; then
10+
echo "CLA check for $AUTHOR successful";
11+
else
12+
echo "CLA check for $AUTHOR failed";
13+
echo "Please sign the Scala CLA to contribute to the Scala compiler.";
14+
echo "Go to https://www.lightbend.com/contribute/cla/scala and then";
15+
echo "comment on the pull request to ask for a new check.";
16+
echo "";
17+
echo "Check if CLA is signed: https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR";
18+
exit 1;
19+
fi;
1620
fi;

0 commit comments

Comments
 (0)