Skip to content

Commit 870c12e

Browse files
Merge pull request #170 from camilaagw/Add-CLA
Add Scala CLA
2 parents c4c054f + 456edd8 commit 870c12e

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/cla.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This document explains the developer workflow for making changes to the
44
[Scala Syntax (official) extension](https://marketplace.visualstudio.com/items?itemName=scala-lang.scala)
55
for Visual Studio Code.
66

7+
To contribute, make sure you have signed the [Scala CLA](http://typesafe.com/contribute/cla/scala), if not, please sign it.
8+
79
## Prerequisites
810

911
Make sure you have the following binaries installed:

project/scripts/check-cla.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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;

0 commit comments

Comments
 (0)