Skip to content

Commit

Permalink
ci-parser: Detect node-test-commit-lite.
Browse files Browse the repository at this point in the history
Fixes: nodejs#170
  • Loading branch information
priyank-p committed Mar 10, 2018
1 parent 2c350dd commit 4070ee4
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .ncu/cache/participation-sorted.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"user": "joyeecheung",
"date": "2018-02-23T18:42:16Z",
"url": "https://github.com/nodejs/node/issues/18961",
"type": "comment"
}
]
122 changes: 122 additions & 0 deletions .ncu/cache/participation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"addaleax": {
"url": "https://github.com/nodejs/node/pull/18966",
"date": "2018-02-23T21:33:38Z",
"isRelavent": true,
"type": "pull"
},
"ChALkeR": {
"url": "https://github.com/nodejs/admin/issues/72",
"date": "2018-02-24T00:52:15Z",
"isRelavent": true,
"type": "comment"
},
"cjihrig": {
"url": "https://github.com/nodejs/node/pull/18965",
"date": "2018-02-23T22:04:37Z",
"isRelavent": true,
"type": "review"
},
"danbev": {
"url": "https://github.com/nodejs/node/pull/18962",
"date": "2018-02-23T15:03:26Z",
"isRelavent": true,
"type": "comment"
},
"evanlucas": {
"url": "https://github.com/nodejs/node/pull/18959",
"date": "2018-02-23T13:55:45Z",
"isRelavent": true,
"type": "review"
},
"fhinkel": {
"url": "https://github.com/nodejs/node/pull/18936",
"date": "2018-02-23T13:22:08Z",
"isRelavent": true,
"type": "comment"
},
"Fishrock123": {
"url": "https://github.com/nodejs/node/pull/18965",
"date": "2018-02-24T00:11:31Z",
"isRelavent": true,
"type": "review"
},
"gibfahn": {
"url": "https://github.com/nodejs/Release/issues/312",
"date": "2018-02-22T22:59:55Z",
"isRelavent": true,
"type": "comment"
},
"jasnell": {
"url": "https://github.com/nodejs/node/pull/18966",
"date": "2018-02-23T22:29:54Z",
"isRelavent": true,
"type": "review"
},
"joyeecheung": {
"url": "https://github.com/nodejs/node/issues/18961",
"date": "2018-02-23T18:42:16Z",
"isRelavent": true,
"type": "comment"
},
"mcollina": {
"url": "https://github.com/nodejs/node/pull/18904",
"date": "2018-02-23T23:54:09Z",
"isRelavent": true,
"type": "comment"
},
"mhdawson": {
"url": "https://github.com/nodejs/mentorship/issues/10",
"date": "2018-02-22T17:34:37Z",
"isRelavent": true,
"type": "comment"
},
"MylesBorins": {
"url": "https://github.com/nodejs/admin/issues/72",
"date": "2018-02-23T23:40:12Z",
"isRelavent": true,
"type": "issue"
},
"ofrobots": {
"url": "https://github.com/nodejs/nan/pull/740",
"date": "2018-02-23T08:05:53Z",
"isRelavent": true,
"type": "pull"
},
"rvagg": {
"url": "https://github.com/nodejs/build/issues/1144",
"date": "2018-02-23T10:57:15Z",
"isRelavent": true,
"type": "comment"
},
"targos": {
"url": "https://github.com/nodejs/citgm/issues/547",
"date": "2018-02-23T17:19:29Z",
"isRelavent": true,
"type": "comment"
},
"thefourtheye": {
"url": "https://github.com/nodejs/node/pull/18843",
"date": "2018-02-19T05:26:10Z",
"isRelavent": true,
"type": "review"
},
"trevnorris": {
"url": "https://github.com/nodejs/TSC/issues/419",
"date": "2017-12-13T12:25:24Z",
"isRelavent": true,
"type": "comment"
},
"Trott": {
"url": "https://github.com/nodejs/node/pull/18968",
"date": "2018-02-24T00:31:33Z",
"isRelavent": true,
"type": "pull"
},
"cPhost": {
"url": "https://github.com/nodejs/node-core-utils/issues/118",
"date": "2018-02-23T13:48:39Z",
"isRelavent": true,
"type": "comment"
}
}
8 changes: 5 additions & 3 deletions lib/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ const LIBUV = 'LIBUV';
const NOINTL = 'NOINTL';
const V8 = 'V8';
const LINTER = 'LINTER';
const LITE = 'LITE';

const CI_TYPES = new Map([
[CITGM, { name: 'CITGM', re: /citgm/ }],
[FULL,
{ name: 'Full',
re: /node-test-pull-request|node-test-commit\// }],
re: /node-test-pull-request\/|node-test-commit\// }],
[BENCHMARK, { name: 'Benchmark', re: /benchmark/ }],
[LIBUV, { name: 'libuv', re: /libuv/ }],
[NOINTL, { name: 'No Intl', re: /nointl/ }],
[V8, { name: 'V8', re: /node-test-commit-v8/ }],
[LINTER, { name: 'Linter', re: /node-test-linter/ }]
[LINTER, { name: 'Linter', re: /node-test-linter/ }],
[LITE, { name: 'Lite', re: /node-test-.+-lite/ }]
]);

class CIParser {
Expand Down Expand Up @@ -78,7 +80,7 @@ class CIParser {

CIParser.TYPES = CI_TYPES;
CIParser.constants = {
CITGM, FULL, BENCHMARK, LIBUV, V8, NOINTL, LINTER
CITGM, FULL, BENCHMARK, LIBUV, V8, NOINTL, LINTER, LITE
};

module.exports = CIParser;

0 comments on commit 4070ee4

Please sign in to comment.