We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eaca4b commit b37a806Copy full SHA for b37a806
1 file changed
extra/ci_license_checks.sh
@@ -9,7 +9,9 @@ if [ -z "$SCANCODE_RESULTS" ]; then
9
exit 1
10
fi
11
12
-for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_SHA); do
+echo ref: $GITHUB_BASE_REF
13
+echo sha: $GITHUB_BASE_SHA
14
+for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_REF); do
15
if echo $NEW_FILE | grep -qE '\.(c|cpp|h|hpp|py|js|ts|go)$'; then
16
KIND="source"
17
else
@@ -34,7 +36,7 @@ for NEW_FILE in $(git diff --name-only --diff-filter=A $GITHUB_BASE_SHA); do
34
36
[ -z "$COPYRIGHT" ] && MSG="${MSG}${MSG:+ and }copyright"
35
37
MSG="Missing $MSG information"
38
# missing info in source files is an error, in other files is a warning
- if $IS_SOURCE ; then
39
+ if [ $KIND == "source" ] ; then
40
TYPE="error"
41
42
TYPE="warning"
0 commit comments