Skip to content

Commit

Permalink
labels: add quic label (#260)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
jasnell and richardlau authored Jun 18, 2020
1 parent c829ad5 commit b5d80bd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/node-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const subSystemLabelsMap = new Map([
[/^src\/node_report/, ['c++', 'report']],
[/^src\/node_wasi/, ['c++', 'wasi']],
[/^src\/node_worker/, ['c++', 'worker']],
[/^src\/quic\/*/, ['c++', 'quic']],
[/^src\/node_bob*/, ['c++', 'quic']],

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

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

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

0 comments on commit b5d80bd

Please sign in to comment.