File tree Expand file tree Collapse file tree 4 files changed +41
-1
lines changed
Expand file tree Collapse file tree 4 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 11bin /asc text eol =lf
22dist /asc.js - diff
33dist /assemblyscript.js - diff
4+ scripts /check-pr.sh eol =lf
Original file line number Diff line number Diff line change 11language : node_js
2+ notifications :
3+ email : false
4+ stages :
5+ - name : check-pr
6+ if : type = pull_request
27jobs :
38 include :
49
10+ - stage : check-pr
11+ node_js : lts/*
12+ script : ./scripts/check-pr.sh
13+ env : Checks contributing guidelines before testing pull requests
14+
515 - stage : lint
616 node_js : node
717 script : npm run lint
Original file line number Diff line number Diff line change 1+ # Distribution files should not be modified
2+ STATUS=0
3+ if git --no-pager diff --name-only FETCH_HEAD $( git merge-base FETCH_HEAD $TRAVIS_BRANCH ) | grep -q " ^dist/" ; then
4+ STATUS=1 &&
5+ printf " \n" &&
6+ printf " The pull request includes changes to distribution files, but it shouldn't.\n" &&
7+ printf " Please see https://github.com/AssemblyScript/assemblyscript/blob/master/CONTRIBUTING.md\n" ;
8+ else
9+ printf " \n" &&
10+ printf " GOOD: The pull request does not include changes to distribution files.\n" ;
11+ fi
12+
13+ # Authors should have added themself to the NOTICE file
14+ AUTHOR=$( git log -1 --format=" %aE" )
15+ if [ -z " $AUTHOR " ]; then
16+ printf " \n" &&
17+ printf " Skipping NOTICE check: Commit does not include an email address.\n" ;
18+ else
19+ if grep -q " $AUTHOR " NOTICE; then
20+ printf " \n" &&
21+ printf " GOOD: Author is present in the NOTICE file.\n" ;
22+ else
23+ printf " \n" &&
24+ printf " Author does not appear to be listed in the NOTICE file, yet.\n" &&
25+ printf " Please see https://github.com/AssemblyScript/assemblyscript/blob/master/CONTRIBUTING.md\n" ;
26+ fi
27+ fi
28+
29+ exit $STATUS
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ export class Signature {
541541 // check return type
542542 var thisReturnType = this . returnType ;
543543 var targetReturnType = target . returnType ;
544- return thisReturnType == targetReturnType || this . returnType . isAssignableTo ( target . returnType ) ;
544+ return thisReturnType == targetReturnType || thisReturnType . isAssignableTo ( targetReturnType ) ;
545545 }
546546
547547 /** Converts this signature to a function type string. */
You can’t perform that action at this time.
0 commit comments