File tree 9 files changed +3563
-4691
lines changed
runner/runners/utils/_tests
9 files changed +3563
-4691
lines changed Original file line number Diff line number Diff line change 10
10
- uses : actions/checkout@v4
11
11
- uses : actions/setup-node@v4
12
12
with :
13
- node-version : " 18 "
13
+ node-version : " 20 "
14
14
15
15
# Get local dependencies & test
16
16
- run : yarn install
Original file line number Diff line number Diff line change 14
14
"editor.formatOnSave" : true ,
15
15
"debug.node.autoAttach" : " on" ,
16
16
"cSpell.words" : [
17
- " APIPR" ,
18
- " BITBUCKETSERVER" ,
19
- " Chainsmoker" ,
20
- " Commenter" ,
21
17
" accum" ,
18
+ " ahobson" ,
19
+ " alexandermendes" ,
22
20
" apipr" ,
21
+ " APIPR" ,
23
22
" ashfurrow" ,
24
23
" autogenerated" ,
25
24
" bdotdub" ,
26
25
" bitbucket" ,
26
+ " BITBUCKETSERVER" ,
27
27
" bitrise" ,
28
28
" buildkite" ,
29
29
" caffodian" ,
30
+ " Chainsmoker" ,
31
+ " CIAPI" ,
30
32
" codefresh" ,
31
33
" codemagic" ,
32
34
" codeship" ,
35
+ " Commenter" ,
33
36
" commit's" ,
34
37
" dangerfile" ,
35
38
" dangerfiles" ,
39
+ " davidhouweling" ,
36
40
" deletable" ,
41
+ " denieler" ,
37
42
" dfalling" ,
43
+ " doniyor" ,
38
44
" dsljson" ,
39
45
" dtslint" ,
40
46
" eigen" ,
41
47
" fbartho" ,
42
48
" filepaths" ,
49
+ " Fixtured" ,
50
+ " fsevents" ,
43
51
" gantman" ,
52
+ " GHSA" ,
44
53
" gitdata" ,
45
54
" globbed" ,
55
+ " gzaripov" ,
56
+ " hellocore" ,
57
+ " hmcc" ,
58
+ " hmschreiner" ,
46
59
" hongrich" ,
60
+ " Honza" ,
47
61
" hyperlinker" ,
62
+ " igorbek" ,
48
63
" ints" ,
49
64
" isobject" ,
65
+ " jamiebuilds" ,
50
66
" jira" ,
51
67
" jsondsl" ,
52
68
" jsonpointer" ,
55
71
" kwonoj" ,
56
72
" lockfile" ,
57
73
" macklinu" ,
74
+ " mapvalues" ,
75
+ " meloni" ,
76
+ " melvinvermeer" ,
77
+ " memfs" ,
58
78
" micromatch" ,
59
79
" mifi" ,
60
80
" mlabrum" ,
81
+ " Moni" ,
61
82
" nevercode" ,
62
83
" octokit" ,
84
+ " offrey" ,
85
+ " openapi" ,
86
+ " orta" ,
87
+ " ozzieorca" ,
88
+ " pagelen" ,
63
89
" patriksimek" ,
64
90
" peterjgrainger" ,
91
+ " pgoudreau" ,
92
+ " pinkasey" ,
65
93
" prdsl" ,
94
+ " prepush" ,
66
95
" repo" ,
67
96
" repo's" ,
97
+ " rogerluan" ,
98
+ " Rouby" ,
99
+ " rwvf" ,
100
+ " rzgry" ,
68
101
" samdmarshall" ,
102
+ " shyim" ,
103
+ " sogame" ,
104
+ " Therox" ,
69
105
" tldr" ,
70
106
" tooling" ,
71
107
" tooling's" ,
72
108
" transpiler" ,
109
+ " transpiling" ,
73
110
" tychota" ,
74
111
" type'd" ,
112
+ " typedoc" ,
113
+ " typescriptify" ,
114
+ " unfernandito" ,
75
115
" urkle" ,
116
+ " valscion" ,
76
117
" vendored" ,
77
118
" voca" ,
78
119
" vsts" ,
120
+ " wardpeet" ,
79
121
" webhook" ,
80
122
" wizardishungry"
81
123
]
Original file line number Diff line number Diff line change 16
16
17
17
<!-- Your comment below this -->
18
18
19
+ - Update ` @octokit/rest ` to prevent transitive CVEs - Fixes [ #1479 ] ( https://github.com/danger/danger-js/issues/1479 ) [ @fbartho ]
19
20
- Clean up dead discussion link - Fixes [ #1467 ] ( https://github.com/danger/danger-js/issues/1467 ) [ @fbartho ]
20
21
21
22
<!-- Your comment above this -->
Original file line number Diff line number Diff line change 1
1
# Test against this version of Node.js
2
2
environment :
3
- nodejs_version : " 18 "
3
+ nodejs_version : " 20 "
4
4
5
5
# Install scripts. (runs after repo cloning)
6
6
install :
Original file line number Diff line number Diff line change 78
78
"type" : " git" ,
79
79
"url" : " git+https://github.com/danger/danger-js.git"
80
80
},
81
- "packageManager" :
" [email protected] .19 " ,
81
+ "packageManager" :
" [email protected] .22 " ,
82
82
"keywords" : [
83
83
" danger" ,
84
84
" ci"
135
135
"nock" : " ^13.2.0" ,
136
136
"pkg" : " ^5.8.1" ,
137
137
"prettier" : " ^2.5.1" ,
138
- "release-it" : " ^13.5 .2" ,
138
+ "release-it" : " ^18.1 .2" ,
139
139
"shx" : " ^0.3.4" ,
140
140
"ts-jest" : " ^28.0.0" ,
141
141
"ts-node" : " ^10.9.2" ,
145
145
},
146
146
"dependencies" : {
147
147
"@gitbeaker/rest" : " ^38.0.0" ,
148
- "@octokit/rest" : " ^18.12.0 " ,
148
+ "@octokit/rest" : " ^20.1.2 " ,
149
149
"async-retry" : " 1.2.3" ,
150
150
"chalk" : " ^2.3.0" ,
151
151
"commander" : " ^2.18.0" ,
165
165
"lodash.keys" : " ^4.0.8" ,
166
166
"lodash.mapvalues" : " ^4.6.0" ,
167
167
"lodash.memoize" : " ^4.1.2" ,
168
- "memfs-or-file-map-to-github-branch" : " ^1.2.1 " ,
168
+ "memfs-or-file-map-to-github-branch" : " ^1.3.0 " ,
169
169
"micromatch" : " ^4.0.4" ,
170
170
"node-cleanup" : " ^2.1.2" ,
171
171
"node-fetch" : " ^2.6.7" ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export async function retryableFetch(
45
45
{
46
46
retries : retries ,
47
47
onRetry : ( error , attempt ) => {
48
- warn ( error . message )
48
+ warn ( ( error as any ) ? .message )
49
49
warn ( `Retry ${ attempt } of ${ retries } .` )
50
50
} ,
51
51
}
Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ export const createOrUpdatePR =
171
171
}
172
172
173
173
d ( "Creating a branch" )
174
- await filepathContentsMapToUpdateGitHubBranch ( api , fileMap , branchSettings )
174
+ // temporary hack because typescript thinks we're using two different definitions of Octokit?
175
+ const tmpHackApi = api as any as Parameters < typeof filepathContentsMapToUpdateGitHubBranch > [ 0 ]
176
+ await filepathContentsMapToUpdateGitHubBranch ( tmpHackApi , fileMap , branchSettings )
175
177
176
178
d ( "Getting open PRs" )
177
179
const prs = await api . pulls . list ( { repo, owner, state : "open" } )
Original file line number Diff line number Diff line change @@ -95,9 +95,14 @@ describe("babelify", () => {
95
95
const dangerfile = `import { a } from 'lodash';
96
96
a();`
97
97
98
- const existsSyncMock = fs . existsSync as jest . Mock
99
98
const actualFs = jest . requireActual ( "fs" ) as typeof fs
99
+ const existsSyncMock = fs . existsSync as jest . Mock
100
+ const statSyncMock = fs . statSync as jest . Mock
100
101
existsSyncMock . mockImplementation ( ( path ) => path === "/a/b/babel.config.js" || actualFs . existsSync ( path ) )
102
+ statSyncMock . mockImplementation ( ( path ) =>
103
+ // browserslist gets called by babelify, and browserslist checks for all imported things to see if they're directories
104
+ path === "/a/b/babel.config.js" ? { isDirectory : ( ) => false } : actualFs . statSync ( path )
105
+ )
101
106
jest . mock (
102
107
"/a/b/babel.config.js" ,
103
108
( ) => {
You can’t perform that action at this time.
0 commit comments