|
1 | 1 | import { t as setOutput } from "./utils-DQae65qb.mjs"; |
2 | | -//#region node_modules/.pnpm/voight-kampff-test@2.2.0/node_modules/voight-kampff-test/dist/index.mjs |
| 2 | +//#region node_modules/.pnpm/voight-kampff-test@2.2.1/node_modules/voight-kampff-test/dist/index.mjs |
3 | 3 | var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => { |
4 | 4 | if (i && typeof i == `object` || typeof i == `function`) for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, { |
5 | 5 | get: ((e) => i[e]).bind(null, d), |
@@ -66,9 +66,9 @@ const l = { |
66 | 66 | CREATE_BURST_HIGH: 8, |
67 | 67 | POINTS_CREATE_BURST_EXTREME: 35, |
68 | 68 | POINTS_CREATE_BURST_HIGH: 25, |
69 | | - HOURS_ACTIVE_EXTREME: 18, |
70 | | - EVENTS_PER_HOUR_MIN: 1.5, |
71 | | - POINTS_24_7_ACTIVITY: 30, |
| 69 | + HOURS_ACTIVE_EXTREME: 21, |
| 70 | + EVENTS_PER_HOUR_MIN: 2, |
| 71 | + POINTS_24_7_ACTIVITY: 25, |
72 | 72 | EVENT_TYPE_DIVERSITY_MIN: 2, |
73 | 73 | POINTS_LOW_DIVERSITY: 20, |
74 | 74 | ISSUE_COMMENT_SPAM_WINDOW_MINUTES: 2, |
@@ -417,7 +417,7 @@ function m({ createdAt: e, reposCount: t, accountName: n, events: r }) { |
417 | 417 | }); |
418 | 418 | let c = a < l.AGE_YOUNG_ACCOUNT; |
419 | 419 | if (r.length >= l.MIN_EVENTS_FOR_ANALYSIS) { |
420 | | - let e = r.filter((e) => e.type === `CreateEvent`); |
| 420 | + let e = r.filter((e) => e.type === `CreateEvent` && e.payload?.ref_type === `repository`); |
421 | 421 | if (e.length >= l.CREATE_EVENTS_MIN) { |
422 | 422 | let t = e.map((e) => (0, f.default)(e.created_at)).sort((e, t) => e.valueOf() - t.valueOf()), n = 0, r = 0; |
423 | 423 | for (let e = 0; e < t.length; e++) { |
|
0 commit comments