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 1
1
bin /asc text eol =lf
2
2
dist /asc.js - diff
3
3
dist /assemblyscript.js - diff
4
+ scripts /check-pr.sh eol =lf
Original file line number Diff line number Diff line change 1
1
language : node_js
2
+ notifications :
3
+ email : false
4
+ stages :
5
+ - name : check-pr
6
+ if : type = pull_request
2
7
jobs :
3
8
include :
4
9
10
+ - stage : check-pr
11
+ node_js : lts/*
12
+ script : ./scripts/check-pr.sh
13
+ env : Checks contributing guidelines before testing pull requests
14
+
5
15
- stage : lint
6
16
node_js : node
7
17
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 {
541
541
// check return type
542
542
var thisReturnType = this . returnType ;
543
543
var targetReturnType = target . returnType ;
544
- return thisReturnType == targetReturnType || this . returnType . isAssignableTo ( target . returnType ) ;
544
+ return thisReturnType == targetReturnType || thisReturnType . isAssignableTo ( targetReturnType ) ;
545
545
}
546
546
547
547
/** Converts this signature to a function type string. */
You can’t perform that action at this time.
0 commit comments