From 71daf1c4cfaaa3126613f30b6363ea01aed02f46 Mon Sep 17 00:00:00 2001 From: MatteoGabriele Date: Mon, 16 Mar 2026 18:52:15 +0100 Subject: [PATCH 1/2] feat: increase analyzed events --- app/components/Analysis/Card.vue | 4 +- package-lock.json | 406 ++-------- package.json | 3 +- .../api/identify-replicant/[username].get.ts | 28 +- .../verified-automations.test.ts.snap | 141 ---- ...-5a92586d-63b0-4675-8ea1-014552da1f7b.json | 709 ------------------ ...-6f5f10b3-13c9-452c-aa43-236a222ea91f.json | 702 ----------------- ...-af06c06a-4523-4949-9487-803829468d7e.json | 709 ------------------ ...-d9de21cb-5319-46fe-a807-0386e685a606.json | 233 ------ ...-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c.json | 709 ------------------ ...-77c6d7f7-addf-4443-b334-8d2980d59ee5.json | 709 ------------------ test/verified-automations.test.ts | 66 -- 12 files changed, 89 insertions(+), 4330 deletions(-) delete mode 100644 test/__snapshots__/verified-automations.test.ts.snap delete mode 100644 test/fixtures/automation/automation_user-5a92586d-63b0-4675-8ea1-014552da1f7b.json delete mode 100644 test/fixtures/automation/automation_user-6f5f10b3-13c9-452c-aa43-236a222ea91f.json delete mode 100644 test/fixtures/automation/automation_user-af06c06a-4523-4949-9487-803829468d7e.json delete mode 100644 test/fixtures/automation/automation_user-d9de21cb-5319-46fe-a807-0386e685a606.json delete mode 100644 test/fixtures/organic/organic_user-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c.json delete mode 100644 test/fixtures/organic/organic_user-77c6d7f7-addf-4443-b334-8d2980d59ee5.json delete mode 100644 test/verified-automations.test.ts diff --git a/app/components/Analysis/Card.vue b/app/components/Analysis/Card.vue index 827a1bd..35b52cc 100644 --- a/app/components/Analysis/Card.vue +++ b/app/components/Analysis/Card.vue @@ -14,6 +14,7 @@ const { data, status, error } = useFetch( query: { created_at: props.user.created_at, repos_count: props.user.public_repos, + pages: 2, }, key: analysisKey, watch: [username], @@ -149,7 +150,8 @@ useSeoAnalysis(identifyAnalysis, { class="underline" :to="`https://api.github.com/users/${username}/events?per_page=100`" > - events + events from this account

diff --git a/package-lock.json b/package-lock.json index ed8a726..9d55a38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,8 +23,7 @@ "@iconify-json/carbon": "^1.2.18", "@octokit/types": "^16.0.0", "@unocss/nuxt": "^66.6.0", - "unocss": "^66.6.0", - "vitest": "^4.0.18" + "unocss": "^66.6.0" } }, "node_modules/@antfu/install-pkg": { @@ -68,7 +67,6 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.29.0", "@babel/generator": "^7.29.0", @@ -1350,7 +1348,6 @@ "resolved": "https://registry.npmjs.org/@nuxt/kit/-/kit-4.3.1.tgz", "integrity": "sha512-UjBFt72dnpc+83BV3OIbCT0YHLevJtgJCHpxMX0YRKWLDhhbcDdUse87GtsQBrjvOzK7WUNUYLDS/hQLYev5rA==", "license": "MIT", - "peer": true, "dependencies": { "c12": "^3.3.3", "consola": "^3.4.2", @@ -1423,7 +1420,6 @@ "resolved": "https://registry.npmjs.org/@nuxt/schema/-/schema-4.3.1.tgz", "integrity": "sha512-S+wHJdYDuyk9I43Ej27y5BeWMZgi7R/UVql3b3qtT35d0fbpXW7fUenzhLRCCDC6O10sjguc6fcMcR9sMKvV8g==", "license": "MIT", - "peer": true, "dependencies": { "@vue/shared": "^3.5.27", "defu": "^6.1.4", @@ -1643,7 +1639,6 @@ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz", "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "license": "MIT", - "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -3780,13 +3775,6 @@ "integrity": "sha512-G4ewlBNhUtlLvrJTb88d2mdy2KRijzs4UhnlrOSRT4bmjh/IqNElZa3zkrZ+TC47TwtlDWzVLFADljF1Ijp5hA==", "license": "CC0-1.0" }, - "node_modules/@standard-schema/spec": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", - "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", - "dev": true, - "license": "MIT" - }, "node_modules/@tybys/wasm-util": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", @@ -3803,30 +3791,13 @@ "integrity": "sha512-uoO4QVQNWFPJMh26pXtmtrRfGshPUSpMZGUyUQY20FhfHEElEBOPKgVmFs1z+kbpyBsRs2JnoOPT7++Z4GA9pA==", "license": "MIT" }, - "node_modules/@types/chai": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", - "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/eslint": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -3838,6 +3809,7 @@ "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/eslint": "*", "@types/estree": "*" @@ -3854,7 +3826,8 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@types/node": { "version": "25.2.3", @@ -4511,127 +4484,6 @@ "vue": "^3.0.0" } }, - "node_modules/@vitest/expect": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.0.18.tgz", - "integrity": "sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@standard-schema/spec": "^1.0.0", - "@types/chai": "^5.2.2", - "@vitest/spy": "4.0.18", - "@vitest/utils": "4.0.18", - "chai": "^6.2.1", - "tinyrainbow": "^3.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/mocker": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.0.18.tgz", - "integrity": "sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "4.0.18", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.21" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^6.0.0 || ^7.0.0-0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/mocker/node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/@vitest/pretty-format": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.0.18.tgz", - "integrity": "sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^3.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.0.18.tgz", - "integrity": "sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "4.0.18", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.0.18.tgz", - "integrity": "sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "4.0.18", - "magic-string": "^0.30.21", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.0.18.tgz", - "integrity": "sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.0.18.tgz", - "integrity": "sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "4.0.18", - "tinyrainbow": "^3.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/@volar/language-core": { "version": "2.4.27", "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.27.tgz", @@ -4768,7 +4620,6 @@ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.28.tgz", "integrity": "sha512-6TnKMiNkd6u6VeVDhZn/07KhEZuBSn43Wd2No5zaP5s3xm8IqFTHBj84HJah4UepSUJTro5SoqqlOY22FKY96g==", "license": "MIT", - "peer": true, "dependencies": { "@babel/parser": "^7.29.0", "@vue/compiler-core": "3.5.28", @@ -4956,6 +4807,7 @@ "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/helper-numbers": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2" @@ -4966,21 +4818,24 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.13.2", @@ -4988,6 +4843,7 @@ "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.13.2", "@webassemblyjs/helper-api-error": "1.13.2", @@ -4999,7 +4855,8 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.14.1", @@ -5007,6 +4864,7 @@ "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", @@ -5020,6 +4878,7 @@ "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } @@ -5030,6 +4889,7 @@ "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", "dev": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "@xtuc/long": "4.2.2" } @@ -5039,7 +4899,8 @@ "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.14.1", @@ -5047,6 +4908,7 @@ "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", @@ -5064,6 +4926,7 @@ "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", @@ -5078,6 +4941,7 @@ "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", @@ -5091,6 +4955,7 @@ "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-api-error": "1.13.2", @@ -5106,6 +4971,7 @@ "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" @@ -5116,14 +4982,16 @@ "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", "dev": true, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true, - "license": "Apache-2.0" + "license": "Apache-2.0", + "peer": true }, "node_modules/abbrev": { "version": "3.0.1", @@ -5151,7 +5019,6 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -5174,6 +5041,7 @@ "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10.13.0" }, @@ -5214,6 +5082,7 @@ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "ajv": "^8.0.0" }, @@ -5232,6 +5101,7 @@ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3" }, @@ -5535,16 +5405,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, "node_modules/ast-kit": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", @@ -5773,7 +5633,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", @@ -5902,7 +5761,6 @@ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -5939,16 +5797,6 @@ ], "license": "CC-BY-4.0" }, - "node_modules/chai": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", - "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", @@ -5979,6 +5827,7 @@ "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.0" } @@ -5988,7 +5837,6 @@ "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", "license": "MIT", - "peer": true, "dependencies": { "consola": "^3.2.3" } @@ -6714,6 +6562,7 @@ "integrity": "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.0" @@ -6829,6 +6678,7 @@ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -6843,6 +6693,7 @@ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -6856,6 +6707,7 @@ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "engines": { "node": ">=4.0" } @@ -6866,6 +6718,7 @@ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "engines": { "node": ">=4.0" } @@ -6935,16 +6788,6 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/expect-type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", - "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/exsolve": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", @@ -6972,7 +6815,8 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/fast-fifo": { "version": "1.3.2", @@ -7020,7 +6864,8 @@ "url": "https://opencollective.com/fastify" } ], - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/fastq": { "version": "1.20.1", @@ -7298,7 +7143,8 @@ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true, - "license": "BSD-2-Clause" + "license": "BSD-2-Clause", + "peer": true }, "node_modules/global-directory": { "version": "4.0.1", @@ -7395,6 +7241,7 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -7818,6 +7665,7 @@ "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -7833,6 +7681,7 @@ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -7875,14 +7724,16 @@ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/json5": { "version": "2.2.3", @@ -8275,6 +8126,7 @@ "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6.11.5" }, @@ -8638,7 +8490,8 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/nitropack": { "version": "2.13.1", @@ -8881,7 +8734,6 @@ "resolved": "https://registry.npmjs.org/nuxt/-/nuxt-4.3.1.tgz", "integrity": "sha512-bl+0rFcT5Ax16aiWFBFPyWcsTob19NTZaDL5P6t0MQdK63AtgS6fN6fwvwdbXtnTk6/YdCzlmuLzXhSM22h0OA==", "license": "MIT", - "peer": true, "dependencies": { "@dxup/nuxt": "^0.3.2", "@nuxt/cli": "^3.33.0", @@ -9155,7 +9007,6 @@ "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.112.0.tgz", "integrity": "sha512-7rQ3QdJwobMQLMZwQaPuPYMEF2fDRZwf51lZ//V+bA37nejjKW5ifMHbbCwvA889Y4RLhT+/wLJpPRhAoBaZYw==", "license": "MIT", - "peer": true, "dependencies": { "@oxc-project/types": "^0.112.0" }, @@ -9361,7 +9212,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -10039,6 +9889,7 @@ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -10093,7 +9944,6 @@ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", "license": "MIT", - "peer": true, "dependencies": { "@types/estree": "1.0.8" }, @@ -10245,6 +10095,7 @@ "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", @@ -10388,13 +10239,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, "node_modules/signal-exit": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", @@ -10521,13 +10365,6 @@ "node": ">=20.16.0" } }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, "node_modules/standard-as-callback": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", @@ -10775,6 +10612,7 @@ "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=6" }, @@ -10843,6 +10681,7 @@ "integrity": "sha512-Bn5vxm48flOIfkdl5CaD2+1CiUVbonWQ3KQPyP7/EuIl9Gbzq/gQFOzaMFUEgVjB1396tcK0SG8XcNJ/2kDH8g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", @@ -10898,13 +10737,6 @@ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", "license": "MIT" }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true, - "license": "MIT" - }, "node_modules/tinyexec": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz", @@ -10930,16 +10762,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinyrainbow": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.0.3.tgz", - "integrity": "sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -11137,7 +10959,8 @@ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "devOptional": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/unenv": { "version": "2.0.0-rc.24", @@ -11623,7 +11446,6 @@ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", @@ -11990,91 +11812,6 @@ "@types/estree": "^1.0.0" } }, - "node_modules/vitest": { - "version": "4.0.18", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.0.18.tgz", - "integrity": "sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/expect": "4.0.18", - "@vitest/mocker": "4.0.18", - "@vitest/pretty-format": "4.0.18", - "@vitest/runner": "4.0.18", - "@vitest/snapshot": "4.0.18", - "@vitest/spy": "4.0.18", - "@vitest/utils": "4.0.18", - "es-module-lexer": "^1.7.0", - "expect-type": "^1.2.2", - "magic-string": "^0.30.21", - "obug": "^2.1.1", - "pathe": "^2.0.3", - "picomatch": "^4.0.3", - "std-env": "^3.10.0", - "tinybench": "^2.9.0", - "tinyexec": "^1.0.2", - "tinyglobby": "^0.2.15", - "tinyrainbow": "^3.0.3", - "vite": "^6.0.0 || ^7.0.0", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^20.0.0 || ^22.0.0 || >=24.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@opentelemetry/api": "^1.9.0", - "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "4.0.18", - "@vitest/browser-preview": "4.0.18", - "@vitest/browser-webdriverio": "4.0.18", - "@vitest/ui": "4.0.18", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@opentelemetry/api": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser-playwright": { - "optional": true - }, - "@vitest/browser-preview": { - "optional": true - }, - "@vitest/browser-webdriverio": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/vitest/node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", - "dev": true, - "license": "MIT" - }, "node_modules/voight-kampff-test": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/voight-kampff-test/-/voight-kampff-test-2.2.0.tgz", @@ -12092,7 +11829,6 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.28.tgz", "integrity": "sha512-BRdrNfeoccSoIZeIhyPBfvWSLFP4q8J3u8Ju8Ug5vu3LdD+yTM13Sg4sKtljxozbnuMu1NB1X5HBHRYUzFocKg==", "license": "MIT", - "peer": true, "dependencies": { "@vue/compiler-dom": "3.5.28", "@vue/compiler-sfc": "3.5.28", @@ -12136,7 +11872,6 @@ "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", "license": "MIT", - "peer": true, "dependencies": { "@vue/devtools-api": "^6.6.4" }, @@ -12153,6 +11888,7 @@ "integrity": "sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -12173,6 +11909,7 @@ "integrity": "sha512-dRXm0a2qcHPUBEzVk8uph0xWSjV/xZxenQQbLwnwP7caQCYpqG1qddwlyEkIDkYn0K8tvmcrZ+bOrzoQ3HxCDw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/eslint-scope": "^3.7.7", "@types/estree": "^1.0.8", @@ -12238,6 +11975,7 @@ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 0.6" } @@ -12248,6 +11986,7 @@ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "mime-db": "1.52.0" }, @@ -12280,23 +12019,6 @@ "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index 2dc34f3..ade31f3 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "@iconify-json/carbon": "^1.2.18", "@octokit/types": "^16.0.0", "@unocss/nuxt": "^66.6.0", - "unocss": "^66.6.0", - "vitest": "^4.0.18" + "unocss": "^66.6.0" } } diff --git a/server/api/identify-replicant/[username].get.ts b/server/api/identify-replicant/[username].get.ts index 520e5d1..a09ca21 100644 --- a/server/api/identify-replicant/[username].get.ts +++ b/server/api/identify-replicant/[username].get.ts @@ -1,7 +1,8 @@ -import { identifyReplicant } from "voight-kampff-test"; +import { GitHubEvent, identifyReplicant } from "voight-kampff-test"; import { Octokit } from "octokit"; import * as v from "valibot"; import { formatUsername } from "~~/server/utils/format-username"; +import type { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; const QuerySchema = v.object({ created_at: v.pipe( @@ -16,6 +17,11 @@ const QuerySchema = v.object({ v.integer("repos_count must be an integer"), v.minValue(0, "repos_count must be a non-negative integer"), ), + pages: v.pipe( + v.number("pages must be a number"), + v.integer("pages must be an integer"), + v.minValue(0, "pages must be a non-negative integer"), + ), }); export default defineEventHandler(async (event) => { @@ -32,6 +38,7 @@ export default defineEventHandler(async (event) => { const query = getQuery(event); const parsedQuery = v.safeParse(QuerySchema, { created_at: query.created_at, + pages: query.pages ? parseInt(String(query.pages), 10) : 1, repos_count: query.repos_count ? parseInt(String(query.repos_count), 10) : 0, @@ -48,12 +55,19 @@ export default defineEventHandler(async (event) => { const octokit = new Octokit({ auth: config.githubToken }); const formattedUsername = formatUsername(username); - const { data: events } = - await octokit.rest.activity.listPublicEventsForUser({ - username: formattedUsername, - per_page: 100, - page: 1, - }); + const pageRequests = Array.from( + { length: parsedQuery.output.pages }, + (_, index) => { + return octokit.rest.activity.listPublicEventsForUser({ + username: formattedUsername, + per_page: 100, + page: index + 1, + }); + }, + ); + + const responses = await Promise.all(pageRequests); + const events = responses.flatMap((response) => response.data); return { analysis: identifyReplicant({ diff --git a/test/__snapshots__/verified-automations.test.ts.snap b/test/__snapshots__/verified-automations.test.ts.snap deleted file mode 100644 index 023e25f..0000000 --- a/test/__snapshots__/verified-automations.test.ts.snap +++ /dev/null @@ -1,141 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`identity-replicant (automation) > analysis 'automation 1' 1`] = ` -{ - "classification": "automation", - "flags": [ - { - "detail": "Account is 36 days old", - "label": "Young account", - "points": 10, - }, - { - "detail": "15 repositories created in a short timeframe (within 24 hours)", - "label": "Frequent repository creation", - "points": 25, - }, - { - "detail": "Active 23/24 hours, 1h max rest, 4.3 events/hour", - "label": "24/7 activity pattern", - "points": 30, - }, - { - "detail": "4 commits within very short intervals", - "label": "High commit frequency", - "points": 25, - }, - { - "detail": "16 repos forked recently", - "label": "Many recent forks", - "points": 30, - }, - { - "detail": "Activity spread across 55 external repositories", - "label": "Highly distributed activity", - "points": 30, - }, - ], - "profile": { - "age": 36, - "repos": 106, - }, - "score": 0, -} -`; - -exports[`identity-replicant (automation) > analysis 'automation 2' 1`] = ` -{ - "classification": "automation", - "flags": [ - { - "detail": "Account is 33 days old", - "label": "Young account", - "points": 10, - }, - { - "detail": "6 commits within very short intervals", - "label": "High commit frequency", - "points": 25, - }, - { - "detail": "12 PRs in 1 day", - "label": "Very high PR volume", - "points": 35, - }, - { - "detail": "100% of activity on other people's repos", - "label": "Mostly external activity", - "points": 20, - }, - ], - "profile": { - "age": 33, - "repos": 1, - }, - "score": 10, -} -`; - -exports[`identity-replicant (automation) > analysis 'automation 3' 1`] = ` -{ - "classification": "automation", - "flags": [ - { - "detail": "Account is 37 days old", - "label": "Young account", - "points": 10, - }, - { - "detail": "16 commits within very short intervals", - "label": "High commit frequency", - "points": 25, - }, - { - "detail": "5 repos forked recently", - "label": "Multiple forks", - "points": 20, - }, - ], - "profile": { - "age": 37, - "repos": 33, - }, - "score": 45, -} -`; - -exports[`identity-replicant (automation) > analysis 'automation 4' 1`] = ` -{ - "classification": "organic", - "flags": [], - "profile": { - "age": 792, - "repos": 32, - }, - "score": 100, -} -`; - -exports[`identity-replicant (organic) > analysis 'automation 1' 1`] = ` -{ - "classification": "organic", - "flags": [], - "profile": { - "age": 4576, - "repos": 27, - }, - "score": 100, -} -`; - -exports[`identity-replicant (organic) > analysis 'automation 2' 1`] = ` -{ - "classification": "organic", - "flags": [], - "profile": { - "age": 3220, - "repos": 859, - }, - "score": 100, -} -`; diff --git a/test/fixtures/automation/automation_user-5a92586d-63b0-4675-8ea1-014552da1f7b.json b/test/fixtures/automation/automation_user-5a92586d-63b0-4675-8ea1-014552da1f7b.json deleted file mode 100644 index 42669f0..0000000 --- a/test/fixtures/automation/automation_user-5a92586d-63b0-4675-8ea1-014552da1f7b.json +++ /dev/null @@ -1,709 +0,0 @@ -{ - "user": { - "login": "user-5a92586d-63b0-4675-8ea1-014552da1f7b", - "created_at": "2026-02-01T19:20:29Z", - "public_repos": 106 - }, - "events": [ - { - "type": "PullRequestEvent", - "created_at": "2026-03-04T13:22:14Z", - "repo": { - "name": "repo-831ce509-ebc3-4f9d-9c49-ba0ab61ab2f5" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-27T05:29:19Z", - "repo": { - "name": "repo-e9bc9ab7-36cf-436c-acef-705688bf4f82" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-25T12:28:19Z", - "repo": { - "name": "repo-d5ba8762-a255-4321-bb9e-ed260c6acf1f" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T09:00:44Z", - "repo": { - "name": "repo-72a97e7f-22f5-4827-8b64-6d30574cbdef" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-15T15:32:50Z", - "repo": { - "name": "repo-5505d60c-fba0-40ab-be53-32ee666750bd" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-13T17:21:14Z", - "repo": { - "name": "repo-e2d7b07b-4add-4a67-93a2-1516f0142144" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T15:55:13Z", - "repo": { - "name": "repo-f1636fae-826b-46f5-997c-5f690a222c72" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T13:32:31Z", - "repo": { - "name": "repo-0ba104d1-0e9b-4cb0-9a48-f6090b6bfeff" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T13:03:37Z", - "repo": { - "name": "repo-6025f043-6015-48ba-b0d0-fa3943ae5d38" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T13:00:40Z", - "repo": { - "name": "repo-6025f043-6015-48ba-b0d0-fa3943ae5d38" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T13:00:25Z", - "repo": { - "name": "repo-e7ac8333-62ee-4ffb-a833-b237f04bd98c" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T13:00:13Z", - "repo": { - "name": "repo-e7ac8333-62ee-4ffb-a833-b237f04bd98c" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T13:00:02Z", - "repo": { - "name": "repo-6025f043-6015-48ba-b0d0-fa3943ae5d38" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-12T12:56:54Z", - "repo": { - "name": "repo-831ce509-ebc3-4f9d-9c49-ba0ab61ab2f5" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T12:56:09Z", - "repo": { - "name": "repo-c2cd3bb3-5cef-4aa7-b97b-c5fe67d45258" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-02-12T12:26:44Z", - "repo": { - "name": "repo-793bba39-f2e9-4b43-adad-25f338f9d502" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-02-12T12:26:45Z", - "repo": { - "name": "repo-793bba39-f2e9-4b43-adad-25f338f9d502" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T12:26:25Z", - "repo": { - "name": "repo-665cfad3-5ef9-4eb9-a939-9ba5d29f6e16" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-12T11:41:41Z", - "repo": { - "name": "repo-0ba104d1-0e9b-4cb0-9a48-f6090b6bfeff" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T11:41:33Z", - "repo": { - "name": "repo-143fd38c-bed8-4553-b98e-65570e628299" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-12T10:59:12Z", - "repo": { - "name": "repo-793bba39-f2e9-4b43-adad-25f338f9d502" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T10:58:44Z", - "repo": { - "name": "repo-665cfad3-5ef9-4eb9-a939-9ba5d29f6e16" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T10:54:51Z", - "repo": { - "name": "repo-927c4390-c1c7-436c-b135-e03303448cdf" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T10:54:42Z", - "repo": { - "name": "repo-538de65d-ffc0-4bf1-80a9-574bdce72054" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T10:54:41Z", - "repo": { - "name": "repo-538de65d-ffc0-4bf1-80a9-574bdce72054" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T10:54:25Z", - "repo": { - "name": "repo-927c4390-c1c7-436c-b135-e03303448cdf" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-12T09:51:36Z", - "repo": { - "name": "repo-5c5bbc9a-7947-479c-817a-f276d6f04bc6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T09:51:15Z", - "repo": { - "name": "repo-00f1bf4d-6faa-452b-ad01-3c1d5b6dbd83" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-02-12T09:50:05Z", - "repo": { - "name": "repo-793bba39-f2e9-4b43-adad-25f338f9d502" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T09:49:29Z", - "repo": { - "name": "repo-665cfad3-5ef9-4eb9-a939-9ba5d29f6e16" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T08:51:57Z", - "repo": { - "name": "repo-57b124ae-625a-4225-843b-64017c042a67" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T08:51:49Z", - "repo": { - "name": "repo-65ca5dce-b549-432d-a9ca-8fbb31263a90" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T08:51:40Z", - "repo": { - "name": "repo-57b124ae-625a-4225-843b-64017c042a67" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T08:03:19Z", - "repo": { - "name": "repo-c2cd3bb3-5cef-4aa7-b97b-c5fe67d45258" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T06:57:58Z", - "repo": { - "name": "repo-19e96e4f-5078-4718-a04d-3509743a2ad2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-12T06:24:41Z", - "repo": { - "name": "repo-24446ae9-0c10-49fe-a04b-ba28258ad5d3" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T06:23:39Z", - "repo": { - "name": "repo-be794aca-18c1-4742-bf31-91a1883051f5" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T06:23:22Z", - "repo": { - "name": "repo-b276003d-496b-4af0-9a0a-1c56406ec9ff" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T06:23:16Z", - "repo": { - "name": "repo-be794aca-18c1-4742-bf31-91a1883051f5" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T04:18:18Z", - "repo": { - "name": "repo-24446ae9-0c10-49fe-a04b-ba28258ad5d3" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T04:18:08Z", - "repo": { - "name": "repo-215becf5-8ab2-45e0-be53-ff5aeb2a4a11" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T04:18:03Z", - "repo": { - "name": "repo-24446ae9-0c10-49fe-a04b-ba28258ad5d3" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T04:16:04Z", - "repo": { - "name": "repo-f37f23a5-0288-4b68-b65e-035b0360d09f" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T04:15:54Z", - "repo": { - "name": "repo-5470497f-0093-4302-9a5d-a76258020b35" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T04:15:49Z", - "repo": { - "name": "repo-f37f23a5-0288-4b68-b65e-035b0360d09f" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T02:13:04Z", - "repo": { - "name": "repo-0ba104d1-0e9b-4cb0-9a48-f6090b6bfeff" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T02:12:55Z", - "repo": { - "name": "repo-143fd38c-bed8-4553-b98e-65570e628299" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T02:12:44Z", - "repo": { - "name": "repo-0ba104d1-0e9b-4cb0-9a48-f6090b6bfeff" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-12T00:05:52Z", - "repo": { - "name": "repo-a99b7a51-5427-46c9-b41c-c2f867068541" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T00:05:39Z", - "repo": { - "name": "repo-f76227e9-acd5-400b-9220-1dc9bcd4bda9" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-12T00:03:40Z", - "repo": { - "name": "repo-a99b7a51-5427-46c9-b41c-c2f867068541" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T23:26:35Z", - "repo": { - "name": "repo-3a5ac1a8-5500-4cd7-80dc-78d05667b298" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T23:25:55Z", - "repo": { - "name": "repo-f3b98baf-0623-4460-a45e-04900fedad21" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T23:25:46Z", - "repo": { - "name": "repo-f3b98baf-0623-4460-a45e-04900fedad21" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T22:46:17Z", - "repo": { - "name": "repo-a1f7a79d-dbb3-477c-8595-303e224d7b43" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T21:57:31Z", - "repo": { - "name": "repo-0da92651-4da4-4045-9bf0-d24bdccb02ea" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T21:57:20Z", - "repo": { - "name": "repo-bfac4985-620f-42cc-9dcd-0929d522acfe" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T21:57:16Z", - "repo": { - "name": "repo-0da92651-4da4-4045-9bf0-d24bdccb02ea" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T20:39:18Z", - "repo": { - "name": "repo-72a97e7f-22f5-4827-8b64-6d30574cbdef" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T20:39:15Z", - "repo": { - "name": "repo-356f978f-c1e5-4fb6-bb28-beb71ec58b74" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T05:47:00Z", - "repo": { - "name": "repo-6c1fd5fd-e082-4d3e-9df4-ebd026b92952" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T20:27:09Z", - "repo": { - "name": "repo-6c1fd5fd-e082-4d3e-9df4-ebd026b92952" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T20:27:04Z", - "repo": { - "name": "repo-6c1fd5fd-e082-4d3e-9df4-ebd026b92952" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T20:26:57Z", - "repo": { - "name": "repo-8a708c29-e012-42ae-a65a-ba3884121a5e" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T19:53:59Z", - "repo": { - "name": "repo-c2cd3bb3-5cef-4aa7-b97b-c5fe67d45258" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T19:52:51Z", - "repo": { - "name": "repo-831ce509-ebc3-4f9d-9c49-ba0ab61ab2f5" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T19:52:40Z", - "repo": { - "name": "repo-c2cd3bb3-5cef-4aa7-b97b-c5fe67d45258" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T19:52:35Z", - "repo": { - "name": "repo-831ce509-ebc3-4f9d-9c49-ba0ab61ab2f5" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T19:18:50Z", - "repo": { - "name": "repo-15cfd962-d834-42ee-a64d-a8abf3f3d89e" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T19:13:26Z", - "repo": { - "name": "repo-f8c326c0-8cad-4178-bfac-da1c9560b992" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T18:48:38Z", - "repo": { - "name": "repo-15cfd962-d834-42ee-a64d-a8abf3f3d89e" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T18:33:47Z", - "repo": { - "name": "repo-15cfd962-d834-42ee-a64d-a8abf3f3d89e" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T16:59:50Z", - "repo": { - "name": "repo-466f4306-a75d-4495-afa1-7c932644fe1d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T17:47:46Z", - "repo": { - "name": "repo-b5d083d3-7aac-4615-a696-91f86eb0f9eb" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T17:47:33Z", - "repo": { - "name": "repo-97391968-f44b-447f-b4a0-73f0eb23d4c1" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T17:47:31Z", - "repo": { - "name": "repo-b5d083d3-7aac-4615-a696-91f86eb0f9eb" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T15:43:02Z", - "repo": { - "name": "repo-23b62739-2236-481e-b702-c062546853a3" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T15:42:51Z", - "repo": { - "name": "repo-b8f3b16b-9d5a-4a25-b7cc-ec5da78e41a3" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T15:42:23Z", - "repo": { - "name": "repo-23b62739-2236-481e-b702-c062546853a3" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T12:22:53Z", - "repo": { - "name": "repo-04beb87a-7a5d-4ceb-8af1-b63f9ae36259" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T07:30:31Z", - "repo": { - "name": "repo-3b7ee4d1-03e8-44d1-b6e0-909f4cb4c4e9" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T07:30:19Z", - "repo": { - "name": "repo-f3b98baf-0623-4460-a45e-04900fedad21" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T07:30:04Z", - "repo": { - "name": "repo-3b7ee4d1-03e8-44d1-b6e0-909f4cb4c4e9" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T05:26:28Z", - "repo": { - "name": "repo-6c1fd5fd-e082-4d3e-9df4-ebd026b92952" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T05:26:09Z", - "repo": { - "name": "repo-8a708c29-e012-42ae-a65a-ba3884121a5e" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T05:26:05Z", - "repo": { - "name": "repo-6c1fd5fd-e082-4d3e-9df4-ebd026b92952" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T05:22:09Z", - "repo": { - "name": "repo-a76ca2d1-4a32-464b-88f3-e8fde0bd88c3" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T05:22:05Z", - "repo": { - "name": "repo-b55b0515-01d3-4856-b0d9-42ba057b3215" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T03:55:58Z", - "repo": { - "name": "repo-d6bb80c0-21ba-4756-bf2f-8ba81dd875d0" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T03:20:56Z", - "repo": { - "name": "repo-e0fcf791-d031-4535-8006-7930151ca892" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T03:20:38Z", - "repo": { - "name": "repo-1454f9b3-e605-4899-b115-ca297f0cd25c" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T03:20:23Z", - "repo": { - "name": "repo-e0fcf791-d031-4535-8006-7930151ca892" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T02:26:58Z", - "repo": { - "name": "repo-a7902009-fb3a-4ffa-9672-f5785eea1a27" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T01:57:21Z", - "repo": { - "name": "repo-9f6166db-e209-4072-9153-c6e9cc93e356" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-11T01:41:50Z", - "repo": { - "name": "repo-d6bb80c0-21ba-4756-bf2f-8ba81dd875d0" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T01:10:46Z", - "repo": { - "name": "repo-d6bb80c0-21ba-4756-bf2f-8ba81dd875d0" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T01:10:38Z", - "repo": { - "name": "repo-82257e8b-4f58-479a-a4e2-92919c94a3d4" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-11T01:10:27Z", - "repo": { - "name": "repo-d6bb80c0-21ba-4756-bf2f-8ba81dd875d0" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-11T00:35:09Z", - "repo": { - "name": "repo-f5e41e8f-76d3-4a16-9ee0-5010c3ee3979" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-10T23:37:51Z", - "repo": { - "name": "repo-9f6166db-e209-4072-9153-c6e9cc93e356" - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/automation/automation_user-6f5f10b3-13c9-452c-aa43-236a222ea91f.json b/test/fixtures/automation/automation_user-6f5f10b3-13c9-452c-aa43-236a222ea91f.json deleted file mode 100644 index 33c1242..0000000 --- a/test/fixtures/automation/automation_user-6f5f10b3-13c9-452c-aa43-236a222ea91f.json +++ /dev/null @@ -1,702 +0,0 @@ -{ - "user": { - "login": "user-6f5f10b3-13c9-452c-aa43-236a222ea91f", - "created_at": "2026-02-04T20:44:34Z", - "public_repos": 1 - }, - "events": [ - { - "type": "PublicEvent", - "created_at": "2026-02-04T21:24:19Z", - "repo": { - "name": "repo-30bacdd1-e3ce-4a7f-b980-96ad9ddba0ff" - } - }, - { - "type": "PublicEvent", - "created_at": "2026-02-05T19:05:16Z", - "repo": { - "name": "repo-58c3599c-da5b-4c1e-9b0b-c84e430ed457" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-22T05:39:56Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-22T05:22:05Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-22T00:44:40Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-22T00:41:47Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-22T00:39:46Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-20T15:11:18Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-20T15:11:12Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-19T15:45:06Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-19T15:45:11Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-19T15:32:38Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-19T15:32:27Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-19T15:32:27Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-19T15:19:18Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-18T16:13:22Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T16:05:15Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-18T15:25:43Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T15:21:29Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-18T15:13:02Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T15:12:53Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T15:06:39Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T05:38:10Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T04:27:23Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T04:27:23Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-18T04:17:07Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T23:36:33Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-17T19:36:23Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T18:26:31Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T16:33:08Z", - "repo": { - "name": "repo-6fba5258-eb09-442f-b9c6-d35fa8171bbf" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T13:51:53Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-17T02:27:41Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T02:27:37Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T23:31:36Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T23:20:10Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T23:20:06Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T23:20:00Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T23:18:49Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T23:18:45Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T23:18:39Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T22:55:56Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T22:55:40Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T22:34:53Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T22:34:47Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T22:34:40Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T22:14:23Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T22:14:19Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T22:14:12Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T21:42:47Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T21:42:45Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T21:42:43Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-15T18:46:20Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T21:39:34Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-15T18:46:13Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T21:39:32Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T07:01:20Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T21:39:29Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T21:37:38Z", - "repo": { - "name": "repo-cf34587b-d6f3-4763-84a1-c97261989564" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T18:55:37Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T21:35:36Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-16T21:35:32Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T21:35:27Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T20:08:33Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-16T20:08:27Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T20:08:19Z", - "repo": { - "name": "repo-cf34587b-d6f3-4763-84a1-c97261989564" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-02-16T18:55:34Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-02-16T18:55:35Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T18:55:26Z", - "repo": { - "name": "repo-cf34587b-d6f3-4763-84a1-c97261989564" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T18:49:38Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T18:49:29Z", - "repo": { - "name": "repo-cf34587b-d6f3-4763-84a1-c97261989564" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-16T18:49:15Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-16T18:49:07Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T06:54:12Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T06:40:33Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T17:01:25Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T17:01:19Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T16:43:16Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-15T16:41:18Z", - "repo": { - "name": "repo-6f34eac4-9cea-400a-8702-489fe879503d" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T16:16:39Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T16:16:35Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T16:05:56Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T16:05:51Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T15:46:18Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T15:46:15Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T15:46:12Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T15:13:30Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T15:13:26Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T15:13:19Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T14:34:56Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T14:34:51Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T14:34:45Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T14:25:46Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T14:24:46Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T14:24:42Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T14:01:45Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T13:52:13Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T13:52:08Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-15T13:45:12Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T13:45:06Z", - "repo": { - "name": "repo-99049a58-f2b4-48a1-b8f8-4d5d6131b8e2" - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/automation/automation_user-af06c06a-4523-4949-9487-803829468d7e.json b/test/fixtures/automation/automation_user-af06c06a-4523-4949-9487-803829468d7e.json deleted file mode 100644 index 9909bec..0000000 --- a/test/fixtures/automation/automation_user-af06c06a-4523-4949-9487-803829468d7e.json +++ /dev/null @@ -1,709 +0,0 @@ -{ - "user": { - "login": "user-af06c06a-4523-4949-9487-803829468d7e", - "created_at": "2026-01-31T18:02:37Z", - "public_repos": 33 - }, - "events": [ - { - "type": "PushEvent", - "created_at": "2026-02-18T03:31:24Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T03:27:52Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-18T03:25:38Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T23:49:40Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T11:37:03Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T07:37:07Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T05:50:54Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T00:31:55Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T00:31:01Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T00:25:33Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T00:23:59Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-17T00:13:46Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T23:43:39Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T19:37:16Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T19:36:45Z", - "repo": { - "name": "repo-c507b007-49ee-4597-9949-c36784953414" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-16T19:36:06Z", - "repo": { - "name": "repo-82e61ce6-5869-4c60-be6d-c4607c3755df" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-16T19:34:28Z", - "repo": { - "name": "repo-c507b007-49ee-4597-9949-c36784953414" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T19:29:21Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-16T19:29:20Z", - "repo": { - "name": "repo-3401df78-6276-4f7e-9df7-859d4a44a21c" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T19:26:26Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T19:05:40Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-16T19:01:34Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T19:01:34Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T18:56:56Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-16T18:56:46Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T18:48:47Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T18:46:36Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T18:16:46Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T11:37:21Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-16T09:31:11Z", - "repo": { - "name": "repo-7dd5b930-cf26-4712-852d-b4834fe3b43e" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-16T08:26:34Z", - "repo": { - "name": "repo-6edc1ff8-911f-4c76-91a5-22ab41b72f68" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T07:37:26Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-13T05:35:26Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-15T21:16:23Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T23:37:36Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T11:37:34Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T08:24:15Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-15T07:37:31Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-14T11:37:16Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-14T07:37:28Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-14T03:37:43Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T20:01:18Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T18:52:47Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T18:48:06Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T19:28:46Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T19:25:13Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T19:10:30Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T19:01:23Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T18:56:12Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T07:05:03Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:42:38Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:42:34Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:42:28Z", - "repo": { - "name": "repo-e073bf42-0edb-42fd-b879-82805ac22671" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:13:54Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:12:37Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:12:34Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:12:35Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:12:34Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:12:33Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:12:31Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:18Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:16Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:16Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:16Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:15Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:14Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:13Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:13Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:12Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:10Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:09Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:07Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T06:11:06Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T06:11:05Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T05:39:28Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-13T05:18:47Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-13T04:28:15Z", - "repo": { - "name": "repo-253ee801-b97e-4cd8-8c92-7e083427f141" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-13T04:28:08Z", - "repo": { - "name": "repo-253ee801-b97e-4cd8-8c92-7e083427f141" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-02-13T04:27:33Z", - "repo": { - "name": "repo-96b5c491-4cea-415f-9ea9-2926dd2b2657" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:55:38Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:53:17Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:53:16Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:53:17Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:53:14Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:53:11Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:53:09Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:52:47Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:52:48Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:52:44Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:52:42Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:52:42Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:52:41Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:52:38Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:52:36Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-02-13T01:47:30Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:47:29Z", - "repo": { - "name": "repo-9ecad66e-357b-414f-a2c4-681ce38204fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T01:45:54Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-02-13T01:25:30Z", - "repo": { - "name": "repo-e733dc57-4cfe-47d0-b850-d6221700ab2d" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-13T01:25:17Z", - "repo": { - "name": "repo-a322ec32-e597-4de8-ae1a-edf4995282fb" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-02-13T00:39:42Z", - "repo": { - "name": "repo-87ef2c39-2858-4cff-9e30-9feb1ffe3403" - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/automation/automation_user-d9de21cb-5319-46fe-a807-0386e685a606.json b/test/fixtures/automation/automation_user-d9de21cb-5319-46fe-a807-0386e685a606.json deleted file mode 100644 index 6958cb6..0000000 --- a/test/fixtures/automation/automation_user-d9de21cb-5319-46fe-a807-0386e685a606.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "user": { - "login": "user-d9de21cb-5319-46fe-a807-0386e685a606", - "created_at": "2024-01-08T08:48:14Z", - "public_repos": 32 - }, - "events": [ - { - "type": "WatchEvent", - "created_at": "2026-02-17T07:44:46Z", - "repo": { - "name": "repo-01f2d52b-5c47-4f5a-b310-68cf0322b179" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-16T09:38:07Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T14:02:37Z", - "repo": { - "name": "repo-e0150c87-cd04-4214-a8e2-c9837ca65e8f" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T13:28:28Z", - "repo": { - "name": "repo-693ddb37-2fc5-4a78-b7f8-8c46e71a4b5a" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T12:27:23Z", - "repo": { - "name": "repo-693ddb37-2fc5-4a78-b7f8-8c46e71a4b5a" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-12T09:56:12Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-12T02:58:44Z", - "repo": { - "name": "repo-078de04a-416d-4777-a076-cb1c6b5b2340" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T13:41:33Z", - "repo": { - "name": "repo-f84c7da3-6bd2-4f6f-ac4d-982dfc712da2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T13:26:48Z", - "repo": { - "name": "repo-f84c7da3-6bd2-4f6f-ac4d-982dfc712da2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-11T13:13:12Z", - "repo": { - "name": "repo-f84c7da3-6bd2-4f6f-ac4d-982dfc712da2" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-11T13:09:27Z", - "repo": { - "name": "repo-f84c7da3-6bd2-4f6f-ac4d-982dfc712da2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T16:37:36Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "WatchEvent", - "created_at": "2026-02-08T16:21:30Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "WatchEvent", - "created_at": "2026-02-08T16:19:02Z", - "repo": { - "name": "repo-dea313cb-f38c-495a-ba85-a433bc384158" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T15:49:32Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T15:14:08Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T14:06:11Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T13:55:13Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T13:43:52Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T13:17:18Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T13:06:06Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:56:06Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:53:01Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:33:15Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:18:11Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-02-08T12:14:00Z", - "repo": { - "name": "repo-c22e38ec-9032-444e-b765-b291eefa1c69" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:08:55Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T12:04:32Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T11:57:01Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T11:48:02Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PushEvent", - "created_at": "2026-02-08T11:35:08Z", - "repo": { - "name": "repo-0858689b-84d4-44b2-b549-53f9b64c6ade" - } - }, - { - "type": "PublicEvent", - "created_at": "2026-02-08T10:13:42Z", - "repo": { - "name": "repo-dea313cb-f38c-495a-ba85-a433bc384158" - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/organic/organic_user-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c.json b/test/fixtures/organic/organic_user-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c.json deleted file mode 100644 index 1c75a83..0000000 --- a/test/fixtures/organic/organic_user-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c.json +++ /dev/null @@ -1,709 +0,0 @@ -{ - "user": { - "login": "user-09dd1a6d-b3f9-4a6f-b0d2-959aa549d90c", - "created_at": "2013-08-29T08:41:58Z", - "public_repos": 27 - }, - "events": [ - { - "type": "PullRequestEvent", - "created_at": "2026-03-09T10:36:47Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-09T10:34:40Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T10:26:40Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T09:21:05Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T20:28:49Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-08T20:28:48Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T20:23:53Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T17:24:28Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T17:16:32Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-08T16:46:56Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-08T16:46:54Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-08T16:32:00Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T16:25:26Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T14:40:00Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T14:34:41Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T14:34:12Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T10:15:51Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T00:28:30Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-08T00:11:00Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T19:33:00Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-07T17:44:20Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-07T17:44:20Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-07T17:44:20Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-07T17:44:19Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T17:13:24Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T16:40:08Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T14:42:39Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T14:17:26Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T14:07:42Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T14:07:28Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-07T13:47:04Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-07T01:20:09Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T22:20:53Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T22:20:53Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T22:18:01Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-06T22:20:27Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T22:18:00Z", - "repo": { - "name": "repo-3a09e557-b90b-4711-9c6e-0a087e2d0713" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T22:14:29Z", - "repo": { - "name": "repo-3a09e557-b90b-4711-9c6e-0a087e2d0713" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T22:03:02Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-06T22:01:42Z", - "repo": { - "name": "repo-3a09e557-b90b-4711-9c6e-0a087e2d0713" - } - }, - { - "type": "ForkEvent", - "created_at": "2026-03-06T21:31:18Z", - "repo": { - "name": "repo-46d77280-f1f2-40c9-8623-11e626d39d14" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T18:09:52Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T18:04:28Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T15:50:13Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T15:48:48Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T15:45:14Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T15:08:17Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-06T15:08:18Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T15:08:16Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-06T15:05:03Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-06T14:47:46Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-06T14:36:07Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-06T09:34:36Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-06T08:18:44Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-05T17:11:43Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-05T15:22:03Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-05T15:19:14Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-05T15:19:13Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-05T12:53:39Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-05T12:17:31Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-05T10:39:50Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-05T10:22:17Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-05T10:21:51Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-05T10:14:25Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-05T10:14:22Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-05T10:04:13Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-05T09:48:39Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-05T09:48:39Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-05T09:44:25Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-05T09:44:24Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-04T23:56:33Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T22:24:15Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-04T22:01:50Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T22:00:49Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-04T21:48:06Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-04T21:45:27Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T21:25:23Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T21:24:54Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T18:58:55Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-04T17:14:13Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T16:44:49Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T16:42:58Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-04T13:26:15Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-04T13:26:14Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-04T13:25:51Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-04T13:25:49Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-04T13:25:40Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-04T13:25:39Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-04T13:24:54Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-04T13:24:52Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-04T13:23:24Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T13:10:59Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T13:10:23Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-04T12:59:07Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-04T12:56:41Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-04T12:50:31Z", - "repo": { - "name": "repo-a1f402f4-5afc-4bcd-8aae-92a118513622" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T12:40:26Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T12:39:57Z", - "repo": { - "name": "repo-2f61ba0a-dcd1-4286-86b2-0a742b1879e6" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T11:11:31Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-04T10:27:59Z", - "repo": { - "name": "repo-424992eb-c966-4360-b20d-2ccac2803e78" - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/organic/organic_user-77c6d7f7-addf-4443-b334-8d2980d59ee5.json b/test/fixtures/organic/organic_user-77c6d7f7-addf-4443-b334-8d2980d59ee5.json deleted file mode 100644 index b6f9a3f..0000000 --- a/test/fixtures/organic/organic_user-77c6d7f7-addf-4443-b334-8d2980d59ee5.json +++ /dev/null @@ -1,709 +0,0 @@ -{ - "user": { - "login": "user-77c6d7f7-addf-4443-b334-8d2980d59ee5", - "created_at": "2017-05-15T12:06:30Z", - "public_repos": 859 - }, - "events": [ - { - "type": "PushEvent", - "created_at": "2026-03-09T22:45:41Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:42:41Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-09T22:34:19Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:17:22Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:52Z", - "repo": { - "name": "repo-b1bfa0d0-9ab2-4f7a-b241-9b355f18ca1f" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:52Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-b1bfa0d0-9ab2-4f7a-b241-9b355f18ca1f" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-b68c7fd7-d479-465c-91ad-894dfcd7d0c7" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T22:11:51Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-b68c7fd7-d479-465c-91ad-894dfcd7d0c7" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-cc1bf25e-a085-444b-89f6-ef9d65eced0a" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:50Z", - "repo": { - "name": "repo-b1bfa0d0-9ab2-4f7a-b241-9b355f18ca1f" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-cc1bf25e-a085-444b-89f6-ef9d65eced0a" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T22:11:49Z", - "repo": { - "name": "repo-b68c7fd7-d479-465c-91ad-894dfcd7d0c7" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:27Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:27Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:25Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:25Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:24Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:23Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:22Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:21Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-760fe728-5bd6-4301-830e-33943c6fd92c" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-75b30d69-1a0e-4287-b46f-1a143ff55dc2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-f42fda1b-c94a-41c0-a656-eaaca1121f4d" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-5fb5cb2e-033b-4ba2-8f71-3b568098dc1f" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:20Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-8ff888d8-b4f4-417b-b617-4cd8f89444fb" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-5fb5cb2e-033b-4ba2-8f71-3b568098dc1f" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-8ff888d8-b4f4-417b-b617-4cd8f89444fb" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-75b30d69-1a0e-4287-b46f-1a143ff55dc2" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-cc1bf25e-a085-444b-89f6-ef9d65eced0a" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-f42fda1b-c94a-41c0-a656-eaaca1121f4d" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:19Z", - "repo": { - "name": "repo-760fe728-5bd6-4301-830e-33943c6fd92c" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-53ef3abb-4e93-440e-90d7-0d92092f56f2" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-5fb5cb2e-033b-4ba2-8f71-3b568098dc1f" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-15f76fe8-575d-4a0f-909d-fcbe4432d6f1" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-f42fda1b-c94a-41c0-a656-eaaca1121f4d" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-ec2129dc-89c3-4bb0-a78a-5de88d0972a8" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-119d73bc-0268-4a9f-8f0d-123002672440" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-75b30d69-1a0e-4287-b46f-1a143ff55dc2" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-4fb6864d-e7ec-4abf-9516-e7a046c79883" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:18Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:17Z", - "repo": { - "name": "repo-760fe728-5bd6-4301-830e-33943c6fd92c" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:17Z", - "repo": { - "name": "repo-cc1bf25e-a085-444b-89f6-ef9d65eced0a" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:54:17Z", - "repo": { - "name": "repo-8ff888d8-b4f4-417b-b617-4cd8f89444fb" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T21:52:57Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-09T21:24:01Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T21:08:05Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T20:57:28Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T20:55:20Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T20:54:19Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T20:00:29Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T18:49:44Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T18:47:10Z", - "repo": { - "name": "repo-91f4a895-8171-48f3-82c8-522584d9cf90" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:42:09Z", - "repo": { - "name": "repo-91f4a895-8171-48f3-82c8-522584d9cf90" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T17:36:01Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:34:38Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:32:53Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:30:20Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:12:50Z", - "repo": { - "name": "repo-745581d0-3063-459f-ae76-144c4f895980" - } - }, - { - "type": "IssuesEvent", - "created_at": "2026-03-09T17:10:03Z", - "repo": { - "name": "repo-75b30d69-1a0e-4287-b46f-1a143ff55dc2" - } - }, - { - "type": "IssueCommentEvent", - "created_at": "2026-03-09T17:09:41Z", - "repo": { - "name": "repo-75b30d69-1a0e-4287-b46f-1a143ff55dc2" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-09T17:05:01Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "CreateEvent", - "created_at": "2026-03-09T17:03:31Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-09T17:02:29Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T17:02:01Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T17:01:46Z", - "repo": { - "name": "repo-4ad70910-8dfc-44e3-8595-53c96f00b1b1" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T16:33:21Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T16:33:21Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewCommentEvent", - "created_at": "2026-03-09T16:32:17Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PullRequestReviewEvent", - "created_at": "2026-03-09T16:31:15Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "PushEvent", - "created_at": "2026-03-09T15:36:22Z", - "repo": { - "name": "repo-91f4a895-8171-48f3-82c8-522584d9cf90" - } - }, - { - "type": "PullRequestEvent", - "created_at": "2026-03-08T23:59:36Z", - "repo": { - "name": "repo-6fd4d666-cad1-48f9-a637-4ea4357ac578" - } - }, - { - "type": "DeleteEvent", - "created_at": "2026-03-09T14:36:29Z", - "repo": { - "name": "repo-fb8ecd6a-9147-46a8-b70e-005df44ffb87" - } - } - ] -} \ No newline at end of file diff --git a/test/verified-automations.test.ts b/test/verified-automations.test.ts deleted file mode 100644 index a617507..0000000 --- a/test/verified-automations.test.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { expect, describe, it, beforeEach, afterEach, vi } from "vitest"; -import { identifyReplicant } from "voight-kampff-test"; - -import fs from "fs"; -import path from "path"; - -function getFolder(folderName: "automation" | "organic") { - const fixturesDir = path.join(__dirname, "fixtures", folderName); - return fs - .readdirSync(fixturesDir) - .filter((file) => file.endsWith(".json")) - .map((file, index) => { - const filePath = path.join(fixturesDir, file); - return [ - JSON.parse(fs.readFileSync(filePath, "utf-8")), - `automation ${index + 1}`, - ]; - }); -} - -const automationFixtures = getFolder("automation"); -describe("identity-replicant (automation)", () => { - beforeEach(() => { - vi.useFakeTimers(); - }); - afterEach(() => { - vi.useRealTimers(); - }); - - it.each(automationFixtures)("analysis $1", (fixture) => { - const date = new Date(2026, 2, 10, 12); - vi.setSystemTime(date); - - const identity = identifyReplicant({ - createdAt: fixture.user.created_at, - reposCount: fixture.user.public_repos, - accountName: fixture.user.login, - events: fixture.events, - }); - expect(identity).toMatchSnapshot(); - }); -}); - -const organicFixtures = getFolder("organic"); -describe("identity-replicant (organic)", () => { - beforeEach(() => { - vi.useFakeTimers(); - }); - afterEach(() => { - vi.useRealTimers(); - }); - - it.each(organicFixtures)("analysis $1", (fixture) => { - const date = new Date(2026, 2, 10, 12); - vi.setSystemTime(date); - - console.log(new Date()); - const identity = identifyReplicant({ - createdAt: fixture.user.created_at, - reposCount: fixture.user.public_repos, - accountName: fixture.user.login, - events: fixture.events, - }); - expect(identity).toMatchSnapshot(); - }); -}); From a4eb16f61816c7909d0bdad9014f0189e61d4861 Mon Sep 17 00:00:00 2001 From: MatteoGabriele Date: Mon, 16 Mar 2026 19:13:00 +0100 Subject: [PATCH 2/2] refactor: constrain the amount of pages --- .../api/identify-replicant/[username].get.ts | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/server/api/identify-replicant/[username].get.ts b/server/api/identify-replicant/[username].get.ts index a09ca21..695f68a 100644 --- a/server/api/identify-replicant/[username].get.ts +++ b/server/api/identify-replicant/[username].get.ts @@ -2,7 +2,9 @@ import { GitHubEvent, identifyReplicant } from "voight-kampff-test"; import { Octokit } from "octokit"; import * as v from "valibot"; import { formatUsername } from "~~/server/utils/format-username"; -import type { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; + +const MIN_PAGES = 1; +const MAX_PAGES = 2; const QuerySchema = v.object({ created_at: v.pipe( @@ -20,7 +22,8 @@ const QuerySchema = v.object({ pages: v.pipe( v.number("pages must be a number"), v.integer("pages must be an integer"), - v.minValue(0, "pages must be a non-negative integer"), + v.minValue(MIN_PAGES, "pages must be at least 1"), + v.maxValue(MAX_PAGES, `pages must be equal or less than ${MAX_PAGES}`), ), }); @@ -55,16 +58,14 @@ export default defineEventHandler(async (event) => { const octokit = new Octokit({ auth: config.githubToken }); const formattedUsername = formatUsername(username); - const pageRequests = Array.from( - { length: parsedQuery.output.pages }, - (_, index) => { - return octokit.rest.activity.listPublicEventsForUser({ - username: formattedUsername, - per_page: 100, - page: index + 1, - }); - }, - ); + const validatedPages = Math.min(parsedQuery.output.pages, MAX_PAGES); + const pageRequests = Array.from({ length: validatedPages }, (_, index) => { + return octokit.rest.activity.listPublicEventsForUser({ + username: formattedUsername, + per_page: 100, + page: index + 1, + }); + }); const responses = await Promise.all(pageRequests); const events = responses.flatMap((response) => response.data);