Skip to content

Commit b5d80bd

Browse files
jasnellrichardlau
andauthored
labels: add quic label (nodejs#260)
Co-authored-by: Richard Lau <[email protected]>
1 parent c829ad5 commit b5d80bd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/node-labels.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const subSystemLabelsMap = new Map([
3333
[/^src\/node_report/, ['c++', 'report']],
3434
[/^src\/node_wasi/, ['c++', 'wasi']],
3535
[/^src\/node_worker/, ['c++', 'worker']],
36+
[/^src\/quic\/*/, ['c++', 'quic']],
37+
[/^src\/node_bob*/, ['c++', 'quic']],
3638

3739
// don't label python files as c++
3840
[/^src\/.+\.py$/, 'lib / src'],
@@ -78,6 +80,8 @@ const subSystemLabelsMap = new Map([
7880
[/^deps\/uvwasi\//, 'wasi'],
7981
[/^deps\/nghttp2\/nghttp2\.gyp/, ['build', 'http2', 'dont-land-on-v6.x']],
8082
[/^deps\/nghttp2\//, ['http2', 'dont-land-on-v6.x']],
83+
[/^deps\/ngtcp2\//, 'quic'],
84+
[/^deps\/nghttp3\//, 'quic'],
8185
[/^deps\/([^/]+)/, '$1'],
8286

8387
/* JS subsystems */
@@ -94,6 +98,7 @@ const subSystemLabelsMap = new Map([
9498
[/^lib\/worker_threads.js$/, ['worker']],
9599
[/^lib\/internal\/url\.js$/, ['url-whatwg']],
96100
[/^lib\/internal\/modules\/esm/, 'ES Modules'],
101+
[/^lib\/internal\/quic\/*/, ['quic']],
97102
// All other lib/ files map directly
98103
[/^lib\/_(\w+)_\w+\.js?$/, '$1'], // e.g. _(stream)_wrap
99104
[/^lib(\/internal)?\/(\w+)\.js?$/, '$2'], // other .js files
@@ -104,8 +109,8 @@ const jsSubsystemList = [
104109
'debugger', 'assert', 'async_hooks', 'buffer', 'child_process', 'cluster',
105110
'console', 'crypto', 'dgram', 'dns', 'domain', 'events', 'esm', 'fs', 'http',
106111
'https', 'http2', 'module', 'net', 'os', 'path', 'process', 'querystring',
107-
'readline', 'repl', 'report', 'stream', 'string_decoder', 'timers', 'tls',
108-
'tty', 'url', 'util', 'v8', 'vm', 'wasi', 'worker', 'zlib'
112+
'quic', 'readline', 'repl', 'report', 'stream', 'string_decoder', 'timers',
113+
'tls', 'tty', 'url', 'util', 'v8', 'vm', 'wasi', 'worker', 'zlib'
109114
]
110115

111116
const exclusiveLabelsMap = new Map([
@@ -133,6 +138,8 @@ const exclusiveLabelsMap = new Map([
133138
// n-api is treated separately since it is not a JS core module but is still
134139
// considered a subsystem of sorts
135140
[/^doc\/api\/n-api.md$/, ['doc', 'n-api']],
141+
// quic
142+
[/^doc\/api\/quic.md$/, ['doc', 'quic']],
136143
// add worker label to PRs that affect doc/api/worker_threads.md
137144
[/^doc\/api\/worker_threads.md$/, ['doc', 'worker']],
138145
// automatically tag JS subsystem-specific API doc changes

0 commit comments

Comments
 (0)