File tree 2 files changed +27
-0
lines changed
2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Scala CLA
2
+ on : [pull_request]
3
+ jobs :
4
+ check :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+ - run : ./project/scripts/check-cla.sh
9
+ env :
10
+ AUTHOR : ${{ github.event.pull_request.user.login }}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -eux
3
+
4
+ AUTHOR=$GITHUB_ACTOR
5
+ echo " Pull request submitted by $AUTHOR " ;
6
+ signed=$( curl -s https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR | jq -r " .signed" ) ;
7
+ if [ " $signed " = " true" ] ; then
8
+ echo " CLA check for $AUTHOR successful" ;
9
+ else
10
+ echo " CLA check for $AUTHOR failed" ;
11
+ echo " Please sign the Scala CLA to contribute to the Scala compiler." ;
12
+ echo " Go to https://www.lightbend.com/contribute/cla/scala and then" ;
13
+ echo " comment on the pull request to ask for a new check." ;
14
+ echo " " ;
15
+ echo " Check if CLA is signed: https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR " ;
16
+ exit 1;
17
+ fi ;
You can’t perform that action at this time.
0 commit comments