├── .eslintignore ├── .eslintrc.json ├── .funcignore ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ ├── daily.yml │ ├── deploy.yml │ └── test.yml ├── .gitignore ├── .knip.jsonc ├── .npmignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── LICENSE ├── README.md ├── apollo.config.js ├── docs ├── dt-mergebot-lifecycle.svg ├── how-it-works.md └── policy.md ├── host.json ├── local.settings.json ├── package.json ├── pnpm-lock.yaml ├── src ├── _tests │ ├── cachedQueries.json │ ├── discussions.test.ts │ ├── fixturedActions.test.ts │ ├── fixtures │ │ ├── 38979 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43136 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43144 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43151 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43160 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43175 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43235 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _notes.txt │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43314 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43695 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43960 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44105 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44256 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44267 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44282 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44288 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44290 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44299 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44316 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44343 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44402 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44411 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44437 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44439 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44631 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44857 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45137 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45627 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45836 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45884 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45888 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45890 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45946 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45982 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 45999 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46008 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46019 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46120 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46191 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46196 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46279 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46804 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 46879 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 47017 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48216 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48236 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48708 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48945 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 49417 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 49548 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 49575 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 49841 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 50429 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 50443 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 51338 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 52579 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 52848 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 53121 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 55035 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 55210 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 55508 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 55512 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 55741 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 58632 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 58764 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 59628 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 66742 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 66757 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 66979 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 67090 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68381 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68386 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68510 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68511 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68512 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68772 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 68908 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 69589 │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43695-duplicate-comment │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43695-post-review │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 43960-post-close │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44299-with-files │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44343-pending-travis │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44343-pre-travis │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44424-1-travis-instantly-finished │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44424-2-after-travis-second │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44989-14days │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44989-32days │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44989-3days │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 44989-7days │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 47017-blessed-and-one-owner │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 47017-blessed-and-two-owner │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 47017-blessed │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48652-merge-offer │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48652-prereq │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48652-retract-merge-offer-and-prerequest │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ ├── 48652-retract-merge-offer │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ │ └── 52579-edits-infra │ │ │ ├── _downloads.json │ │ │ ├── _files.json │ │ │ ├── _response.json │ │ │ ├── derived.json │ │ │ ├── mutations.json │ │ │ └── result.json │ └── testEnvironment.js ├── basic.ts ├── commands │ ├── create-fixture.ts │ ├── update-all-fixtures.ts │ └── update-test-data.ts ├── comments.ts ├── compute-pr-actions.ts ├── discussions.ts ├── emoji.ts ├── execute-pr-actions.ts ├── functions │ ├── api.ts │ ├── discussions-trigger.ts │ ├── httpTrigger.ts │ ├── index.ts │ └── pr-trigger.ts ├── graphql-client.ts ├── pr-info.ts ├── queries │ ├── SHA1-to-PR-query.ts │ ├── all-open-prs-query.ts │ ├── card-id-to-pr-query.ts │ ├── file-query.ts │ ├── label-columns-queries.ts │ ├── pr-query.ts │ ├── projectboard-cards.ts │ └── schema │ │ ├── CardIdToPr.ts │ │ ├── GetAllOpenPRsAndCardIDs.ts │ │ ├── GetFileContent.ts │ │ ├── GetLabels.ts │ │ ├── GetPRForSHA1.ts │ │ ├── GetProjectBoardCards.ts │ │ ├── GetProjectColumns.ts │ │ ├── PR.ts │ │ ├── PRFiles.ts │ │ └── graphql-global-types.ts ├── run.ts ├── scripts │ └── updateJSONFixtures.ts ├── side-effects │ └── merge-codeowner-prs.ts ├── types │ └── discussions.d.ts ├── urls.ts └── util │ ├── cachedQueries.ts │ ├── comment.ts │ ├── fetchFile.ts │ ├── io.ts │ ├── npm.ts │ ├── reply.ts │ ├── util.ts │ └── verify.ts └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- 1 | /dist/ 2 | /src/queries/schema/ 3 | -------------------------------------------------------------------------------- /.funcignore: -------------------------------------------------------------------------------- 1 | *.js.map 2 | *.ts 3 | .git* 4 | .vscode 5 | local.settings.json 6 | test 7 | getting_started.md 8 | tsconfig.json 9 | src 10 | node_modules/@types/ 11 | node_modules/azure-functions-core-tools/ 12 | node_modules/typescript/ -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: 'github-actions' 9 | directory: '/' 10 | schedule: 11 | interval: 'weekly' 12 | groups: 13 | github-actions: 14 | patterns: 15 | - '*' 16 | -------------------------------------------------------------------------------- /.github/workflows/daily.yml: -------------------------------------------------------------------------------- 1 | name: Daily Open PR Sync 2 | 3 | on: 4 | workflow_dispatch: ~ 5 | schedule: 6 | - cron: '37 */6 * * *' 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 14 | - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 15 | with: 16 | node-version: '20.x' 17 | - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 18 | - run: pnpm install 19 | - run: pnpm run build 20 | 21 | # Go through all open PRs and run the bot over them 22 | - run: node ./dist/run.js 23 | env: 24 | BOT_AUTH_TOKEN: ${{ secrets.BOT_AUTH_TOKEN }} 25 | 26 | keepalive-job: 27 | name: Keepalive Workflow 28 | runs-on: ubuntu-latest 29 | permissions: 30 | actions: write 31 | steps: 32 | - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 33 | - uses: gautamkrishnar/keepalive-workflow@05456e7809058d586d96392e99217726ccc10076 # v2.0.5 34 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: pull_request 3 | 4 | defaults: 5 | run: 6 | shell: bash 7 | 8 | jobs: 9 | lint: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 13 | - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 14 | with: 15 | node-version: '20.x' 16 | - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 17 | - run: pnpm install 18 | - run: pnpm run lint 19 | - run: npx knip 20 | test: 21 | strategy: 22 | fail-fast: false 23 | matrix: 24 | os: 25 | - ubuntu-latest 26 | - windows-latest 27 | runs-on: ${{ matrix.os }} 28 | steps: 29 | - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 30 | - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 31 | with: 32 | node-version: '20.x' 33 | - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 34 | - run: pnpm install 35 | - run: pnpm run build 36 | - run: pnpm test 37 | - run: pnpm run bundle 38 | - run: BOT_AUTH_TOKEN=secret node dist/functions/index.js 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | csx 4 | .vs 5 | edge 6 | Publish 7 | 8 | *.user 9 | *.suo 10 | *.cscfg 11 | *.Cache 12 | project.lock.json 13 | 14 | /packages 15 | /TestResults 16 | 17 | /tools/NuGet.exe 18 | /App_Data 19 | /secrets 20 | /data 21 | .secrets 22 | appsettings.json 23 | local.settings.json 24 | 25 | node_modules 26 | dist 27 | 28 | # Local python packages 29 | .python_packages/ 30 | 31 | # Python Environments 32 | .env 33 | .venv 34 | env/ 35 | venv/ 36 | ENV/ 37 | env.bak/ 38 | venv.bak/ 39 | 40 | # Byte-compiled / optimized / DLL files 41 | __pycache__/ 42 | *.py[cod] 43 | *$py.class 44 | 45 | # Azurite artifacts 46 | __blobstorage__ 47 | __queuestorage__ 48 | __azurite_db*__.json -------------------------------------------------------------------------------- /.knip.jsonc: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/knip@5/schema.json", 3 | "entry": [ 4 | "src/run.ts", 5 | "src/commands/*.ts", 6 | "src/functions/*.ts", 7 | "src/scripts/*.ts", 8 | "src/_tests/testEnvironment.js", 9 | "apollo.config.js" 10 | ], 11 | "project": [ 12 | "**/*.{js,ts,tsx}" 13 | ], 14 | "ignore": ["src/queries/schema/**", "dist/**"], 15 | "ignoreExportsUsedInFile": true 16 | } 17 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .git/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "ms-azuretools.vscode-azurefunctions" 4 | ] 5 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "type": "node", 6 | "request": "attach", 7 | "name": "Attach by Process ID", 8 | "processId": "${command:PickProcess}", 9 | "skipFiles": [ 10 | "/**" 11 | ] 12 | }, 13 | { 14 | "type": "node", 15 | "request": "launch", 16 | "name": "Run tests with debugger", 17 | "program": "${workspaceFolder}/node_modules/.bin/jest", 18 | "args": [ 19 | "-i", 20 | "--runInBand" 21 | ], 22 | "console": "integratedTerminal", 23 | "internalConsoleOptions": "neverOpen" 24 | }, 25 | 26 | { 27 | "name": "Attach to Node Functions", 28 | "type": "node", 29 | "request": "attach", 30 | "port": 9229, 31 | "preLaunchTask": "func: host start" 32 | } 33 | ] 34 | } 35 | 36 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "typescript.tsdk": "node_modules\\typescript\\lib", 3 | "files.exclude": { 4 | "**/.git": true, 5 | "**/.svn": true, 6 | "**/.hg": true, 7 | "**/CVS": true, 8 | "**/.DS_Store": true, 9 | "**/bin": true 10 | }, 11 | "debug.internalConsoleOptions": "neverOpen" 12 | } 13 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "type": "func", 6 | "command": "host start", 7 | "problemMatcher": "$func-watch", 8 | "isBackground": true, 9 | "dependsOn": "pnpm build" 10 | }, 11 | { 12 | "type": "shell", 13 | "label": "pnpm build", 14 | "command": "pnpm run build", 15 | "dependsOn": "pnpm install", 16 | "problemMatcher": "$tsc" 17 | }, 18 | { 19 | "type": "shell", 20 | "label": "pnpm install", 21 | "command": "pnpm install" 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Ryan Cavanaugh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This repo has moved. 2 | 3 | dt-mergebot is now part of [microsoft/DefinitelyTyped-tools](https://github.com/microsoft/DefinitelyTyped-tools/tree/main/packages/mergebot). -------------------------------------------------------------------------------- /apollo.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | client: { 3 | includes: ["src/queries/**"], 4 | service: { 5 | name: "github", 6 | url: "https://api.github.com/graphql", 7 | headers: { 8 | authorization: `Bearer ${ 9 | process.env["DT_BOT_AUTH_TOKEN"] || 10 | process.env["BOT_AUTH_TOKEN"] || 11 | process.env["AUTH_TOKEN"] 12 | }`, 13 | accept: "application/vnd.github.starfox-preview+json, application/vnd.github.bane-preview+json", 14 | }, 15 | } 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /host.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0", 3 | "logging": { 4 | "applicationInsights": { 5 | "samplingSettings": { 6 | "isEnabled": true, 7 | "excludedTypes": "Request" 8 | } 9 | } 10 | }, 11 | "singleton": { 12 | "lockPeriod": "00:00:15", 13 | "listenerLockPeriod": "00:01:00", 14 | "listenerLockRecoveryPollingInterval": "00:01:00", 15 | "lockAcquisitionTimeout": "00:01:00", 16 | "lockAcquisitionPollingInterval": "00:00:03" 17 | }, 18 | "extensionBundle": { 19 | "id": "Microsoft.Azure.Functions.ExtensionBundle", 20 | "version": "[3.15.0, 4.0.0)" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /local.settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "IsEncrypted": false, 3 | "Values": { 4 | "FUNCTIONS_WORKER_RUNTIME": "node", 5 | "AzureWebJobsFeatureFlags": "EnableWorkerIndexing", 6 | "AzureWebJobsStorage": "" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/discussions.test.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * @jest-environment ./src/_tests/testEnvironment 3 | */ 4 | /// 5 | import {canHandleRequest, extractNPMReference} from "../discussions"; 6 | 7 | describe(canHandleRequest, () => { 8 | const eventActions = [ 9 | ["discussion", "created", true], 10 | ["discussion", "edited", true], 11 | ["discussion", "updated", false], 12 | ["pull_request", "created", false] 13 | ] as const; 14 | 15 | test.concurrent.each(eventActions)("(%s, %s) is %s", async (event, action, expected) => { 16 | expect(canHandleRequest(event, action)).toEqual(expected); 17 | }); 18 | }); 19 | 20 | describe(extractNPMReference, () => { 21 | const eventActions = [ 22 | ["[node] my thingy", "node"], 23 | ["OK [react]", "react"], 24 | ["I think [@typescript/twoslash] need improving ", "@typescript/twoslash"], 25 | ["[@types/node] needs X", "node"], 26 | ] as const; 27 | 28 | test.concurrent.each(eventActions)("(%s, %s) is %s", async (title, result) => { 29 | expect(extractNPMReference({ title })).toEqual(result); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /src/_tests/fixtures/38979/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "es-abstract": 8537567 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/38979/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/es-abstract/index.d.ts": "// Type definitions for es-abstract 1.16\n// Project: https://github.com/ljharb/es-abstract\n// Definitions by: RReverser \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n FAKE CONTENT TO MATCH PREVIOUS OWNERS.JSON \n", 3 | "222334139e52fc16369464cfb5dc95c82f71192f:types/es-abstract/index.d.ts": "// Type definitions for es-abstract 1.16\n// Project: https://github.com/ljharb/es-abstract\n// Definitions by: RReverser \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n FAKE CONTENT TO MATCH PREVIOUS OWNERS.JSON \n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43136/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "estree": 8537567 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43136/_notes.txt: -------------------------------------------------------------------------------- 1 | This should be a "wait" - while the reviewer did approve, there was a new commit since then 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43136/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T19:14:42.000Z", 4 | "pr_number": 43136, 5 | "author": "larsrh", 6 | "headCommitOid": "e6863537248bbfee8f0ef8c636bb00c25cf40b96", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-16T14:26:42.000Z", 9 | "lastActivityDate": "2020-03-16T14:31:40.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Critical", 15 | "pkgInfo": [ 16 | { 17 | "name": "estree", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/estree/estree-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/estree/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [ 30 | "RReverser" 31 | ], 32 | "addedOwners": [], 33 | "deletedOwners": [], 34 | "popularityLevel": "Critical" 35 | } 36 | ], 37 | "reviews": [ 38 | { 39 | "type": "stale", 40 | "reviewer": "RReverser", 41 | "date": "2020-03-14T19:23:36.000Z", 42 | "abbrOid": "37d784d" 43 | } 44 | ], 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43144/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mailcheck": 10455 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43144/_notes.txt: -------------------------------------------------------------------------------- 1 | This is a PR which is ready to go 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43144/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T04:59:48.000Z", 4 | "pr_number": 43144, 5 | "author": "jeffreymeng", 6 | "headCommitOid": "f1f5c4bb0ae553f56766882f6458d2e22baa87c7", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-15T00:11:48.000Z", 9 | "lastActivityDate": "2020-03-15T01:29:09.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "mailcheck", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/mailcheck/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/mailcheck/mailcheck-tests.ts", 26 | "kind": "test" 27 | } 28 | ], 29 | "owners": [ 30 | "pocesar" 31 | ], 32 | "addedOwners": [], 33 | "deletedOwners": [], 34 | "popularityLevel": "Well-liked by everyone" 35 | } 36 | ], 37 | "reviews": [ 38 | { 39 | "type": "approved", 40 | "reviewer": "pocesar", 41 | "date": "2020-03-15T01:29:09.000Z", 42 | "isMaintainer": false 43 | } 44 | ], 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43144/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Author to Merge", 3 | "labels": [ 4 | "Owner Approved", 5 | "Self Merge" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@jeffreymeng Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `mailcheck` — [on npm](https://www.npmjs.com/package/mailcheck), [on unpkg](https://unpkg.com/browse/mailcheck@latest/)\n - owner-approval: @pocesar\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=43144&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Most recent commit is approved by type definition owners, DT maintainers or others\n\nAll of the items on the list are green. **To merge, you need to post a comment including the string \"Ready to merge\"** to bring in your changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "merge-offer", 14 | "status": "@jeffreymeng: Everything looks good here. I am ready to merge this PR (at f1f5c4b) on your behalf whenever you think it's ready.\n\nIf you'd like that to happen, please post a comment saying:\n\n> Ready to merge\n\nand I'll merge this PR almost instantly. Thanks for helping out! :heart:\n\n(@pocesar: you can do this too.)" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43151/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gaze": 197887 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43151/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "bb6d3150b485cd203d265e06ca910262256e523e:types/gaze/index.d.ts": "// Type definitions for gaze 1.1\n// Project: https://github.com/shama/gaze\n// Definitions by: Adam Zerella \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\ntype Mode = 'auto' | 'watch' | 'poll';\n\ninterface Options {\n /**\n * Interval to pass to fs.watchFile.\n */\n interval?: number;" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43151/_notes.txt: -------------------------------------------------------------------------------- 1 | This PR is a new package, which required a DT maintainer to validate 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43151/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T17:38:20.000Z", 4 | "pr_number": 43151, 5 | "author": "adamzerella", 6 | "headCommitOid": "bb6d3150b485cd203d265e06ca910262256e523e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-15T12:50:20.000Z", 9 | "lastActivityDate": "2020-03-15T18:11:57.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "gaze", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/gaze/gaze-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/gaze/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/gaze/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/gaze/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "adamzerella" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [], 47 | "ciResult": "pass" 48 | } 49 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43160/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "dagre": 119291 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43160/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/dagre/index.d.ts": "// Type definitions for dagre 0.7\n// Project: https://github.com/dagrejs/dagre\n// Definitions by: Qinfeng Chen \n// Lisa Vallfors \n// Pete Vilter \n// David Newell \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.2\n\nexport as namespace dagre;\n", 3 | "6d5d2a85b41d287f97c9d331a9ff6a9824e2f1ff:types/dagre/index.d.ts": "// Type definitions for dagre 0.7\n// Project: https://github.com/dagrejs/dagre\n// Definitions by: Qinfeng Chen \n// Lisa Vallfors \n// Pete Vilter \n// David Newell \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.2\n\nexport as namespace dagre;\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43160/_notes.txt: -------------------------------------------------------------------------------- 1 | This PR is red, but got an accept - the output is wrong here because the PR was accepted - only CI failed 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43160/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T13:02:50.000Z", 4 | "pr_number": 43160, 5 | "author": "rikkertkoppes", 6 | "headCommitOid": "6d5d2a85b41d287f97c9d331a9ff6a9824e2f1ff", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-16T08:14:50.000Z", 9 | "lastActivityDate": "2020-03-17T14:33:47.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "dagre", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/dagre/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "qinfchen", 27 | "Frankrike", 28 | "vilterp", 29 | "rustedgrail" 30 | ], 31 | "addedOwners": [], 32 | "deletedOwners": [], 33 | "popularityLevel": "Well-liked by everyone" 34 | } 35 | ], 36 | "reviews": [ 37 | { 38 | "type": "approved", 39 | "reviewer": "rustedgrail", 40 | "date": "2020-03-17T14:33:47.000Z", 41 | "isMaintainer": false 42 | } 43 | ], 44 | "ciResult": "fail", 45 | "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/22c73c88cc9c09efd4c2998ec360607dd4c36c2e/checks?check_suite_id=731664306" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43175/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "chrome": 298025 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43175/_notes.txt: -------------------------------------------------------------------------------- 1 | This is a PR which is mostly ready, but requires a human to say yes 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43175/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T18:39:37.000Z", 4 | "pr_number": 43175, 5 | "author": "ankhler", 6 | "headCommitOid": "b4b3bc8a617e2e0810d60e389415818d903e6362", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-17T13:51:37.000Z", 9 | "lastActivityDate": "2020-03-17T13:51:37.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "chrome", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/chrome/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "matthewkimber", 27 | "otiai10", 28 | "couven92", 29 | "rreverser", 30 | "sreimer15", 31 | "MatCarlson", 32 | "ekinsol", 33 | "tregagnon", 34 | "echoabstract", 35 | "spasma" 36 | ], 37 | "addedOwners": [], 38 | "deletedOwners": [], 39 | "popularityLevel": "Popular" 40 | } 41 | ], 42 | "reviews": [ 43 | { 44 | "type": "stale", 45 | "reviewer": "couven92", 46 | "date": "2020-03-17T13:29:17.000Z", 47 | "abbrOid": "767a750" 48 | } 49 | ], 50 | "ciResult": "pass" 51 | } 52 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43235/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "arcgis-js-api": 30242 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43235/_notes.txt: -------------------------------------------------------------------------------- 1 | Looks good, waiting on feedback from a reviewer 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43235/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-19T19:25:52.000Z", 4 | "pr_number": 43235, 5 | "author": "Favna", 6 | "headCommitOid": "933d8d81859cea3cb2df640bd099ef80bee3d691", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-19T14:37:52.000Z", 9 | "lastActivityDate": "2020-03-19T14:37:52.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "arcgis-js-api", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/arcgis-js-api/arcgis-js-api-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/arcgis-js-api/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [ 30 | "Esri", 31 | "bsvensson" 32 | ], 33 | "addedOwners": [], 34 | "deletedOwners": [], 35 | "popularityLevel": "Well-liked by everyone" 36 | } 37 | ], 38 | "reviews": [], 39 | "ciResult": "pass" 40 | } 41 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43235/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@Favna Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `arcgis-js-api` — [on npm](https://www.npmjs.com/package/arcgis-js-api), [on unpkg](https://unpkg.com/browse/arcgis-js-api@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=43235&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @Esri @bsvensson — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43235/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43314/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "carbon__icon-helpers": 1036 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43314/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "432f23fe1b87b12fe58bb1a8958f77ee3242741e:types/carbon__icon-helpers/index.d.ts": "// Type definitions for @carbon/icon-helpers 10.6\n// Project: https://github.com/carbon-design-system/carbon/blob/master/packages/icon-helpers\n// Definitions by: Eric Liu \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.8\n\nexport interface Path {\n elem: 'path';\n attrs: { d: string };\n}" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43314/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-03-22T21:36:44.000Z", 4 | "pr_number": 43314, 5 | "author": "metonym", 6 | "headCommitOid": "432f23fe1b87b12fe58bb1a8958f77ee3242741e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-03-22T16:48:44.000Z", 9 | "lastActivityDate": "2020-03-22T16:50:35.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "carbon__icon-helpers", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/carbon__icon-helpers/carbon__icon-helpers-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/carbon__icon-helpers/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/carbon__icon-helpers/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/carbon__icon-helpers/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "metonym" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [], 47 | "ciResult": "pass" 48 | } 49 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695-duplicate-comment/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695-duplicate-comment/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "3e836178b736e5512361ffda46e84a5c668d7a90:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695-post-review/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695-post-review/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "90c94f91120c026f5f8bcc586426e8590b7b4048:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "a5285cda2722912a390770722a334e6d6e43d1ab:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43695/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-08T12:29:36.999Z", 4 | "pr_number": 43695, 5 | "author": "alexandercerutti", 6 | "headCommitOid": "a5285cda2722912a390770722a334e6d6e43d1ab", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-07T07:41:37.000Z", 9 | "lastActivityDate": "2020-04-08T16:23:52.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "accedo__accedo-one", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/accedo__accedo-one/accedo__accedo-one-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/accedo__accedo-one/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/accedo__accedo-one/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/accedo__accedo-one/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "alexandercerutti" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [ 47 | { 48 | "type": "changereq", 49 | "reviewer": "RyanCavanaugh", 50 | "date": "2020-04-08T16:23:52.000Z" 51 | } 52 | ], 53 | "ciResult": "pass" 54 | } 55 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960-post-close/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960-post-close/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-30T19:01:56.000Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960-post-close/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: DeleteProjectCardInput!) {\n deleteProjectCard(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "cardId": "MDExOlByb2plY3RDYXJkMzcyNjkxMzM=" 7 | } 8 | } 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960-post-close/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "supertest": 2236866 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T22:09:53.999Z", 4 | "pr_number": 43960, 5 | "author": "aaltepet", 6 | "headCommitOid": "129f84e4492a76e7cd5af9d946c4583a60e6eb88", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-16T17:21:54.000Z", 9 | "lastActivityDate": "2020-04-29T20:48:52.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "supertest", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/supertest/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/supertest/supertest-tests.ts", 26 | "kind": "test" 27 | } 28 | ], 29 | "owners": [ 30 | "varju", 31 | "pietu" 32 | ], 33 | "addedOwners": [], 34 | "deletedOwners": [], 35 | "popularityLevel": "Popular" 36 | } 37 | ], 38 | "reviews": [ 39 | { 40 | "type": "changereq", 41 | "reviewer": "andrewbranch", 42 | "date": "2020-04-27T18:56:06.000Z" 43 | } 44 | ], 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/43960/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Needs Author Action", 3 | "labels": [ 4 | "Revision needed", 5 | "Popular package" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@aaltepet Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `supertest` — [on npm](https://www.npmjs.com/package/supertest), [on unpkg](https://unpkg.com/browse/supertest@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=43960&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners or DT maintainers\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "reviewer-complaint-129f84e", 14 | "status": "@aaltepet One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44105/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44105/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44105/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-28T22:49:39.000Z", 4 | "message": "PR is not active" 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44105/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: DeleteProjectCardInput!) {\n deleteProjectCard(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "cardId": "MDExOlByb2plY3RDYXJkMzcxNDk2MTU=" 7 | } 8 | } 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44105/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44256/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44256/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44256/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-30T19:07:55.000Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44256/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: DeleteIssueCommentInput!) {\n deleteIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDYyMTU1OTExNA==" 7 | } 8 | } 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44256/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44267/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "intercom-client": 49986 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44267/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-30T22:04:05.517Z", 4 | "pr_number": 44267, 5 | "author": "ErikMartensson", 6 | "headCommitOid": "ceb74b3471454b2f57cbe671e130028c680ffb88", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-27T14:15:25.000Z", 9 | "lastActivityDate": "2020-04-28T06:48:36.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "intercom-client", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/intercom-client/User.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/intercom-client/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [ 30 | "jineshshah36", 31 | "peping", 32 | "mikhail-monchak", 33 | "cdoe", 34 | "malithrw" 35 | ], 36 | "addedOwners": [], 37 | "deletedOwners": [], 38 | "popularityLevel": "Well-liked by everyone" 39 | } 40 | ], 41 | "reviews": [ 42 | { 43 | "type": "approved", 44 | "reviewer": "malithrw", 45 | "date": "2020-04-28T06:48:36.000Z", 46 | "isMaintainer": false 47 | } 48 | ], 49 | "ciResult": "pass" 50 | } 51 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44282/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "benchmark": 97099 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44282/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/benchmark/index.d.ts": "// Type definitions for Benchmark v1.0.0\n// Project: http://benchmarkjs.com\n// Definitions by: Asana \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n\ndeclare class Benchmark {\n", 3 | "25794304acf8c1fd70712bd068beb07b0e09755e:types/benchmark/index.d.ts": "// Type definitions for Benchmark v1.0.0\n// Project: https://benchmarkjs.com\n// Definitions by: Asana \n// Charlie Fish \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n\ndeclare class Benchmark {\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44282/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-28T04:46:24.000Z", 4 | "pr_number": 44282, 5 | "author": "fishcharlie", 6 | "headCommitOid": "25794304acf8c1fd70712bd068beb07b0e09755e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-27T23:58:24.000Z", 9 | "lastActivityDate": "2020-04-28T00:29:59.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "benchmark", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/benchmark/benchmark-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/benchmark/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [], 30 | "addedOwners": [ 31 | "fishcharlie" 32 | ], 33 | "deletedOwners": [], 34 | "popularityLevel": "Well-liked by everyone" 35 | } 36 | ], 37 | "reviews": [], 38 | "ciResult": "pass" 39 | } 40 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44288/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-bootstrap-table2-paginator": 8976 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44288/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-28T09:34:31.000Z", 4 | "pr_number": 44288, 5 | "author": "nomatteus", 6 | "headCommitOid": "05ee6f2784d694258f61e7a93a95e758ea29ad9d", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-28T04:46:31.000Z", 9 | "lastActivityDate": "2020-04-28T04:48:25.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "react-bootstrap-table2-paginator", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/react-bootstrap-table2-paginator/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/react-bootstrap-table2-paginator/react-bootstrap-table2-paginator-tests.tsx", 26 | "kind": "test" 27 | } 28 | ], 29 | "owners": [ 30 | "gosticks" 31 | ], 32 | "addedOwners": [], 33 | "deletedOwners": [], 34 | "popularityLevel": "Well-liked by everyone" 35 | } 36 | ], 37 | "reviews": [], 38 | "ciResult": "pass" 39 | } 40 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44288/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@nomatteus Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `react-bootstrap-table2-paginator` — [on npm](https://www.npmjs.com/package/react-bootstrap-table2-paginator), [on unpkg](https://unpkg.com/browse/react-bootstrap-table2-paginator@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44288&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @gosticks — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44288/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44290/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44290/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44290/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-28T16:41:44.000Z", 4 | "message": "PR is a draft", 5 | "isDraft": true 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44290/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44290/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "Needs Author Action" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299-with-files/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "hcaptcha__vue-hcaptcha": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299-with-files/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/tslint.json": "{\n \"extends\": \"@definitelytyped/dtslint/dt.json\"\n}\n", 3 | "683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/index.d.ts": "// Type definitions for @hcaptcha/vue-hcaptcha 0.2\n// Project: https://github.com/hCaptcha/vue-hcaptcha\n// Definitions by: George Pickering \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.8\n\nimport { VueConstructor } from 'vue';\nexport const h: HCaptcha;\nexport default h;\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299-with-files/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T17:19:10.716Z", 4 | "pr_number": 44299, 5 | "author": "geopic", 6 | "headCommitOid": "683fb3b1298223256be3a49823686f35bd94a730", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T10:57:59.000Z", 9 | "lastActivityDate": "2020-04-29T10:57:59.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "hcaptcha__vue-hcaptcha", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/hcaptcha__vue-hcaptcha/hcaptcha__vue-hcaptcha-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/hcaptcha__vue-hcaptcha/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/hcaptcha__vue-hcaptcha/package.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/hcaptcha__vue-hcaptcha/tsconfig.json", 34 | "kind": "package-meta-ok" 35 | }, 36 | { 37 | "path": "types/hcaptcha__vue-hcaptcha/tslint.json", 38 | "kind": "package-meta", 39 | "suspect": "edited" 40 | } 41 | ], 42 | "owners": [], 43 | "addedOwners": [ 44 | "geopic" 45 | ], 46 | "deletedOwners": [], 47 | "popularityLevel": "Well-liked by everyone" 48 | } 49 | ], 50 | "reviews": [], 51 | "ciResult": "pass" 52 | } 53 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "hcaptcha__vue-hcaptcha": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/index.d.ts": "// Type definitions for @hcaptcha/vue-hcaptcha 0.2\n// Project: https://github.com/hCaptcha/vue-hcaptcha\n// Definitions by: George Pickering \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.8\n\nimport { VueConstructor } from 'vue';\nexport const h: HCaptcha;\nexport default h;\n" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44299/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T17:19:10.716Z", 4 | "pr_number": 44299, 5 | "author": "geopic", 6 | "headCommitOid": "683fb3b1298223256be3a49823686f35bd94a730", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T10:57:59.000Z", 9 | "lastActivityDate": "2020-04-29T10:57:59.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "hcaptcha__vue-hcaptcha", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/hcaptcha__vue-hcaptcha/hcaptcha__vue-hcaptcha-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/hcaptcha__vue-hcaptcha/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/hcaptcha__vue-hcaptcha/package.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/hcaptcha__vue-hcaptcha/tsconfig.json", 34 | "kind": "package-meta-ok" 35 | }, 36 | { 37 | "path": "types/hcaptcha__vue-hcaptcha/tslint.json", 38 | "kind": "package-meta", 39 | "suspect": "edited" 40 | } 41 | ], 42 | "owners": [], 43 | "addedOwners": [ 44 | "geopic" 45 | ], 46 | "deletedOwners": [], 47 | "popularityLevel": "Well-liked by everyone" 48 | } 49 | ], 50 | "reviews": [], 51 | "ciResult": "pass" 52 | } 53 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44316/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vimeo": 3530 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44316/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-05-01T15:22:22.898Z", 4 | "pr_number": 44316, 5 | "author": "mattleff", 6 | "headCommitOid": "55357f7d60d059b5c84a23bd92854276a8f9a419", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T15:19:08.000Z", 9 | "lastActivityDate": "2020-04-29T15:19:08.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "vimeo", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/vimeo/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/vimeo/tsconfig.json", 26 | "kind": "package-meta-ok" 27 | }, 28 | { 29 | "path": "types/vimeo/vimeo-tests.ts", 30 | "kind": "test" 31 | } 32 | ], 33 | "owners": [ 34 | "mattleff" 35 | ], 36 | "addedOwners": [], 37 | "deletedOwners": [], 38 | "popularityLevel": "Well-liked by everyone" 39 | } 40 | ], 41 | "reviews": [], 42 | "ciResult": "pass" 43 | } 44 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44316/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [ 4 | "Author is Owner", 5 | "No Other Owners" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@mattleff Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `vimeo` — [on npm](https://www.npmjs.com/package/vimeo), [on unpkg](https://unpkg.com/browse/vimeo@latest/) (author is owner)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44316&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "pinging-reviewers-others", 14 | "status": "🔔 @mattleff — you're the only owner, but it would still be good if you find someone to [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44316/files) in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pending-travis/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pending-travis/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n", 3 | "abd65c3bbbf3463b41127be203c37fe64f717a7e:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pending-travis/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T16:19:21.000Z", 4 | "pr_number": 44343, 5 | "author": "sandersn", 6 | "headCommitOid": "abd65c3bbbf3463b41127be203c37fe64f717a7e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T16:19:21.000Z", 9 | "lastActivityDate": "2020-04-29T16:19:21.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "amplify", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/amplify/amplify-tests.ts", 22 | "kind": "test" 23 | } 24 | ], 25 | "owners": [ 26 | "joeriks" 27 | ], 28 | "addedOwners": [], 29 | "deletedOwners": [], 30 | "popularityLevel": "Well-liked by everyone" 31 | } 32 | ], 33 | "reviews": [], 34 | "ciResult": "unknown" 35 | } 36 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pending-travis/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@sandersn Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `amplify` — [on npm](https://www.npmjs.com/package/amplify), [on unpkg](https://unpkg.com/browse/amplify@latest/)\n\n## Code Reviews\n\nBecause you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44343&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @joeriks — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44343/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pre-travis/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pre-travis/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n", 3 | "abd65c3bbbf3463b41127be203c37fe64f717a7e:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pre-travis/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T16:19:21.000Z", 4 | "pr_number": 44343, 5 | "author": "sandersn", 6 | "headCommitOid": "abd65c3bbbf3463b41127be203c37fe64f717a7e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T16:19:21.000Z", 9 | "lastActivityDate": "2020-04-29T16:19:21.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "amplify", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/amplify/amplify-tests.ts", 22 | "kind": "test" 23 | } 24 | ], 25 | "owners": [ 26 | "joeriks" 27 | ], 28 | "addedOwners": [], 29 | "deletedOwners": [], 30 | "popularityLevel": "Well-liked by everyone" 31 | } 32 | ], 33 | "reviews": [], 34 | "ciResult": "unknown" 35 | } 36 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343-pre-travis/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@sandersn Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `amplify` — [on npm](https://www.npmjs.com/package/amplify), [on unpkg](https://unpkg.com/browse/amplify@latest/)\n\n## Code Reviews\n\nBecause you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44343&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @joeriks — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44343/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n", 3 | "abd65c3bbbf3463b41127be203c37fe64f717a7e:types/amplify/index.d.ts": "// Type definitions for AmplifyJs 1.1\n// Project: http://amplifyjs.com/\n// Definitions by: Jonas Eriksson \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-04-29T21:07:21.000Z", 4 | "pr_number": 44343, 5 | "author": "sandersn", 6 | "headCommitOid": "abd65c3bbbf3463b41127be203c37fe64f717a7e", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-04-29T16:19:21.000Z", 9 | "lastActivityDate": "2020-04-29T16:19:21.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "amplify", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/amplify/amplify-tests.ts", 22 | "kind": "test" 23 | } 24 | ], 25 | "owners": [ 26 | "joeriks" 27 | ], 28 | "addedOwners": [], 29 | "deletedOwners": [], 30 | "popularityLevel": "Well-liked by everyone" 31 | } 32 | ], 33 | "reviews": [], 34 | "ciResult": "unknown" 35 | } 36 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44343/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@sandersn Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `amplify` — [on npm](https://www.npmjs.com/package/amplify), [on unpkg](https://unpkg.com/browse/amplify@latest/)\n\n## Code Reviews\n\nBecause you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44343&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @joeriks — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44343/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44402/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44402/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44411/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest-image-snapshot": 146509 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44411/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/jest-image-snapshot/index.d.ts": "// Type definitions for jest-image-snapshot 2.12\n// Project: https://github.com/americanexpress/jest-image-snapshot#readme\n// Definitions by: Janeene Beeforth \n// erbridge \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.1\n\n/// \n", 3 | "d0d51a062525a6a4b83b297cd0e75adb4d5628f6:types/jest-image-snapshot/index.d.ts": "// Type definitions for jest-image-snapshot 3.1\n// Project: https://github.com/americanexpress/jest-image-snapshot#readme\n// Definitions by: Janeene Beeforth \n// erbridge \n// Piotr Błażejewicz \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.1\n\n/// \n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44424-1-travis-instantly-finished/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "openfin": 9067 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44424-1-travis-instantly-finished/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/openfin/index.d.ts": "// Type definitions for non-npm package OpenFin API 51.0\n// Project: https://openfin.co/\n// Definitions by: Chris Barker \n// Ricardo de Pena \n// Roma \n// Li Cui \n// Tomer Sharon \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n// based on v16.83.51.26\n// see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean\n", 3 | "af636941dac21c0752befa1617297dfdac3e0a52:types/openfin/index.d.ts": "// Type definitions for non-npm package OpenFin API 51.0\n// Project: https://openfin.co/\n// Definitions by: Chris Barker \n// Ricardo de Pena \n// Roma \n// Li Cui \n// Tomer Sharon \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n// based on v16.83.51.26\n// see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44424-2-after-travis-second/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "openfin": 9067 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44424-2-after-travis-second/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/openfin/index.d.ts": "// Type definitions for non-npm package OpenFin API 51.0\n// Project: https://openfin.co/\n// Definitions by: Chris Barker \n// Ricardo de Pena \n// Roma \n// Li Cui \n// Tomer Sharon \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n// based on v16.83.51.26\n// see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean\n", 3 | "af636941dac21c0752befa1617297dfdac3e0a52:types/openfin/index.d.ts": "// Type definitions for non-npm package OpenFin API 51.0\n// Project: https://openfin.co/\n// Definitions by: Chris Barker \n// Ricardo de Pena \n// Roma \n// Li Cui \n// Tomer Sharon \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.6\n\n// based on v16.83.51.26\n// see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44437/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "prompts": 539890 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44437/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/prompts/index.d.ts": "// Type definitions for prompts 2.0\n// Project: https://github.com/terkelg/prompts\n// Definitions by: Berkay GURSOY \n// Daniel Perez Alvarez \n// Kamontat Chantrachirathumrong \n// theweirdone \n// whoaa512 \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.9\n\nexport = prompts;\n", 3 | "eb92456861d4537c6e96dd7865e715aa4812aae0:types/prompts/index.d.ts": "// Type definitions for prompts 2.0\n// Project: https://github.com/terkelg/prompts\n// Definitions by: Berkay GURSOY \n// Daniel Perez Alvarez \n// Kamontat Chantrachirathumrong \n// theweirdone \n// whoaa512 \n// John Reilly \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.9\n\nexport = prompts;\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44437/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-05-02T15:44:09.276Z", 4 | "pr_number": 44437, 5 | "author": "johnnyreilly", 6 | "headCommitOid": "eb92456861d4537c6e96dd7865e715aa4812aae0", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-05-02T12:17:06.000Z", 9 | "lastActivityDate": "2020-05-02T12:17:22.000Z", 10 | "mergeOfferDate": "2020-05-02T12:19:18.000Z", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": false, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Popular", 16 | "pkgInfo": [ 17 | { 18 | "name": "prompts", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/prompts/index.d.ts", 23 | "kind": "definition" 24 | }, 25 | { 26 | "path": "types/prompts/prompts-tests.ts", 27 | "kind": "test" 28 | } 29 | ], 30 | "owners": [ 31 | "Berkays", 32 | "unindented", 33 | "kamontat", 34 | "theweirdone", 35 | "whoaa512" 36 | ], 37 | "addedOwners": [ 38 | "johnnyreilly" 39 | ], 40 | "deletedOwners": [], 41 | "popularityLevel": "Popular" 42 | } 43 | ], 44 | "reviews": [ 45 | { 46 | "type": "approved", 47 | "reviewer": "kamontat", 48 | "date": "2020-05-02T12:17:22.000Z", 49 | "isMaintainer": false 50 | } 51 | ], 52 | "ciResult": "pass" 53 | } 54 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44439/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "detect-port": 58143 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44439/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/detect-port/index.d.ts": "// Type definitions for detect-port 1.1\n// Project: https://github.com/node-modules/detect-port\n// Definitions by: François Nguyen \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n", 3 | "f8b161266a38186c3d7ab715ea63f68d5ef542ed:types/detect-port/index.d.ts": "// Type definitions for detect-port 1.3\n// Project: https://github.com/node-modules/detect-port\n// Definitions by: François Nguyen \n// Ivan Medina \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44439/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-05-02T14:37:15.529Z", 4 | "pr_number": 44439, 5 | "author": "ivandevp", 6 | "headCommitOid": "f8b161266a38186c3d7ab715ea63f68d5ef542ed", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-05-02T13:54:02.000Z", 9 | "lastActivityDate": "2020-05-02T14:36:15.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": null, 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/detect-port-1.1.4.tgz", 22 | "kind": "infrastructure" 23 | } 24 | ], 25 | "owners": [], 26 | "addedOwners": [], 27 | "deletedOwners": [], 28 | "popularityLevel": "Critical", 29 | "isSafeInfrastructureEdit": false 30 | }, 31 | { 32 | "name": "detect-port", 33 | "kind": "edit", 34 | "files": [ 35 | { 36 | "path": "types/detect-port/detect-port-tests.ts", 37 | "kind": "test" 38 | }, 39 | { 40 | "path": "types/detect-port/index.d.ts", 41 | "kind": "definition" 42 | } 43 | ], 44 | "owners": [ 45 | "lith-light-g" 46 | ], 47 | "addedOwners": [ 48 | "ivandevp" 49 | ], 50 | "deletedOwners": [], 51 | "popularityLevel": "Well-liked by everyone" 52 | } 53 | ], 54 | "reviews": [], 55 | "ciResult": "pass" 56 | } 57 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44631/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "kefir": 12315 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44631/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-05-15T15:43:58.396Z", 4 | "pr_number": 44631, 5 | "author": "mAAdhaTTah", 6 | "headCommitOid": "96d6582f60431d273c179dcf6816426b4f1e37ac", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-05-10T21:26:25.000Z", 9 | "lastActivityDate": "2020-05-15T15:41:39.000Z", 10 | "mergeOfferDate": "2020-05-15T15:41:43.000Z", 11 | "hasMergeConflict": true, 12 | "isFirstContribution": false, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "kefir", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/kefir/index.d.ts", 23 | "kind": "definition" 24 | }, 25 | { 26 | "path": "types/kefir/kefir-tests.ts", 27 | "kind": "test" 28 | } 29 | ], 30 | "owners": [ 31 | "AyaMorisawa", 32 | "HitoriSensei" 33 | ], 34 | "addedOwners": [], 35 | "deletedOwners": [], 36 | "popularityLevel": "Well-liked by everyone" 37 | } 38 | ], 39 | "reviews": [ 40 | { 41 | "type": "approved", 42 | "reviewer": "sandersn", 43 | "date": "2020-05-15T15:41:39.000Z", 44 | "isMaintainer": true 45 | } 46 | ], 47 | "ciResult": "pass" 48 | } 49 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44631/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Needs Author Action", 3 | "labels": [ 4 | "Has Merge Conflict", 5 | "Maintainer Approved" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@mAAdhaTTah Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `kefir` — [on npm](https://www.npmjs.com/package/kefir), [on unpkg](https://unpkg.com/browse/kefir@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=44631&install-plugin=playground-dt-review).\n\n## Status\n\n * ❌ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "merge-complaint-96d6582", 14 | "status": "@mAAdhaTTah Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44857/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "node": 129373332 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44989-14days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44989-32days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44989-3days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/44989-7days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45137/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mongodb": 2181206 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45627/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "webpack": 11793552 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45836/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "prosemirror-commands": 135564, 3 | "prosemirror-keymap": 136105 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45884/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "cytoscape": 45065 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45884/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-06T06:52:24.860Z", 4 | "pr_number": 45884, 5 | "author": "sgratzl", 6 | "headCommitOid": "1dcf44a05908783324ca99231837267af495cdb7", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-04T08:33:11.000Z", 9 | "lastActivityDate": "2020-07-06T06:50:47.000Z", 10 | "maintainerBlessed": "Waiting for Code Reviews", 11 | "mergeOfferDate": "2020-07-06T06:51:10.000Z", 12 | "hasMergeConflict": false, 13 | "isFirstContribution": true, 14 | "tooManyFiles": false, 15 | "hugeChange": false, 16 | "popularityLevel": "Well-liked by everyone", 17 | "pkgInfo": [ 18 | { 19 | "name": "cytoscape", 20 | "kind": "edit", 21 | "files": [ 22 | { 23 | "path": "types/cytoscape/index.d.ts", 24 | "kind": "definition" 25 | } 26 | ], 27 | "owners": [ 28 | "phreed", 29 | "wy193777", 30 | "ypconstante", 31 | "janniclas", 32 | "cerberuser", 33 | "gsbelarus", 34 | "peterjferrarotto", 35 | "spaxe", 36 | "appleparan", 37 | "Veckodag" 38 | ], 39 | "addedOwners": [], 40 | "deletedOwners": [], 41 | "popularityLevel": "Well-liked by everyone" 42 | } 43 | ], 44 | "reviews": [ 45 | { 46 | "type": "approved", 47 | "reviewer": "Veckodag", 48 | "date": "2020-07-04T11:08:20.000Z", 49 | "isMaintainer": false 50 | } 51 | ], 52 | "ciResult": "pass" 53 | } 54 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45888/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mailgun-js": 95401 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45888/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/mailgun-js/index.d.ts": "// Type definitions for mailgun-js 0.22\n// Project: https://github.com/bojand/mailgun-js\n// Definitions by: Sampson Oliver \n// Andi Pätzold \n// Jiri Balcar \n// Ryan Leonard \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\nimport * as FormData from 'form-data';\n", 3 | "8a7a2fc1cdbfe1d3a7af7d1f7a346977fdf47b0d:types/mailgun-js/index.d.ts": "// Type definitions for mailgun-js 0.22\n// Project: https://github.com/bojand/mailgun-js\n// Definitions by: Sampson Oliver \n// Andi Pätzold \n// Jiri Balcar \n// Ryan Leonard \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n/// \n\nimport * as FormData from 'form-data';\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45888/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-06T07:40:37.670Z", 4 | "pr_number": 45888, 5 | "author": "gstvds", 6 | "headCommitOid": "8a7a2fc1cdbfe1d3a7af7d1f7a346977fdf47b0d", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-04T18:01:47.000Z", 9 | "lastActivityDate": "2020-07-06T07:40:21.000Z", 10 | "maintainerBlessed": "Waiting for Code Reviews", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": true, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "mailgun-js", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/mailgun-js/index.d.ts", 23 | "kind": "definition" 24 | } 25 | ], 26 | "owners": [ 27 | "sampsonjoliver", 28 | "andipaetzold", 29 | "JiriBalcar", 30 | "CodeLenny" 31 | ], 32 | "addedOwners": [], 33 | "deletedOwners": [], 34 | "popularityLevel": "Well-liked by everyone" 35 | } 36 | ], 37 | "reviews": [ 38 | { 39 | "type": "approved", 40 | "reviewer": "brendonhc", 41 | "date": "2020-07-06T05:28:20.000Z", 42 | "isMaintainer": false 43 | } 44 | ], 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45890/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "greek-utils": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45890/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "146c312eac4c4ac8931b4ec6b2762457f8f4b6e6:types/greek-utils/index.d.ts": "// Type definitions for greek-utils 1.2\n// Project: https://github.com/vbarzokas/greek-utils\n// Definitions by: Dimitris Kirtsios \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nexport function sanitizeDiacritics(text: string, ignore?: string): string;" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45890/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-06T08:21:55.751Z", 4 | "pr_number": 45890, 5 | "author": "dimkirt", 6 | "headCommitOid": "146c312eac4c4ac8931b4ec6b2762457f8f4b6e6", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-04T22:02:07.000Z", 9 | "lastActivityDate": "2020-07-05T08:20:29.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "greek-utils", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/greek-utils/greek-utils-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/greek-utils/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/greek-utils/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/greek-utils/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "dimkirt" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [ 47 | { 48 | "type": "approved", 49 | "reviewer": "peterblazejewicz", 50 | "date": "2020-07-05T08:20:29.000Z", 51 | "isMaintainer": false 52 | } 53 | ], 54 | "ciResult": "pass" 55 | } 56 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45946/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "asynciterator": 1614 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45982/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "arcgis-js-api": 32357 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45982/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/arcgis-js-api/index.d.ts": "" 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45982/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "error", 3 | "now": "2020-07-11T20:41:49.000Z", 4 | "message": "error parsing owners: At 1:1 in master:types/arcgis-js-api/index.d.ts: Expected /\\/\\/ Type definitions for (non-npm package )?/", 5 | "author": "dasa" 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45982/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: AddLabelsToLabelableInput!) {\n addLabelsToLabelable(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "labelIds": [ 7 | "MDU6TGFiZWwyMTk3MzU2OTA1" 8 | ], 9 | "labelableId": "MDExOlB1bGxSZXF1ZXN0NDQ3MDM5ODI4" 10 | } 11 | } 12 | }, 13 | { 14 | "mutation": "mutation ($input: RemoveLabelsFromLabelableInput!) {\n removeLabelsFromLabelable(input: $input) {\n __typename\n }\n}\n", 15 | "variables": { 16 | "input": { 17 | "labelIds": [ 18 | "MDU6TGFiZWw2NDY3ODg4ODg=", 19 | "MDU6TGFiZWw1ODYxNzcwNjM=", 20 | "MDU6TGFiZWwyMTU0NzUwNDcz" 21 | ], 22 | "labelableId": "MDExOlB1bGxSZXF1ZXN0NDQ3MDM5ODI4" 23 | } 24 | } 25 | }, 26 | { 27 | "mutation": "mutation ($input: MoveProjectCardInput!) {\n moveProjectCard(input: $input) {\n __typename\n }\n}\n", 28 | "variables": { 29 | "input": { 30 | "cardId": "MDExOlByb2plY3RDYXJkNDE1OTMyNzc=", 31 | "columnId": "MDEzOlByb2plY3RDb2x1bW43NTUyOTI2" 32 | } 33 | } 34 | }, 35 | { 36 | "mutation": "mutation ($input: AddCommentInput!) {\n addComment(input: $input) {\n __typename\n }\n}\n", 37 | "variables": { 38 | "input": { 39 | "subjectId": "MDExOlB1bGxSZXF1ZXN0NDQ3MDM5ODI4", 40 | "body": "@dasa — There was an error that prevented me from properly processing this PR:\n\n error parsing owners: At 1:1 in master:types/arcgis-js-api/index.d.ts: Expected /\\/\\/ Type definitions for (non-npm package )?/\n" 41 | } 42 | } 43 | } 44 | ] 45 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45982/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Other", 3 | "labels": [ 4 | "Mergebot Error" 5 | ], 6 | "responseComments": [ 7 | { 8 | "tag": "had-error", 9 | "status": "@dasa — There was an error that prevented me from properly processing this PR:\n\n error parsing owners: At 1:1 in master:types/arcgis-js-api/index.d.ts: Expected /\\/\\/ Type definitions for (non-npm package )?/" 10 | } 11 | ], 12 | "shouldClose": false, 13 | "shouldMerge": false, 14 | "shouldUpdateLabels": true 15 | } 16 | -------------------------------------------------------------------------------- /src/_tests/fixtures/45999/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react": 26120073 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46008/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "p5": 3015 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46008/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-11T02:09:32.239Z", 4 | "pr_number": 46008, 5 | "author": "risingBirdSong", 6 | "headCommitOid": "3e19cb9cae4689fb736fd6682f7f76d8efafcaa2", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-10T00:44:49.000Z", 9 | "lastActivityDate": "2020-07-11T02:09:10.000Z", 10 | "maintainerBlessed": "Waiting for Code Reviews", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": true, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "p5", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/p5/lib/addons/p5.dom.d.ts", 23 | "kind": "definition" 24 | } 25 | ], 26 | "owners": [ 27 | "p5-types", 28 | "Zalastax" 29 | ], 30 | "addedOwners": [], 31 | "deletedOwners": [], 32 | "popularityLevel": "Well-liked by everyone" 33 | } 34 | ], 35 | "reviews": [ 36 | { 37 | "type": "approved", 38 | "reviewer": "Zalastax", 39 | "date": "2020-07-10T18:53:03.000Z", 40 | "isMaintainer": false 41 | } 42 | ], 43 | "ciResult": "pass" 44 | } 45 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46019/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "is-secret": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46019/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "ceca9f768be945932c692d7dd48fa14b6ff38096:types/is-secret/index.d.ts": "// Type definitions for is-secret 1.2\n// Project: https://github.com/watson/is-secret#readme\n// Definitions by: Walter Rumsby \n// Piotr Błażejewicz \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n", 3 | "ceca9f768be945932c692d7dd48fa14b6ff38096:types/is-secret/tslint.json": "{ \"extends\": \"dtslint/dt.json\" }\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46019/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-12T04:13:43.404Z", 4 | "pr_number": 46019, 5 | "author": "peterblazejewicz", 6 | "headCommitOid": "ceca9f768be945932c692d7dd48fa14b6ff38096", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-11T20:43:23.000Z", 9 | "lastActivityDate": "2020-07-12T02:01:31.000Z", 10 | "mergeOfferDate": "2020-07-12T04:07:31.000Z", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": false, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "is-secret", 19 | "kind": "add", 20 | "files": [ 21 | { 22 | "path": "types/is-secret/index.d.ts", 23 | "kind": "definition" 24 | }, 25 | { 26 | "path": "types/is-secret/is-secret-tests.ts", 27 | "kind": "test" 28 | }, 29 | { 30 | "path": "types/is-secret/tsconfig.json", 31 | "kind": "package-meta-ok" 32 | }, 33 | { 34 | "path": "types/is-secret/tslint.json", 35 | "kind": "package-meta", 36 | "suspect": "edited" 37 | } 38 | ], 39 | "owners": [], 40 | "addedOwners": [ 41 | "wrumsby", 42 | "peterblazejewicz" 43 | ], 44 | "deletedOwners": [], 45 | "popularityLevel": "Well-liked by everyone" 46 | } 47 | ], 48 | "reviews": [ 49 | { 50 | "type": "approved", 51 | "reviewer": "weswigham", 52 | "date": "2020-07-12T02:01:31.000Z", 53 | "isMaintainer": true 54 | } 55 | ], 56 | "ciResult": "pass" 57 | } 58 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46120/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "underscore": 2169562 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46120/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-20T11:47:54.872Z", 4 | "pr_number": 46120, 5 | "author": "reubenrybnik", 6 | "headCommitOid": "5ef8fe2907257beac41e27c3dc2399a087eddb67", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-17T14:12:06.000Z", 9 | "lastActivityDate": "2020-07-19T22:33:41.000Z", 10 | "mergeRequestDate": "2020-07-19T16:36:44.000Z", 11 | "mergeRequestUser": "reubenrybnik", 12 | "hasMergeConflict": false, 13 | "isFirstContribution": false, 14 | "tooManyFiles": false, 15 | "hugeChange": false, 16 | "popularityLevel": "Popular", 17 | "pkgInfo": [ 18 | { 19 | "name": "underscore", 20 | "kind": "edit", 21 | "files": [ 22 | { 23 | "path": "types/underscore/index.d.ts", 24 | "kind": "definition" 25 | }, 26 | { 27 | "path": "types/underscore/underscore-tests.ts", 28 | "kind": "test" 29 | } 30 | ], 31 | "owners": [ 32 | "borisyankov", 33 | "jbaldwin", 34 | "ccurrens", 35 | "confususs", 36 | "jgonggrijp", 37 | "ffflorian", 38 | "regevbr", 39 | "peterblazejewicz", 40 | "reubenrybnik" 41 | ], 42 | "addedOwners": [], 43 | "deletedOwners": [], 44 | "popularityLevel": "Popular" 45 | } 46 | ], 47 | "reviews": [ 48 | { 49 | "type": "approved", 50 | "reviewer": "jgonggrijp", 51 | "date": "2020-07-19T20:19:03.000Z", 52 | "isMaintainer": false 53 | } 54 | ], 55 | "ciResult": "pass" 56 | } 57 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46191/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "apollo-upload-client": 198332 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46191/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-20T22:17:53.067Z", 4 | "pr_number": 46191, 5 | "author": "jordanoverbye", 6 | "headCommitOid": "3cc81dbde57a1b0eda6f69f539fa49b8d420adff", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-20T06:54:57.000Z", 9 | "lastActivityDate": "2020-07-20T07:08:31.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "apollo-upload-client", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/apollo-upload-client/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/apollo-upload-client/package.json", 26 | "kind": "package-meta-ok" 27 | }, 28 | { 29 | "path": "types/apollo-upload-client/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | } 32 | ], 33 | "owners": [ 34 | "Slessi" 35 | ], 36 | "addedOwners": [ 37 | "jordanoverbye" 38 | ], 39 | "deletedOwners": [], 40 | "popularityLevel": "Well-liked by everyone" 41 | } 42 | ], 43 | "reviews": [], 44 | "ciResult": "fail", 45 | "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/3cc81dbde57a1b0eda6f69f539fa49b8d420adff/checks?check_suite_id=938074936" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46196/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "date-arithmetic": 7590 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46196/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-20T22:18:56.331Z", 4 | "pr_number": 46196, 5 | "author": "bytetyde", 6 | "headCommitOid": "2f300d234e09e9e34c88e884f6466f2d6d0db399", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-20T12:12:39.000Z", 9 | "lastActivityDate": "2020-07-20T12:12:39.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "date-arithmetic", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/date-arithmetic/date-arithmetic-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/date-arithmetic/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/date-arithmetic/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/date-arithmetic/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [ 39 | "HeeL" 40 | ], 41 | "addedOwners": [], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [], 47 | "ciResult": "pass" 48 | } 49 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46196/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDY2MDk2MDczOQ==", 7 | "body": "@bytetyde Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `date-arithmetic` — [on npm](https://www.npmjs.com/package/date-arithmetic), [on unpkg](https://unpkg.com/browse/date-arithmetic@latest/)\n - Config files to check:\n - [`date-arithmetic/tslint.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46196/files/2f300d234e09e9e34c88e884f6466f2d6d0db399#diff-8a0e58ed81bb07faa7305e5aa6a89df624cce70ab9ab05277cdb4006c340a305): edited\n\n## Code Reviews\n\nBecause this PR edits the configuration file, it can be merged once it's reviewed by a DT maintainer.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46196&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 A DT maintainer needs to approve changes that affect module config files\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46279/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "phoenix_live_view": 1639 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46279/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/phoenix_live_view/index.d.ts": "// Type definitions for phoenix_live_view 0.13\n// Project: https://github.com/phoenixframework/phoenix_live_view\n// Definitions by: Peter Zingg \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n", 3 | "80322389c71c13e0fca466b744b35b742a3ee161:types/phoenix_live_view/index.d.ts": "// Type definitions for phoenix_live_view 0.14\n// Project: https://github.com/phoenixframework/phoenix_live_view\n// Definitions by: Peter Zingg \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46279/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-07-23T18:40:42.000Z", 4 | "pr_number": 46279, 5 | "author": "pzingg", 6 | "headCommitOid": "80322389c71c13e0fca466b744b35b742a3ee161", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-07-23T01:03:50.000Z", 9 | "lastActivityDate": "2020-07-23T18:40:41.000Z", 10 | "maintainerBlessed": "Waiting for Code Reviews", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": false, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "phoenix_live_view", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/phoenix_live_view/index.d.ts", 23 | "kind": "definition" 24 | } 25 | ], 26 | "owners": [ 27 | "pzingg" 28 | ], 29 | "addedOwners": [], 30 | "deletedOwners": [], 31 | "popularityLevel": "Well-liked by everyone" 32 | } 33 | ], 34 | "reviews": [], 35 | "ciResult": "pass" 36 | } 37 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46804/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-d3-graph": 2566 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46804/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-08-25T19:30:48.988Z", 4 | "pr_number": 46804, 5 | "author": "ETHANTALJAFFE", 6 | "headCommitOid": "3e3524f41de19cd97d5c32a531eab3f0e9206f75", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-08-15T20:29:40.000Z", 9 | "lastActivityDate": "2020-08-25T19:30:37.000Z", 10 | "maintainerBlessed": "Waiting for Code Reviews", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": true, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "react-d3-graph", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/react-d3-graph/index.d.ts", 23 | "kind": "definition" 24 | } 25 | ], 26 | "owners": [ 27 | "hrngoode", 28 | "adina-todoran", 29 | "BreadAndRoses95" 30 | ], 31 | "addedOwners": [], 32 | "deletedOwners": [], 33 | "popularityLevel": "Well-liked by everyone" 34 | } 35 | ], 36 | "reviews": [], 37 | "ciResult": "pass" 38 | } 39 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46879/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-scroll": 1234567 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46879/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/react-scroll/index.d.ts": "// Type definitions for react-scroll 1.5\n// Project: https://github.com/fisshy/react-scroll\n// Definitions by: Ioannis Kokkinidis \n// Giedrius Grabauskas \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.8\n\n", 3 | "2586d74ca0dc553be5f3afc0135468b17b240d70:types/react-scroll/index.d.ts": "// Type definitions for react-scroll 1.8\n// Project: https://github.com/fisshy/react-scroll\n// Definitions by: Ioannis Kokkinidis \n// Giedrius Grabauskas \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.8\n\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46879/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-08-18T12:34:56.000Z", 4 | "pr_number": 46879, 5 | "author": "Chaldron", 6 | "headCommitOid": "2586d74ca0dc553be5f3afc0135468b17b240d70", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-08-11T18:21:13.000Z", 9 | "lastActivityDate": "2020-08-18T19:35:37.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "react-scroll", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/react-scroll/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/react-scroll/modules/components/Link.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/react-scroll/test/react-scroll-tests.tsx", 30 | "kind": "test" 31 | } 32 | ], 33 | "owners": [ 34 | "sudoplz", 35 | "GiedriusGrabauskas" 36 | ], 37 | "addedOwners": [], 38 | "deletedOwners": [], 39 | "popularityLevel": "Popular" 40 | } 41 | ], 42 | "reviews": [], 43 | "ciResult": "pass" 44 | } 45 | -------------------------------------------------------------------------------- /src/_tests/fixtures/46879/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [ 4 | "Popular package" 5 | ], 6 | "responseComments": [ 7 | { 8 | "tag": "welcome", 9 | "status": "@Chaldron Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `react-scroll` — [on npm](https://www.npmjs.com/package/react-scroll), [on unpkg](https://unpkg.com/browse/react-scroll@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46879&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners or DT maintainers\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 10 | }, 11 | { 12 | "tag": "pinging-reviewers", 13 | "status": "🔔 @sudoplz @GiedriusGrabauskas — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46879/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 14 | } 15 | ], 16 | "shouldClose": false, 17 | "shouldMerge": false, 18 | "shouldUpdateLabels": true 19 | } 20 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed-and-one-owner/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed-and-one-owner/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDY3OTcyNjE5OQ==", 7 | "body": "@mastermatt Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 2 packages in this PR\n\n* `express-serve-static-core` — [on npm](https://www.npmjs.com/package/express-serve-static-core), [on unpkg](https://unpkg.com/browse/express-serve-static-core@latest/)\n - owner-approval: @dwrss\n* `express` — [on npm](https://www.npmjs.com/package/express), [on unpkg](https://unpkg.com/browse/express@latest/)\n\n## Code Reviews\n\nThis PR can be merged once it's reviewed.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=47017&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 All owners or a DT maintainer needs to approve changes that affect more than one package\n - ✅ express-serve-static-core\n - 🕐 express\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed-and-one-owner/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [ 4 | "Critical package", 5 | "Edits multiple packages" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@mastermatt Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 2 packages in this PR\n\n* `express-serve-static-core` — [on npm](https://www.npmjs.com/package/express-serve-static-core), [on unpkg](https://unpkg.com/browse/express-serve-static-core@latest/)\n - owner-approval: @dwrss\n* `express` — [on npm](https://www.npmjs.com/package/express), [on unpkg](https://unpkg.com/browse/express@latest/)\n\n## Code Reviews\n\nThis PR can be merged once it's reviewed.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=47017&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 All owners or a DT maintainer needs to approve changes that affect more than one package\n - ✅ express-serve-static-core\n - 🕐 express\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | } 12 | ], 13 | "shouldClose": false, 14 | "shouldMerge": false, 15 | "shouldUpdateLabels": true 16 | } 17 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed-and-two-owner/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017-blessed/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDY3OTcyNjE5OQ==", 7 | "body": "@mastermatt Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 2 packages in this PR\n\n* `express-serve-static-core` — [on npm](https://www.npmjs.com/package/express-serve-static-core), [on unpkg](https://unpkg.com/browse/express-serve-static-core@latest/)\n* `express` — [on npm](https://www.npmjs.com/package/express), [on unpkg](https://unpkg.com/browse/express@latest/)\n\n## Code Reviews\n\nThis PR can be merged once it's reviewed.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=47017&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 All owners or a DT maintainer needs to approve changes that affect more than one package\n - 🕐 express-serve-static-core\n - 🕐 express\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/47017/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDY3OTcyNjE5OQ==", 7 | "body": "@mastermatt Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 2 packages in this PR\n\n* `express-serve-static-core` — [on npm](https://www.npmjs.com/package/express-serve-static-core), [on unpkg](https://unpkg.com/browse/express-serve-static-core@latest/)\n* `express` — [on npm](https://www.npmjs.com/package/express), [on unpkg](https://unpkg.com/browse/express@latest/)\n\n## Code Reviews\n\nBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=47017&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 A DT maintainer needs to approve changes that affect more than one package\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | }, 11 | { 12 | "mutation": "mutation ($input: MoveProjectCardInput!) {\n moveProjectCard(input: $input) {\n __typename\n }\n}\n", 13 | "variables": { 14 | "input": { 15 | "cardId": "MDExOlByb2plY3RDYXJkNDQyNTE2ODU=", 16 | "columnId": "MDEzOlByb2plY3RDb2x1bW43NTUyOTIy" 17 | } 18 | } 19 | } 20 | ] 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48216/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "apptimize__apptimize-web-sdk": 1164 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48216/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-09-27T19:02:30.338Z", 4 | "pr_number": 48216, 5 | "author": "jablko", 6 | "headCommitOid": "3f689bfb9d310612cdaf7c52c7ead41d1181b52f", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-09-27T17:23:58.000Z", 9 | "lastActivityDate": "2020-09-27T19:01:23.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "apptimize__apptimize-web-sdk", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/apptimize__apptimize-web-sdk/apptimize__apptimize-web-sdk-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/apptimize__apptimize-web-sdk/tsconfig.json", 26 | "kind": "package-meta-ok" 27 | } 28 | ], 29 | "owners": [ 30 | "innovation-team", 31 | "rlbaxter" 32 | ], 33 | "addedOwners": [], 34 | "deletedOwners": [], 35 | "popularityLevel": "Well-liked by everyone" 36 | } 37 | ], 38 | "reviews": [], 39 | "ciResult": "pass" 40 | } 41 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48216/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@jablko Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `apptimize__apptimize-web-sdk` — [on npm](https://www.npmjs.com/package/@apptimize/apptimize-web-sdk), [on unpkg](https://unpkg.com/browse/@apptimize/apptimize-web-sdk@latest/)\n\n## Code Reviews\n\nBecause you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=48216&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers", 11 | "status": "🔔 @innovation-team @rlbaxter — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48216/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48236/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "woocommerce__woocommerce-rest-api": 1271 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48236/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-10-05T00:43:22.594Z", 4 | "pr_number": 48236, 5 | "author": "jablko", 6 | "headCommitOid": "b4d71f672f0f204a514002348ebc2025d18866ca", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-09-27T17:25:18.000Z", 9 | "lastActivityDate": "2020-10-02T19:13:08.000Z", 10 | "mergeOfferDate": "2020-09-30T00:08:26.000Z", 11 | "mergeRequestDate": "2020-10-02T18:45:57.000Z", 12 | "mergeRequestUser": "jablko", 13 | "hasMergeConflict": false, 14 | "isFirstContribution": false, 15 | "tooManyFiles": false, 16 | "hugeChange": false, 17 | "popularityLevel": "Well-liked by everyone", 18 | "pkgInfo": [ 19 | { 20 | "name": "woocommerce__woocommerce-rest-api", 21 | "kind": "edit", 22 | "files": [ 23 | { 24 | "path": "types/woocommerce__woocommerce-rest-api/tsconfig.json", 25 | "kind": "package-meta-ok" 26 | }, 27 | { 28 | "path": "types/woocommerce__woocommerce-rest-api/woocommerce__woocommerce-rest-api-tests.ts", 29 | "kind": "test" 30 | } 31 | ], 32 | "owners": [ 33 | "climba03003" 34 | ], 35 | "addedOwners": [], 36 | "deletedOwners": [], 37 | "popularityLevel": "Well-liked by everyone" 38 | } 39 | ], 40 | "reviews": [ 41 | { 42 | "type": "approved", 43 | "reviewer": "peterblazejewicz", 44 | "date": "2020-10-02T19:13:08.000Z", 45 | "isMaintainer": false 46 | }, 47 | { 48 | "type": "approved", 49 | "reviewer": "amcasey", 50 | "date": "2020-09-30T00:07:50.000Z", 51 | "isMaintainer": false 52 | } 53 | ], 54 | "ciResult": "pass" 55 | } 56 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48652-merge-offer/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48652-prereq/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48652-retract-merge-offer-and-prerequest/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48652-retract-merge-offer/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48652-retract-merge-offer/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Needs Author Action", 3 | "labels": [ 4 | "Revision needed", 5 | "Edits multiple packages" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@mgol Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 2 packages in this PR\n\n* `angular-sanitize` — [on npm](https://www.npmjs.com/package/angular-sanitize), [on unpkg](https://unpkg.com/browse/angular-sanitize@latest/)\n* `angular` — [on npm](https://www.npmjs.com/package/angular), [on unpkg](https://unpkg.com/browse/angular@latest/)\n - owner-approval: @peterblazejewicz\n\n## Code Reviews\n\nBecause this PR edits multiple packages, it can be merged once it's reviewed by a DT maintainer.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=48652&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 A DT maintainer needs to approve changes that affect more than one package\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "reviewer-complaint-06d8d67", 14 | "status": "@mgol One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48708/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jquery": 5540159 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48945/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gapi.client.calendar": 2325 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48945/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-11-12T20:09:30.051Z", 4 | "pr_number": 48945, 5 | "author": "google-api-typings-generator", 6 | "headCommitOid": "759b4cb2339ff12a22c8101f143a7a68ed535c70", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-10-20T11:30:40.000Z", 9 | "lastActivityDate": "2020-11-03T02:30:59.000Z", 10 | "mergeOfferDate": "2020-10-20T11:35:45.000Z", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": false, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": "gapi.client.calendar", 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "types/gapi.client.calendar/gapi.client.calendar-tests.ts", 23 | "kind": "test" 24 | }, 25 | { 26 | "path": "types/gapi.client.calendar/index.d.ts", 27 | "kind": "definition" 28 | } 29 | ], 30 | "owners": [ 31 | "Maxim-Mazurok", 32 | "google-api-typings-generator", 33 | "namoscato", 34 | "declanvong" 35 | ], 36 | "addedOwners": [], 37 | "deletedOwners": [], 38 | "popularityLevel": "Well-liked by everyone" 39 | } 40 | ], 41 | "reviews": [ 42 | { 43 | "type": "changereq", 44 | "reviewer": "RyanCavanaugh", 45 | "date": "2020-11-02T16:19:48.000Z" 46 | }, 47 | { 48 | "type": "approved", 49 | "reviewer": "Maxim-Mazurok", 50 | "date": "2020-10-20T11:30:36.000Z", 51 | "isMaintainer": false 52 | } 53 | ], 54 | "ciResult": "pass" 55 | } 56 | -------------------------------------------------------------------------------- /src/_tests/fixtures/48945/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Needs Author Action", 3 | "labels": [ 4 | "Revision needed", 5 | "Author is Owner" 6 | ], 7 | "responseComments": [ 8 | { 9 | "tag": "welcome", 10 | "status": "@google-api-typings-generator Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `gapi.client.calendar` — [on npm](https://www.npmjs.com/package/gapi.client.calendar), [on unpkg](https://unpkg.com/browse/gapi.client.calendar@latest/) (author is owner)\n - owner-approval: @Maxim-Mazurok\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=48945&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n## Inactive\n\nThis PR has been inactive for 9 days.\n\n----------------------\n... diagnostics scrubbed ..." 11 | }, 12 | { 13 | "tag": "reviewer-complaint-759b4cb", 14 | "status": "@google-api-typings-generator One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!" 15 | } 16 | ], 17 | "shouldClose": false, 18 | "shouldMerge": false, 19 | "shouldUpdateLabels": true 20 | } 21 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49417/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49417/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/d3-array/index.d.ts": "// Type definitions for D3JS d3-array module 2.7\n// Project: https://github.com/d3/d3-array, https://d3js.org/d3-array\n// Definitions by: Alex Ford \n// Boris Yankov \n// Tom Wanzek \n// denisname \n// Hugues Stefanski \n// Nathan Bierema \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n// Last module patch version validated against: 2.7.1\n", 3 | "2b9d0980329843dc436a18460f85bb2e2d2f688c:types/d3-array/index.d.ts": "// Type definitions for D3JS d3-array module 2.8\n// Project: https://github.com/d3/d3-array, https://d3js.org/d3-array\n// Definitions by: Alex Ford \n// Boris Yankov \n// Tom Wanzek \n// denisname \n// Hugues Stefanski \n// Nathan Bierema \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 2.3\n\n// Last module patch version validated against: 2.8.0\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49417/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-11-16T07:38:51.000Z", 4 | "pr_number": 49417, 5 | "author": "Methuselah96", 6 | "headCommitOid": "2b9d0980329843dc436a18460f85bb2e2d2f688c", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-11-08T07:52:53.000Z", 9 | "lastActivityDate": "2020-11-16T07:38:51.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "d3-array", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/d3-array/d3-array-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/d3-array/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [ 30 | "gustavderdrache", 31 | "borisyankov", 32 | "tomwanzek", 33 | "denisname", 34 | "ledragon", 35 | "Methuselah96" 36 | ], 37 | "addedOwners": [], 38 | "deletedOwners": [], 39 | "popularityLevel": "Well-liked by everyone" 40 | } 41 | ], 42 | "reviews": [ 43 | { 44 | "type": "approved", 45 | "reviewer": "Ledragon", 46 | "date": "2020-11-15T20:48:29.000Z", 47 | "isMaintainer": false 48 | }, 49 | { 50 | "type": "stale", 51 | "reviewer": "tuuling", 52 | "date": "2020-11-07T21:37:04.000Z", 53 | "abbrOid": "525f75c" 54 | } 55 | ], 56 | "ciResult": "pass" 57 | } 58 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49548/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gulp-sourcemaps": 125190 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49548/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-12-01T20:08:04.932Z", 4 | "pr_number": 49548, 5 | "author": "concision", 6 | "headCommitOid": "9301e16b32453cda501e3c8b9886661da391d232", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-11-16T20:11:05.000Z", 9 | "lastActivityDate": "2020-11-16T20:15:33.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "gulp-sourcemaps", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/gulp-sourcemaps/gulp-sourcemaps-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/gulp-sourcemaps/index.d.ts", 26 | "kind": "definition" 27 | } 28 | ], 29 | "owners": [], 30 | "addedOwners": [ 31 | "pspeter3", 32 | "concision" 33 | ], 34 | "deletedOwners": [], 35 | "popularityLevel": "Well-liked by everyone" 36 | } 37 | ], 38 | "reviews": [], 39 | "ciResult": "pass" 40 | } 41 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49575/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49575/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49841/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49841/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/tsconfig.json": "{\r\n \"compilerOptions\": {\r\n \"module\": \"commonjs\",\r\n \"lib\": [\r\n \"es6\"\r\n ],\r\n \"noImplicitAny\": true,\r\n \"noImplicitThis\": true,\r\n \"strictNullChecks\": true,\r\n \"strictFunctionTypes\": true,\r\n \"baseUrl\": \"../\",\r\n \"typeRoots\": [\r\n \"../\"\r\n ],\r\n \"types\": [],\r\n \"noEmit\": true,\r\n \"target\": \"es6\",\r\n \"forceConsistentCasingInFileNames\": true\r\n },\r\n \"files\": [\r\n \"index.d.ts\",\r\n \"react-native-sha1-test.ts\"\r\n ]\r\n}", 3 | "4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }", 4 | "4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/index.d.ts": "// Definitions by: Amir Hossein Shekari \r\n\r\n\r\n\r\nexport function sha1(input: string): Promise;" 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/49841/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2020-11-30T23:30:29.827Z", 4 | "pr_number": 49841, 5 | "author": "shekari-ah", 6 | "headCommitOid": "4849e8876b0ab7adc889ccc35b55fde6f0274837", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2020-11-28T09:12:34.000Z", 9 | "lastActivityDate": "2020-11-28T09:17:28.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "react-native-sha1", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/react-native-sha1/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/react-native-sha1/react-native-sha1-test.ts", 26 | "kind": "test" 27 | }, 28 | { 29 | "path": "types/react-native-sha1/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/react-native-sha1/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [], 40 | "deletedOwners": [], 41 | "popularityLevel": "Well-liked by everyone" 42 | } 43 | ], 44 | "reviews": [], 45 | "ciResult": "fail", 46 | "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4849e8876b0ab7adc889ccc35b55fde6f0274837/checks?check_suite_id=1574877739" 47 | } 48 | -------------------------------------------------------------------------------- /src/_tests/fixtures/50429/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "omise-js": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/50429/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "8454d0853c273f9a20b08bd68cfd5c6b4f70c018:types/omise-js/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictFunctionTypes\": true,\n \"strictNullChecks\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\"\n ]\n}\n", 3 | "8454d0853c273f9a20b08bd68cfd5c6b4f70c018:types/omise-js/tslint.json": "{ \n \"extends\": \"dtslint/dtslint.json\",\n \"rules\": {\n \"no-redundant-jsdoc\": false,\n \"strict-export-declare-modifiers\": false,\n \"max-line-length\": false\n }\n}\n", 4 | "8454d0853c273f9a20b08bd68cfd5c6b4f70c018:types/omise-js/index.d.ts": "/**\n * Third-party Omise.js TypeScript's typings support.\n */\nimport Omise from './lib/omise';\nimport OmiseCard from './lib/omiseCard';\ndeclare global {\n interface Window {\n /**\n * You can use the following methods on `OmiseCard` to customize the appearance and behavior of your form.\n *\n * @see https://www.omise.co/omise-js#omisecard-methods\n */\n Omise: Omise;\n /**\n * You can use the following methods on `Omise` to create a one-time-use token or source.\n *\n * @see https://www.omise.co/omise-js#omise-methods\n */\n OmiseCard: OmiseCard;\n }\n}\nexport { Omise, OmiseCard };\n" 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/50443/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/50443/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/50443/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-01-13T16:53:37.338Z", 4 | "pr_number": 50443, 5 | "author": "shockdevv", 6 | "headCommitOid": "130c0882b07fc556c9690dac5f5ac231905c0636", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-01-06T18:43:31.000Z", 9 | "lastActivityDate": "2021-01-07T21:14:55.000Z", 10 | "mergeOfferDate": "2021-01-07T20:34:53.000Z", 11 | "mergeRequestDate": "2021-01-07T21:14:55.000Z", 12 | "mergeRequestUser": "shockdevv", 13 | "hasMergeConflict": false, 14 | "isFirstContribution": false, 15 | "tooManyFiles": false, 16 | "hugeChange": false, 17 | "popularityLevel": "Well-liked by everyone", 18 | "pkgInfo": [ 19 | { 20 | "name": "reefjs", 21 | "kind": "add", 22 | "files": [ 23 | { 24 | "path": "types/reefjs/index.d.ts", 25 | "kind": "definition" 26 | }, 27 | { 28 | "path": "types/reefjs/reefjs-tests.ts", 29 | "kind": "test" 30 | }, 31 | { 32 | "path": "types/reefjs/tsconfig.json", 33 | "kind": "package-meta-ok" 34 | }, 35 | { 36 | "path": "types/reefjs/tslint.json", 37 | "kind": "package-meta", 38 | "suspect": "edited" 39 | } 40 | ], 41 | "owners": [], 42 | "addedOwners": [], 43 | "deletedOwners": [], 44 | "popularityLevel": "Well-liked by everyone" 45 | } 46 | ], 47 | "reviews": [ 48 | { 49 | "type": "approved", 50 | "reviewer": "andrewbranch", 51 | "date": "2021-01-07T20:34:13.000Z", 52 | "isMaintainer": true 53 | } 54 | ], 55 | "ciResult": "pass" 56 | } 57 | -------------------------------------------------------------------------------- /src/_tests/fixtures/51338/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "koa": 5708514 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/51338/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-03-02T21:43:39.396Z", 4 | "pr_number": 51338, 5 | "author": "pkuczynski", 6 | "headCommitOid": "4a7712f61d17eb33e89171f317deeb31b3d555ae", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-02-19T17:22:27.000Z", 9 | "lastActivityDate": "2021-02-20T14:48:26.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Critical", 15 | "pkgInfo": [ 16 | { 17 | "name": "koa", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/koa/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/koa/tsconfig.json", 26 | "kind": "package-meta", 27 | "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) and not moving towards it (check: `compilerOptions.esModuleInterop`)" 28 | } 29 | ], 30 | "owners": [ 31 | "DavidCai1993", 32 | "jkeylu", 33 | "brikou", 34 | "harryparkdotio", 35 | "chatoo2412", 36 | "tellnes", 37 | "pkuczynski" 38 | ], 39 | "addedOwners": [], 40 | "deletedOwners": [], 41 | "popularityLevel": "Critical" 42 | } 43 | ], 44 | "reviews": [ 45 | { 46 | "type": "approved", 47 | "reviewer": "tellnes", 48 | "date": "2021-02-20T14:48:26.000Z", 49 | "isMaintainer": false 50 | } 51 | ], 52 | "ciResult": "pass" 53 | } 54 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52579-edits-infra/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vertx__eventbus-bridge-client.js": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52579-edits-infra/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictFunctionTypes\": true,\n \"strictNullChecks\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"vertx__eventbus-bridge-client.js-tests.ts\"\n ]\n}\n", 3 | "5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }\n", 4 | "5337ea17b2407707bead503cd20c9ca29438f5df:package.json": "{}" 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52579/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vertx__eventbus-bridge-client.js": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52579/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-04-26T11:48:53.676Z", 4 | "pr_number": 52579, 5 | "author": "Phong6698", 6 | "headCommitOid": "5337ea17b2407707bead503cd20c9ca29438f5df", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-04-25T22:25:04.000Z", 9 | "lastActivityDate": "2021-04-25T22:27:45.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "vertx__eventbus-bridge-client.js", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/vertx__eventbus-bridge-client.js/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/vertx__eventbus-bridge-client.js/tsconfig.json", 26 | "kind": "package-meta-ok" 27 | }, 28 | { 29 | "path": "types/vertx__eventbus-bridge-client.js/tslint.json", 30 | "kind": "package-meta", 31 | "suspect": "edited" 32 | }, 33 | { 34 | "path": "types/vertx__eventbus-bridge-client.js/vertx__eventbus-bridge-client.js-tests.ts", 35 | "kind": "test" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "Phong6698" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [], 47 | "ciResult": "action_required", 48 | "reRunCheckSuiteIDs": [ 49 | 123456 50 | ] 51 | } 52 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52848/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52848/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/52848/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-05-10T15:46:37.788Z", 4 | "pr_number": 52848, 5 | "author": "Runtu4378", 6 | "headCommitOid": "14499debca98ea23cfc47a80a288d5bd32798cff", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-05-10T07:57:17.000Z", 9 | "lastActivityDate": "2021-05-10T15:42:52.000Z", 10 | "maintainerBlessed": "Waiting for Author to Merge", 11 | "hasMergeConflict": false, 12 | "isFirstContribution": true, 13 | "tooManyFiles": false, 14 | "hugeChange": false, 15 | "popularityLevel": "Well-liked by everyone", 16 | "pkgInfo": [ 17 | { 18 | "name": null, 19 | "kind": "edit", 20 | "files": [ 21 | { 22 | "path": "README.cn.md", 23 | "kind": "infrastructure" 24 | } 25 | ], 26 | "owners": [], 27 | "addedOwners": [], 28 | "deletedOwners": [], 29 | "popularityLevel": "Critical", 30 | "isSafeInfrastructureEdit": false 31 | } 32 | ], 33 | "reviews": [], 34 | "ciResult": "unknown" 35 | } 36 | -------------------------------------------------------------------------------- /src/_tests/fixtures/53121/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mathjs": 498592 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/53121/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-05-20T13:55:13.459Z", 4 | "pr_number": 53121, 5 | "author": "nitroin", 6 | "headCommitOid": "c13f5d7c969561db0ac38464086406b6554e711c", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-05-20T09:10:15.000Z", 9 | "lastActivityDate": "2021-05-20T09:16:27.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "mathjs", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/mathjs/index.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/mathjs/mathjs-tests.ts", 26 | "kind": "test" 27 | } 28 | ], 29 | "owners": [ 30 | "siavol", 31 | "andnp", 32 | "bradbesserman", 33 | "pawkrol", 34 | "charlee", 35 | "mark-wiemer", 36 | "OpportunityLiu" 37 | ], 38 | "addedOwners": [], 39 | "deletedOwners": [], 40 | "popularityLevel": "Popular" 41 | } 42 | ], 43 | "reviews": [], 44 | "mainBotCommentID": 844899639, 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/53121/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "MDEyOklzc3VlQ29tbWVudDg0NDg5OTYzOQ==", 7 | "body": "@nitroin Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `mathjs` — [on npm](https://www.npmjs.com/package/mathjs), [on unpkg](https://unpkg.com/browse/mathjs@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=53121&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners or DT maintainers\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/53121/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [ 4 | "Popular package" 5 | ], 6 | "responseComments": [ 7 | { 8 | "tag": "welcome", 9 | "status": "@nitroin Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `mathjs` — [on npm](https://www.npmjs.com/package/mathjs), [on unpkg](https://unpkg.com/browse/mathjs@latest/)\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=53121&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners or DT maintainers\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 10 | }, 11 | { 12 | "tag": "pinging-reviewers", 13 | "status": "🔔 @siavol @andnp @bradbesserman @pawkrol @charlee @mark-wiemer @OpportunityLiu — please [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/53121/files) in the next few days. Be sure to explicitly select **`Approve`** or **`Request Changes`** in the GitHub UI so I know what's going on." 14 | } 15 | ], 16 | "shouldClose": false, 17 | "shouldMerge": false, 18 | "shouldUpdateLabels": true 19 | } 20 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55035/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsreport-core": 5044 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55035/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-09-09T18:47:06.228Z", 4 | "pr_number": 55035, 5 | "author": "shoopapa", 6 | "headCommitOid": "7eca0aa421c535497e59aa231b955ea2b47712e4", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-08-10T17:10:15.000Z", 9 | "lastActivityDate": "2021-08-16T10:04:47.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "jsreport-core", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/jsreport-core/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "taoqf", 27 | "pofider", 28 | "newbish" 29 | ], 30 | "addedOwners": [], 31 | "deletedOwners": [], 32 | "popularityLevel": "Well-liked by everyone" 33 | } 34 | ], 35 | "reviews": [ 36 | { 37 | "type": "approved", 38 | "reviewer": "pofider", 39 | "date": "2021-08-16T10:04:47.000Z", 40 | "isMaintainer": false 41 | }, 42 | { 43 | "type": "approved", 44 | "reviewer": "newbish", 45 | "date": "2021-08-13T18:40:30.000Z", 46 | "isMaintainer": false 47 | }, 48 | { 49 | "type": "approved", 50 | "reviewer": "kkikta-bcg", 51 | "date": "2021-08-13T18:37:59.000Z", 52 | "isMaintainer": false 53 | } 54 | ], 55 | "mainBotCommentID": 895367213, 56 | "ciResult": "fail", 57 | "ciUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/7eca0aa421c535497e59aa231b955ea2b47712e4/checks?check_suite_id=3460073804" 58 | } 59 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55210/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "xald-parse-sdk": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55508/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "chrome": 702255 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55508/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-09-06T21:31:20.974Z", 4 | "pr_number": 55508, 5 | "author": "avi12", 6 | "headCommitOid": "7288ad262198cd40a8457837580b67f9d1b68c7b", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-09-01T12:30:10.000Z", 9 | "lastActivityDate": "2021-09-01T14:59:00.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "chrome", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/chrome/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "matthewkimber", 27 | "otiai10", 28 | "couven92", 29 | "rreverser", 30 | "sreimer15", 31 | "MatCarlson", 32 | "ekinsol", 33 | "tregagnon", 34 | "echoabstract", 35 | "spasma", 36 | "bdbai", 37 | "pokutuna", 38 | "JasonXian", 39 | "usertim", 40 | "idan315", 41 | "nicolas377" 42 | ], 43 | "addedOwners": [], 44 | "deletedOwners": [], 45 | "popularityLevel": "Popular" 46 | } 47 | ], 48 | "reviews": [ 49 | { 50 | "type": "approved", 51 | "reviewer": "userTim", 52 | "date": "2021-09-01T14:59:00.000Z", 53 | "isMaintainer": false 54 | }, 55 | { 56 | "type": "approved", 57 | "reviewer": "nicolas377", 58 | "date": "2021-09-01T12:38:30.000Z", 59 | "isMaintainer": false 60 | } 61 | ], 62 | "mainBotCommentID": 909170831, 63 | "ciResult": "pass" 64 | } 65 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55512/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-datepicker": 1437773 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55512/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-09-06T20:42:33.690Z", 4 | "pr_number": 55512, 5 | "author": "philibea", 6 | "headCommitOid": "e90d61bddfd00fa6db114993d0689cdb367be7e5", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-08-31T15:13:30.000Z", 9 | "lastActivityDate": "2021-08-31T18:33:55.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "react-datepicker", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/react-datepicker/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "radziksh", 27 | "andrewBalekha", 28 | "smrq", 29 | "royxue", 30 | "KoalaHuman", 31 | "justingrant", 32 | "jakeboone02", 33 | "Ky6uk", 34 | "aviklai", 35 | "seckie", 36 | "tu4mo", 37 | "kerry-g", 38 | "ShiftrTechSAS" 39 | ], 40 | "addedOwners": [], 41 | "deletedOwners": [], 42 | "popularityLevel": "Popular" 43 | } 44 | ], 45 | "reviews": [ 46 | { 47 | "type": "approved", 48 | "reviewer": "Ky6uk", 49 | "date": "2021-08-31T18:33:55.000Z", 50 | "isMaintainer": false 51 | } 52 | ], 53 | "mainBotCommentID": 909331527, 54 | "ciResult": "pass" 55 | } 56 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55741/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ax": 0 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55741/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "aded751196aea4180928204085f088eb530d7b88:types/ax/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictFunctionTypes\": true,\n \"strictNullChecks\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"ax-tests.ts\"\n ]\n}\n", 3 | "aded751196aea4180928204085f088eb530d7b88:types/ax/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }\n", 4 | "aded751196aea4180928204085f088eb530d7b88:types/ax/index.d.ts": "// Type definitions for ax 0.1\n// Project: https://github.com/AstroxNetwork/ax\n// Definitions by: Hsehoiki \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ninterface AxType {\n /**\n * ax function\n */\n setNavigationBarTitle: (text: string) => boolean;\n setNavigationBarColor: (color: string) => boolean;\n}\n\n/**\n * ax is global object\n */\ndeclare const ax: AxType;\n\nexport = ax;\n" 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/55741/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2021-09-14T10:47:18.683Z", 4 | "pr_number": 55741, 5 | "author": "kasumisk", 6 | "headCommitOid": "aded751196aea4180928204085f088eb530d7b88", 7 | "mergeBaseOid": "master", 8 | "lastPushDate": "2021-09-13T08:39:37.000Z", 9 | "lastActivityDate": "2021-09-13T20:35:23.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "ax", 18 | "kind": "add", 19 | "files": [ 20 | { 21 | "path": "types/ax/ax-tests.ts", 22 | "kind": "test" 23 | }, 24 | { 25 | "path": "types/ax/index.d.ts", 26 | "kind": "definition" 27 | }, 28 | { 29 | "path": "types/ax/tsconfig.json", 30 | "kind": "package-meta-ok" 31 | }, 32 | { 33 | "path": "types/ax/tslint.json", 34 | "kind": "package-meta", 35 | "suspect": "edited" 36 | } 37 | ], 38 | "owners": [], 39 | "addedOwners": [ 40 | "AstroxNetwork" 41 | ], 42 | "deletedOwners": [], 43 | "popularityLevel": "Well-liked by everyone" 44 | } 45 | ], 46 | "reviews": [], 47 | "mainBotCommentID": 917965584, 48 | "ciResult": "pass" 49 | } 50 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58632/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58632/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58632/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2022-02-17T22:40:31.072Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58632/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58632/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/58764/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "bootstrap.v3.datetimepicker": 2109, 3 | "mithril-global": 23, 4 | "mithril": 15949, 5 | "ospec": 791, 6 | "react-grid-layout": 520136, 7 | "react-native-fbsdk": 78391, 8 | "react-virtualized": 1521648, 9 | "ssh2-sftp-client": 307276, 10 | "styled-components": 8672781 11 | } 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/59628/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "twemoji": 242870 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66742/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "twine-sugarcube": 393 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66742/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2023-10-18T01:59:04.603Z", 4 | "pr_number": 66742, 5 | "author": "BawdyInkSlinger", 6 | "headCommitOid": "7a7f91980d3ac5f8c6b6916ca70a44aa08215698", 7 | "mergeBaseOid": "3090530f3f230f7cfb2920b28bf49a938cd8aa59", 8 | "lastPushDate": "2023-09-18T23:01:42.000Z", 9 | "lastActivityDate": "2023-10-18T01:34:56.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": "twine-sugarcube", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/twine-sugarcube/extensions.d.ts", 22 | "kind": "definition" 23 | }, 24 | { 25 | "path": "types/twine-sugarcube/test/extensions.ts", 26 | "kind": "test" 27 | } 28 | ], 29 | "owners": [ 30 | "ezsh", 31 | "tmedwards" 32 | ], 33 | "addedOwners": [], 34 | "deletedOwners": [], 35 | "popularityLevel": "Well-liked by everyone" 36 | } 37 | ], 38 | "reviews": [ 39 | { 40 | "type": "changereq", 41 | "reviewer": "tmedwards", 42 | "date": "2023-10-18T01:34:56.000Z" 43 | }, 44 | { 45 | "type": "approved", 46 | "reviewer": "ezsh", 47 | "date": "2023-09-30T07:13:11.000Z", 48 | "isMaintainer": false 49 | } 50 | ], 51 | "mainBotCommentID": 1724578260, 52 | "ciResult": "pass" 53 | } 54 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66742/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "IC_kwDOAFz6BM5myvnU", 7 | "body": "@BawdyInkSlinger Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `twine-sugarcube` — [on npm](https://www.npmjs.com/package/twine-sugarcube), [on unpkg](https://unpkg.com/browse/twine-sugarcube@latest/)\n - owner-approval: @ezsh\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=66742&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | }, 11 | { 12 | "mutation": "mutation ($input: RemoveLabelsFromLabelableInput!) {\n removeLabelsFromLabelable(input: $input) {\n __typename\n }\n}\n", 13 | "variables": { 14 | "input": { 15 | "labelIds": [ 16 | "MDU6TGFiZWw2NDY3ODg4ODg=" 17 | ], 18 | "labelableId": "PR_kwDOAFz6BM5anpFP" 19 | } 20 | } 21 | } 22 | ] 23 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66742/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Needs Author Action", 3 | "labels": [ 4 | "Revision needed" 5 | ], 6 | "responseComments": [ 7 | { 8 | "tag": "welcome", 9 | "status": "@BawdyInkSlinger Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `twine-sugarcube` — [on npm](https://www.npmjs.com/package/twine-sugarcube), [on unpkg](https://unpkg.com/browse/twine-sugarcube@latest/)\n - owner-approval: @ezsh\n\n## Code Reviews\n\nBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=66742&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 10 | }, 11 | { 12 | "tag": "reviewer-complaint-7a7f919", 13 | "status": "@BawdyInkSlinger One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!" 14 | } 15 | ], 16 | "shouldClose": false, 17 | "shouldMerge": false, 18 | "shouldUpdateLabels": true 19 | } 20 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66757/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-table": 3928231 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66757/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2023-10-18T01:59:43.008Z", 4 | "pr_number": 66757, 5 | "author": "AlonBru", 6 | "headCommitOid": "42fb091d993517a72a32aae4e8e98271ecbf5ec3", 7 | "mergeBaseOid": "53e0cf9afba254ecae4add3ed008bf9972db16f5", 8 | "lastPushDate": "2023-09-20T00:56:41.000Z", 9 | "lastActivityDate": "2023-09-20T21:25:38.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Popular", 15 | "pkgInfo": [ 16 | { 17 | "name": "react-table", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/react-table/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "ggascoigne", 27 | "gargroh", 28 | "riceboyler" 29 | ], 30 | "addedOwners": [], 31 | "deletedOwners": [], 32 | "popularityLevel": "Popular" 33 | } 34 | ], 35 | "reviews": [ 36 | { 37 | "type": "changereq", 38 | "reviewer": "sheetalkamat", 39 | "date": "2023-09-20T17:24:47.000Z" 40 | } 41 | ], 42 | "mainBotCommentID": 1726730356, 43 | "ciResult": "pass" 44 | } 45 | -------------------------------------------------------------------------------- /src/_tests/fixtures/66979/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-blessed": 267 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/67090/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ansicolors": 9236, 3 | "cardinal": 0, 4 | "marked-terminal": 58490 5 | } 6 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68381/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 72913989 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68381/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2024-01-31T18:33:57.058Z", 4 | "pr_number": 68381, 5 | "author": "krzysdz", 6 | "headCommitOid": "61d76e05e8dfcd20fef3ba19b9b571e2420c8485", 7 | "mergeBaseOid": "f58f90046075bcc38a262e1462fb06b8a22ab886", 8 | "lastPushDate": "2024-01-30T11:15:06.000Z", 9 | "lastActivityDate": "2024-01-31T09:19:27.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": true, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Critical", 15 | "pkgInfo": [ 16 | { 17 | "name": "express-serve-static-core", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/express-serve-static-core/index.d.ts", 22 | "kind": "definition" 23 | } 24 | ], 25 | "owners": [ 26 | "borisyankov", 27 | "micksatana", 28 | "samijaber", 29 | "JoseLion", 30 | "dwrss", 31 | "andoshin11" 32 | ], 33 | "addedOwners": [], 34 | "deletedOwners": [], 35 | "popularityLevel": "Critical" 36 | } 37 | ], 38 | "reviews": [], 39 | "mainBotCommentID": 1916620324, 40 | "ciResult": "pass" 41 | } 42 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68386/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68386/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68386/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2024-01-31T18:34:02.737Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68386/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68386/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68510/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68510/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2024-02-06T22:16:07.932Z", 4 | "pr_number": 68510, 5 | "author": "andrewbranch", 6 | "headCommitOid": "073ae8d3a0b71b12ba6bb5b7a1d883d8611d98cb", 7 | "mergeBaseOid": "9b8dcf375c4aec95878058c610f8279c22527fa0", 8 | "lastPushDate": "2024-02-06T22:15:36.000Z", 9 | "lastActivityDate": "2024-02-06T22:15:36.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": null, 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "attw.json", 22 | "kind": "infrastructure" 23 | } 24 | ], 25 | "owners": [], 26 | "addedOwners": [], 27 | "deletedOwners": [], 28 | "popularityLevel": "Critical", 29 | "isSafeInfrastructureEdit": true 30 | } 31 | ], 32 | "reviews": [], 33 | "ciResult": "unknown" 34 | } 35 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68510/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Waiting for Code Reviews", 3 | "labels": [], 4 | "responseComments": [ 5 | { 6 | "tag": "welcome", 7 | "status": "@andrewbranch Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 0 packages in this PR\n\n\n## Code Reviews\n\nBecause you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=68510&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 Most recent commit is approved by type definition owners, DT maintainers or others\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ..." 8 | }, 9 | { 10 | "tag": "pinging-reviewers-others", 11 | "status": "🔔 @andrewbranch — there are no owners, but it would still be good if you find someone to [review this PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68510/files) in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)" 12 | } 13 | ], 14 | "shouldClose": false, 15 | "shouldMerge": false, 16 | "shouldUpdateLabels": true 17 | } 18 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68511/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68511/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2024-02-06T22:18:08.721Z", 4 | "pr_number": 68511, 5 | "author": "andrewbranch", 6 | "headCommitOid": "4f1c1cba1a64e338ef17548f98f800b83ebd84cb", 7 | "mergeBaseOid": "9b8dcf375c4aec95878058c610f8279c22527fa0", 8 | "lastPushDate": "2024-02-06T22:18:00.000Z", 9 | "lastActivityDate": "2024-02-06T22:18:00.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": null, 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "attw.json", 22 | "kind": "infrastructure" 23 | } 24 | ], 25 | "owners": [], 26 | "addedOwners": [], 27 | "deletedOwners": [], 28 | "popularityLevel": "Critical", 29 | "isSafeInfrastructureEdit": false 30 | } 31 | ], 32 | "reviews": [], 33 | "ciResult": "unknown" 34 | } 35 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68512/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68512/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2024-02-06T22:20:03.215Z", 4 | "pr_number": 68512, 5 | "author": "andrewbranch", 6 | "headCommitOid": "3cfdbf386128f18892a0e9c2cb73ba46fe325422", 7 | "mergeBaseOid": "9b8dcf375c4aec95878058c610f8279c22527fa0", 8 | "lastPushDate": "2024-02-06T22:19:53.000Z", 9 | "lastActivityDate": "2024-02-06T22:19:53.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Well-liked by everyone", 15 | "pkgInfo": [ 16 | { 17 | "name": null, 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "attw.json", 22 | "kind": "infrastructure" 23 | } 24 | ], 25 | "owners": [], 26 | "addedOwners": [], 27 | "deletedOwners": [], 28 | "popularityLevel": "Critical", 29 | "isSafeInfrastructureEdit": false 30 | } 31 | ], 32 | "reviews": [], 33 | "ciResult": "unknown" 34 | } 35 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68772/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "relationship.js": 21 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68772/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "IC_kwDOAFz6BM51I9v-", 7 | "body": "@jakebailey Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `relationship.js` — [on npm](https://www.npmjs.com/package/relationship.js), [on unpkg](https://unpkg.com/browse/relationship.js@latest/)\n\n## Code Reviews\n\nThis PR can be merged once it's reviewed by a DT maintainer.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=68772&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 Only a DT maintainer can approve changes [without tests](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-test-editing-an-existing-package)\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | }, 11 | { 12 | "mutation": "mutation ($input: RemoveLabelsFromLabelableInput!) {\n removeLabelsFromLabelable(input: $input) {\n __typename\n }\n}\n", 13 | "variables": { 14 | "input": { 15 | "labelIds": [ 16 | "MDU6TGFiZWwyMTU0ODE2NTQ5" 17 | ], 18 | "labelableId": "PR_kwDOAFz6BM5n95b9" 19 | } 20 | } 21 | } 22 | ] 23 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68908/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "node": 449699745 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/68908/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "IC_kwDOAFz6BM52Yyvs", 7 | "body": "@jakebailey Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `node` — [on npm](https://www.npmjs.com/package/node), [on unpkg](https://unpkg.com/browse/node@latest/)\n - Config files to check:\n - [`node/ts4.8/scripts/generate-docs/.gitignore`](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68908/files/b3eeaef096e86260fb5300d4e289257112644f86#diff-91526815b4e9495a4a3c4fc39e0d0ec54cfde836d5fba3a1ed2357f249d7cba7): edited\n - [`node/ts4.8/scripts/generate-inspector/inspector.d.ts.template`](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/68908/files/b3eeaef096e86260fb5300d4e289257112644f86#diff-451f80f4367421783eca707351dd71c71207e031bc5dff3a4d0b95058e84c7f7): edited\n\n## Code Reviews\n\nBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=68908&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * 🕐 Continuous integration tests are still running\n * 🕐 A DT maintainer needs to approve changes that affect module config files\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /src/_tests/fixtures/69589/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "readable-stream": 5070527 3 | } 4 | -------------------------------------------------------------------------------- /src/_tests/fixtures/69589/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "73af686fc614750422389559ef5a752e6eae69a5:types/readable-stream/package.json": "{\n \"private\": true,\n \"name\": \"@types/readable-stream\",\n \"version\": \"4.0.9999\",\n \"projects\": [\n \"https://github.com/nodejs/readable-stream\"\n ],\n \"dependencies\": {\n \"@types/node\": \"*\",\n \"safe-buffer\": \"~5.1.1\"\n },\n \"devDependencies\": {\n \"@types/readable-stream\": \"workspace:.\"\n },\n \"owners\": [\n {\n \"name\": \"TeamworkGuy2\",\n \"githubUsername\": \"TeamworkGuy2\"\n },\n {\n \"name\": \"markdreyer\",\n \"githubUsername\": \"markdreyer\"\n },\n {\n \"name\": \"Matteo Collina\",\n \"githubUsername\": \"mcollina\"\n }\n ]\n}\n", 3 | "35ea3e696d3fb324ce0c779d20c2ab83f36d9181:types/readable-stream/package.json": "{\n \"private\": true,\n \"name\": \"@types/readable-stream\",\n \"version\": \"4.0.9999\",\n \"projects\": [\n \"https://github.com/nodejs/readable-stream\"\n ],\n \"dependencies\": {\n \"@types/node\": \"*\",\n \"safe-buffer\": \"~5.1.1\"\n },\n \"devDependencies\": {\n \"@types/readable-stream\": \"workspace:.\"\n },\n \"owners\": [\n {\n \"name\": \"TeamworkGuy2\",\n \"githubUsername\": \"TeamworkGuy2\"\n },\n {\n \"name\": \"markdreyer\",\n \"githubUsername\": \"markdreyer\"\n }\n ]\n}\n" 4 | } 5 | -------------------------------------------------------------------------------- /src/_tests/fixtures/69589/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "info", 3 | "now": "2024-05-13T16:27:07.093Z", 4 | "pr_number": 69589, 5 | "author": "mcollina", 6 | "headCommitOid": "73af686fc614750422389559ef5a752e6eae69a5", 7 | "mergeBaseOid": "35ea3e696d3fb324ce0c779d20c2ab83f36d9181", 8 | "lastPushDate": "2024-05-13T13:38:31.000Z", 9 | "lastActivityDate": "2024-05-13T14:56:16.000Z", 10 | "hasMergeConflict": false, 11 | "isFirstContribution": false, 12 | "tooManyFiles": false, 13 | "hugeChange": false, 14 | "popularityLevel": "Critical", 15 | "pkgInfo": [ 16 | { 17 | "name": "readable-stream", 18 | "kind": "edit", 19 | "files": [ 20 | { 21 | "path": "types/readable-stream/package.json", 22 | "kind": "package-meta-ok" 23 | } 24 | ], 25 | "owners": [ 26 | "TeamworkGuy2", 27 | "markdreyer" 28 | ], 29 | "addedOwners": [ 30 | "mcollina" 31 | ], 32 | "deletedOwners": [], 33 | "popularityLevel": "Critical" 34 | } 35 | ], 36 | "reviews": [ 37 | { 38 | "type": "stale", 39 | "reviewer": "jakebailey", 40 | "date": "2024-05-13T14:56:16.000Z", 41 | "abbrOid": "5fa9291" 42 | } 43 | ], 44 | "mainBotCommentID": 2107607823, 45 | "ciResult": "pass" 46 | } 47 | -------------------------------------------------------------------------------- /src/_tests/fixtures/69589/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: UpdateIssueCommentInput!) {\n updateIssueComment(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "id": "IC_kwDOAFz6BM59n4sP", 7 | "body": "@mcollina Thank you for submitting this PR!\n\n***This is a live comment that I will keep updated.***\n\n## 1 package in this PR\n\n* `readable-stream` — [on npm](https://www.npmjs.com/package/readable-stream), [on unpkg](https://unpkg.com/browse/readable-stream@latest/)\n - 1 added owner: ✎@mcollina\n\n## Code Reviews\n\nBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=69589&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * 🕐 Most recent commit is approved by a DT maintainer\n\nOnce every item on this list is checked, I'll ask you for permission to merge and publish the changes.\n\n----------------------\n... diagnostics scrubbed ...\n" 8 | } 9 | } 10 | }, 11 | { 12 | "mutation": "mutation ($input: AddLabelsToLabelableInput!) {\n addLabelsToLabelable(input: $input) {\n __typename\n }\n}\n", 13 | "variables": { 14 | "input": { 15 | "labelIds": [ 16 | "MDU6TGFiZWwyNDk1OTc2ODI5" 17 | ], 18 | "labelableId": "PR_kwDOAFz6BM5vQtx6" 19 | } 20 | } 21 | } 22 | ] 23 | -------------------------------------------------------------------------------- /src/_tests/testEnvironment.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @typescript-eslint/no-var-requires 2 | const jestEnvNode = require("jest-environment-node"); 3 | module.exports = class extends jestEnvNode.TestEnvironment { 4 | constructor(config) { 5 | super(config); 6 | this.global.AbortSignal = {}; 7 | this.global.Event = {}; 8 | this.global.EventTarget = {}; 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /src/basic.ts: -------------------------------------------------------------------------------- 1 | export type ColumnName = 2 | | "Needs Maintainer Action" 3 | | "Needs Maintainer Review" 4 | | "Other" 5 | | "Waiting for Author to Merge" 6 | | "Needs Author Action" 7 | | "Recently Merged" 8 | | "Waiting for Code Reviews" 9 | | "*REMOVE*"; // special value: indicates closing the PR 10 | 11 | export type PopularityLevel = 12 | | "Well-liked by everyone" 13 | | "Popular" 14 | | "Critical"; 15 | 16 | export type StalenessKind = typeof StalenessKinds[number]; 17 | const StalenessKinds = [ // all are also label names 18 | "Unmerged", 19 | "Abandoned", 20 | "Unreviewed", 21 | ] as const; 22 | 23 | export type LabelName = typeof LabelNames[number]; 24 | export const LabelNames = [ 25 | "Mergebot Error", 26 | "Has Merge Conflict", 27 | "The CI failed", 28 | "The CI is blocked", 29 | "Revision needed", 30 | "New Definition", 31 | "Edits Owners", 32 | "Where is GH Actions?", 33 | "Owner Approved", 34 | "Other Approved", 35 | "Maintainer Approved", 36 | "Self Merge", 37 | "Popular package", 38 | "Critical package", 39 | "Edits Infrastructure", 40 | "Possibly Edits Infrastructure", 41 | "Edits multiple packages", 42 | "Author is Owner", 43 | "No Other Owners", 44 | "Too Many Owners", 45 | "Untested Change", 46 | "Check Config", 47 | "Too Many Files", 48 | "Huge Change", 49 | "Needs Actions Permission", 50 | ...StalenessKinds, 51 | ] as const; 52 | 53 | export type ApproverKind = "maintainer" | "owner" | "other"; 54 | 55 | export type BlessingKind = "merge" | "review" | undefined; 56 | -------------------------------------------------------------------------------- /src/commands/update-all-fixtures.ts: -------------------------------------------------------------------------------- 1 | import createFixture from "./create-fixture"; 2 | import * as path from "path"; 3 | import * as fs from "fs"; 4 | 5 | async function main() { 6 | const overwriteInfo = process.argv.slice(2).includes("--overwrite-info"); 7 | const fixturesDir = path.join(__dirname, "../../src/_tests/fixtures"); 8 | const fixtures = await fs.promises.readdir(fixturesDir, { withFileTypes: true }); 9 | for (const dir of fixtures) { 10 | if (!dir.isDirectory()) continue; 11 | console.log(`Updating ${dir.name}, ${overwriteInfo ? "overwriting" : "preserving"} the existing PR info...`); 12 | await createFixture(dir.name, overwriteInfo); 13 | } 14 | } 15 | 16 | main().then(() => { 17 | console.log("Done!"); 18 | process.exit(0); 19 | }, err => { 20 | if (err?.stack) { 21 | console.error(err.stack); 22 | } else { 23 | console.error(err); 24 | } 25 | process.exit(1); 26 | }); 27 | -------------------------------------------------------------------------------- /src/commands/update-test-data.ts: -------------------------------------------------------------------------------- 1 | import * as fs from "fs"; 2 | import * as path from "path"; 3 | import * as cachedQueries from "../util/cachedQueries"; 4 | 5 | async function main() { 6 | let base = __dirname, dataPath = ""; 7 | while (!fs.existsSync(dataPath = path.join(base, "src", "_tests", "cachedQueries.json"))) { 8 | const up = path.dirname(base); 9 | if (up === base) throw new Error("Couldn't find cachedQueries.json"); 10 | base = up; 11 | } 12 | 13 | const data: any = {}; 14 | 15 | for (const query in cachedQueries) { 16 | data[query] = await cachedQueries[query as keyof typeof cachedQueries](); 17 | } 18 | 19 | await fs.promises.writeFile( 20 | dataPath, 21 | JSON.stringify({ comment: "Generate & update with `pnpm run update-test-data`", ...data }, 22 | undefined, 2) 23 | + "\n", 24 | "utf8"); 25 | } 26 | 27 | 28 | main().then(() => { 29 | console.log("Done!"); 30 | process.exit(0); 31 | }, err => { 32 | if (err?.stack) { 33 | console.error(err.stack); 34 | } else { 35 | console.error(err); 36 | } 37 | process.exit(1); 38 | }); 39 | -------------------------------------------------------------------------------- /src/discussions.ts: -------------------------------------------------------------------------------- 1 | export const canHandleRequest = (event: string, action: string) => event == "discussion" && (action === "created" || action === "edited"); 2 | 3 | export function extractNPMReference(discussion: { title: string }) { 4 | const title = discussion.title; 5 | if (title.includes("[") && title.includes("]")) { 6 | const full = title.split("[")[1]!.split("]")[0]; 7 | return full!.replace("@types/", ""); 8 | } 9 | return undefined; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /src/emoji.ts: -------------------------------------------------------------------------------- 1 | import { CIResult } from "./pr-info"; 2 | 3 | export const failed = (isFailed: boolean) => isFailed ? "❌" : "✅"; 4 | 5 | export const pending = (isPending: boolean) => isPending ? "🕐" : "✅"; 6 | 7 | export const result = (result: CIResult) => { 8 | switch (result) { 9 | case "fail": return { emoji: "❌", text: "have failed" }; 10 | case "pass": return { emoji: "✅", text: "have passed" }; 11 | case "action_required": return { emoji: "🔐", text: "waiting for a maintainer to authorize a run" }; 12 | case "unknown": return { emoji: "🕐", text: "are still running" }; 13 | case "missing": return { emoji: "❓", text: "have gone missing" }; 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /src/functions/httpTrigger.ts: -------------------------------------------------------------------------------- 1 | import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions"; 2 | 3 | export async function httpTrigger(request: HttpRequest, context: InvocationContext): Promise { 4 | context.log(`Http function processed request for url "${request.url}"`); 5 | 6 | const name = request.query.get("name") || await request.text() || "world"; 7 | 8 | return { body: `Hello, ${name}!` }; 9 | } 10 | 11 | app.http("httpTrigger", { 12 | methods: ["GET", "POST"], 13 | authLevel: "anonymous", 14 | handler: httpTrigger 15 | }); 16 | -------------------------------------------------------------------------------- /src/functions/index.ts: -------------------------------------------------------------------------------- 1 | import "./api"; 2 | import "./discussions-trigger"; 3 | import "./httpTrigger"; 4 | import "./pr-trigger"; 5 | -------------------------------------------------------------------------------- /src/graphql-client.ts: -------------------------------------------------------------------------------- 1 | import { ApolloClient, gql, HttpLink, InMemoryCache, MutationOptions, TypedDocumentNode } from "@apollo/client/core"; 2 | import { print } from "graphql"; 3 | import * as schema from "@octokit/graphql-schema/schema"; 4 | 5 | // get the values directly from the apollo config 6 | // eslint-disable-next-line @typescript-eslint/no-var-requires 7 | const apolloCfg = require("../apollo.config.js").client.service; 8 | 9 | const uri = apolloCfg.url; 10 | const headers = { 11 | ...apolloCfg.headers, 12 | authorization: `Bearer ${getAuthToken()}`, 13 | }; 14 | 15 | const cache = new InMemoryCache(); 16 | const link = new HttpLink({ uri, headers, fetch }); 17 | 18 | export const client = new ApolloClient({ cache, link }); 19 | 20 | export function createMutation(name: keyof schema.Mutation, input: T, subquery?: string): MutationOptions { 21 | const mutation = { 22 | toJSON: () => print(mutation), 23 | ...(gql`mutation($input: ${name[0]!.toUpperCase() + name.slice(1)}Input!) { 24 | ${name}(input: $input) { 25 | __typename 26 | ${subquery || ""} 27 | } 28 | }` as TypedDocumentNode), 29 | }; 30 | return { mutation, variables: { input } }; 31 | } 32 | 33 | function getAuthToken() { 34 | if (process.env.JEST_WORKER_ID) return "FAKE_TOKEN"; 35 | 36 | const result = process.env["BOT_AUTH_TOKEN"] || process.env["AUTH_TOKEN"] || process.env["DT_BOT_AUTH_TOKEN"]; 37 | if (typeof result !== "string") { 38 | throw new Error("Set either BOT_AUTH_TOKEN or AUTH_TOKEN to a valid auth token"); 39 | } 40 | return result.trim(); 41 | } 42 | -------------------------------------------------------------------------------- /src/queries/SHA1-to-PR-query.ts: -------------------------------------------------------------------------------- 1 | import { gql, TypedDocumentNode } from "@apollo/client/core"; 2 | import { client } from "../graphql-client"; 3 | import { GetPRForSHA1, GetPRForSHA1Variables, GetPRForSHA1_search_nodes_PullRequest } from "./schema/GetPRForSHA1"; 4 | 5 | export const runQueryToGetPRMetadataForSHA1 = async ( 6 | owner: string, repo: string, sha1: string 7 | ): Promise => { 8 | const info = await client.query({ 9 | query: GetPRForSHA1Query, 10 | variables: { query: `${sha1} type:pr repo:${owner}/${repo}` }, 11 | fetchPolicy: "no-cache", 12 | }); 13 | const pr = info.data.search.nodes?.[0]; 14 | return pr?.__typename === "PullRequest" ? pr : undefined; 15 | }; 16 | 17 | export const GetPRForSHA1Query: TypedDocumentNode = gql` 18 | query GetPRForSHA1($query: String!) { 19 | search(query: $query, first: 1, type: ISSUE) { 20 | nodes { 21 | ... on PullRequest { 22 | title 23 | number 24 | closed 25 | } 26 | } 27 | } 28 | }`; 29 | 30 | /* This is better since it doesn't do a generic search, but for some reason it will sometime fail to get a PR 31 | query GetPRForSHA1($owner: String!, $repo: String!, $sha1: String!) { 32 | repository(owner: $owner, name: $repo) { 33 | id 34 | object(expression: $sha1) { 35 | ... on Commit { 36 | associatedPullRequests(first: 1) { 37 | nodes { 38 | title 39 | number 40 | closed 41 | } 42 | } 43 | } 44 | } 45 | } 46 | } 47 | */ 48 | -------------------------------------------------------------------------------- /src/queries/all-open-prs-query.ts: -------------------------------------------------------------------------------- 1 | import { gql, TypedDocumentNode } from "@apollo/client/core"; 2 | import { client } from "../graphql-client"; 3 | import { GetAllOpenPRsAndCardIDs, GetAllOpenPRsAndCardIDsVariables } from "./schema/GetAllOpenPRsAndCardIDs"; 4 | import { noNullish } from "../util/util"; 5 | 6 | const getAllOpenPRsAndCardIDsQuery: TypedDocumentNode = gql` 7 | query GetAllOpenPRsAndCardIDs($endCursor: String) { 8 | repository(owner: "DefinitelyTyped", name: "DefinitelyTyped") { 9 | id 10 | pullRequests(states: OPEN, orderBy: { field: UPDATED_AT, direction: DESC }, first: 100, after: $endCursor) { 11 | nodes { 12 | number 13 | projectCards(first: 100) { nodes { id } } 14 | } 15 | pageInfo { hasNextPage endCursor } 16 | } 17 | } 18 | }`; 19 | 20 | export async function getAllOpenPRsAndCardIDs() { 21 | const prs: number[] = []; 22 | const cardIDs: string[] = []; 23 | let endCursor: string | undefined | null; 24 | while (true) { 25 | const result = await client.query({ 26 | query: getAllOpenPRsAndCardIDsQuery, 27 | fetchPolicy: "no-cache", 28 | variables: { endCursor }, 29 | }); 30 | const pullRequests = result.data.repository?.pullRequests; 31 | const nodes = noNullish(pullRequests?.nodes); 32 | prs.push(...nodes.map(pr => pr.number)); 33 | for (const pr of nodes) { 34 | cardIDs.push(...noNullish(pr.projectCards.nodes).map(card => card.id)); 35 | } 36 | if (!pullRequests?.pageInfo.hasNextPage) return { prs, cardIDs }; 37 | endCursor = pullRequests.pageInfo.endCursor; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/queries/card-id-to-pr-query.ts: -------------------------------------------------------------------------------- 1 | import { gql, TypedDocumentNode } from "@apollo/client/core"; 2 | import { client } from "../graphql-client"; 3 | import { PullRequestState } from "./schema/graphql-global-types"; 4 | import { CardIdToPr, CardIdToPrVariables } from "./schema/CardIdToPr"; 5 | 6 | interface CardPRInfo { 7 | number: number; 8 | state: PullRequestState; 9 | } 10 | 11 | export const runQueryToGetPRForCardId = async (id: string): Promise => { 12 | const info = await client.query({ 13 | query: gql` 14 | query CardIdToPr($id: ID!) { 15 | node(id: $id) { 16 | ... on ProjectCard { content { ... on PullRequest { state number } } } 17 | } 18 | }` as TypedDocumentNode, 19 | variables: { id }, 20 | fetchPolicy: "no-cache", 21 | }); 22 | const node = info.data.node; 23 | return (node?.__typename === "ProjectCard" && node.content?.__typename === "PullRequest") 24 | ? { number: node.content.number, state: node.content.state } 25 | : undefined; 26 | }; 27 | -------------------------------------------------------------------------------- /src/queries/file-query.ts: -------------------------------------------------------------------------------- 1 | import { gql, TypedDocumentNode } from "@apollo/client/core"; 2 | import { GetFileContent, GetFileContentVariables } from "./schema/GetFileContent"; 3 | 4 | export { GetFileContent }; 5 | 6 | const GetFileContent: TypedDocumentNode = gql` 7 | query GetFileContent($owner: String!, $name: String!, $expr: String!) { 8 | repository(owner: $owner, name: $name) { 9 | id 10 | object(expression: $expr) { 11 | ... on Blob { 12 | text 13 | byteSize 14 | } 15 | } 16 | } 17 | }`; 18 | -------------------------------------------------------------------------------- /src/queries/schema/GetFileContent.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | // @generated 4 | // This file was automatically generated and should not be edited. 5 | 6 | // ==================================================== 7 | // GraphQL query operation: GetFileContent 8 | // ==================================================== 9 | 10 | export interface GetFileContent_repository_object_Commit { 11 | __typename: "Commit" | "Tag" | "Tree"; 12 | } 13 | 14 | export interface GetFileContent_repository_object_Blob { 15 | __typename: "Blob"; 16 | /** 17 | * UTF8 text data or null if the Blob is binary 18 | */ 19 | text: string | null; 20 | /** 21 | * Byte size of Blob object 22 | */ 23 | byteSize: number; 24 | } 25 | 26 | export type GetFileContent_repository_object = GetFileContent_repository_object_Commit | GetFileContent_repository_object_Blob; 27 | 28 | export interface GetFileContent_repository { 29 | __typename: "Repository"; 30 | /** 31 | * The Node ID of the Repository object 32 | */ 33 | id: string; 34 | /** 35 | * A Git object in the repository 36 | */ 37 | object: GetFileContent_repository_object | null; 38 | } 39 | 40 | export interface GetFileContent { 41 | /** 42 | * Lookup a given repository by the owner and repository name. 43 | */ 44 | repository: GetFileContent_repository | null; 45 | } 46 | 47 | export interface GetFileContentVariables { 48 | owner: string; 49 | name: string; 50 | expr: string; 51 | } 52 | -------------------------------------------------------------------------------- /src/queries/schema/GetPRForSHA1.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | // @generated 4 | // This file was automatically generated and should not be edited. 5 | 6 | // ==================================================== 7 | // GraphQL query operation: GetPRForSHA1 8 | // ==================================================== 9 | 10 | export interface GetPRForSHA1_search_nodes_App { 11 | __typename: "App" | "Discussion" | "Issue" | "MarketplaceListing" | "Organization" | "Repository" | "User"; 12 | } 13 | 14 | export interface GetPRForSHA1_search_nodes_PullRequest { 15 | __typename: "PullRequest"; 16 | /** 17 | * Identifies the pull request title. 18 | */ 19 | title: string; 20 | /** 21 | * Identifies the pull request number. 22 | */ 23 | number: number; 24 | /** 25 | * `true` if the pull request is closed 26 | */ 27 | closed: boolean; 28 | } 29 | 30 | export type GetPRForSHA1_search_nodes = GetPRForSHA1_search_nodes_App | GetPRForSHA1_search_nodes_PullRequest; 31 | 32 | export interface GetPRForSHA1_search { 33 | __typename: "SearchResultItemConnection"; 34 | /** 35 | * A list of nodes. 36 | */ 37 | nodes: (GetPRForSHA1_search_nodes | null)[] | null; 38 | } 39 | 40 | export interface GetPRForSHA1 { 41 | /** 42 | * Perform a search across resources, returning a maximum of 1,000 results. 43 | */ 44 | search: GetPRForSHA1_search; 45 | } 46 | 47 | export interface GetPRForSHA1Variables { 48 | query: string; 49 | } 50 | -------------------------------------------------------------------------------- /src/queries/schema/GetProjectColumns.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | // @generated 4 | // This file was automatically generated and should not be edited. 5 | 6 | // ==================================================== 7 | // GraphQL query operation: GetProjectColumns 8 | // ==================================================== 9 | 10 | export interface GetProjectColumns_repository_project_columns_nodes { 11 | __typename: "ProjectColumn"; 12 | /** 13 | * The Node ID of the ProjectColumn object 14 | */ 15 | id: string; 16 | /** 17 | * The project column's name. 18 | */ 19 | name: string; 20 | } 21 | 22 | export interface GetProjectColumns_repository_project_columns { 23 | __typename: "ProjectColumnConnection"; 24 | /** 25 | * A list of nodes. 26 | */ 27 | nodes: (GetProjectColumns_repository_project_columns_nodes | null)[] | null; 28 | } 29 | 30 | export interface GetProjectColumns_repository_project { 31 | __typename: "Project"; 32 | /** 33 | * The Node ID of the Project object 34 | */ 35 | id: string; 36 | /** 37 | * List of columns in the project 38 | */ 39 | columns: GetProjectColumns_repository_project_columns; 40 | } 41 | 42 | export interface GetProjectColumns_repository { 43 | __typename: "Repository"; 44 | /** 45 | * The Node ID of the Repository object 46 | */ 47 | id: string; 48 | /** 49 | * Find project by number. 50 | */ 51 | project: GetProjectColumns_repository_project | null; 52 | } 53 | 54 | export interface GetProjectColumns { 55 | /** 56 | * Lookup a given repository by the owner and repository name. 57 | */ 58 | repository: GetProjectColumns_repository | null; 59 | } 60 | -------------------------------------------------------------------------------- /src/scripts/updateJSONFixtures.ts: -------------------------------------------------------------------------------- 1 | import {readdirSync, readFileSync, writeFileSync} from "fs"; 2 | import { join } from "path"; 3 | 4 | // Converts Travis response to GH Actions response, left 5 | // around so that someone whio needs to edit fixtures can start from 6 | // an existing framework 7 | 8 | // yarn ts-node src/scripts/updateJSONFixtures.ts 9 | 10 | const fixtureRoot = join(__dirname, "..", "_tests", "fixtures"); 11 | const fixtureNames = readdirSync(fixtureRoot); 12 | 13 | fixtureNames.forEach(fixture => { 14 | const responsePath = join(fixtureRoot, fixture, "_response.json"); 15 | const response = JSON.parse(readFileSync(responsePath, "utf8")); 16 | const pr = response.data.repository.pullRequest; 17 | const headSha = pr.headRefOid; 18 | 19 | if (!pr.commits) return; 20 | 21 | const headCommit = pr.commits.nodes.find((c: any) => c.commit.oid === headSha).commit; 22 | const status = headCommit.status && headCommit.status.state || "MISSING"; 23 | 24 | if (!headCommit.checkSuites) headCommit.checkSuites = { nodes: [] }; 25 | headCommit.checkSuites.nodes.push({ 26 | "app": { 27 | "name": "GitHub Actions", 28 | "__typename": "App", 29 | }, 30 | "conclusion": status, 31 | "resourcePath": "/DefinitelyTyped/DefinitelyTyped/commit/22c73c88cc9c09efd4c2998ec360607dd4c36c2e/checks?check_suite_id=731664306", 32 | "status": status, 33 | "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/commit/22c73c88cc9c09efd4c2998ec360607dd4c36c2e/checks?check_suite_id=731664306", 34 | "__typename": "CheckSuite", 35 | }); 36 | 37 | writeFileSync(responsePath, JSON.stringify(response, null, " ") + "\n", "utf8"); 38 | }); 39 | -------------------------------------------------------------------------------- /src/side-effects/merge-codeowner-prs.ts: -------------------------------------------------------------------------------- 1 | import * as schema from "@octokit/graphql-schema/schema"; 2 | import { CheckSuiteEvent } from "@octokit/webhooks-types"; 3 | import { createMutation, client } from "../graphql-client"; 4 | 5 | export const mergeCodeOwnersOnGreen = async (payload: CheckSuiteEvent) => { 6 | // Because we only care about GH actions, we can use the check suite API which means we get both the 7 | // commit and the PR, making it much less effort than other merge-on-greens 8 | // https://github.com/microsoft/TypeScript-repos-automation/blob/40ae8b3db63fd0150938e82e47dcb63ce65f7a2d/src/checks/mergeOnGreen.ts#L1 9 | 10 | if (payload.action === "completed" 11 | && payload.check_suite.conclusion === "success" 12 | && payload.check_suite.head_commit.author.name === "TS Bot" 13 | && payload.check_suite.head_commit.message === "Update CODEOWNERS" 14 | && payload.check_suite.pull_requests[0]!.base.repo.id === payload.check_suite.pull_requests[0]!.head.repo.id) { 15 | await client.mutate(createMutation("mergePullRequest", { 16 | commitHeadline: `🤖 Auto Merge`, 17 | expectedHeadOid: payload.check_suite.head_commit.id, 18 | mergeMethod: "SQUASH", 19 | pullRequestId: payload.check_suite.pull_requests[0]!.id.toFixed(), 20 | })); 21 | } 22 | 23 | }; 24 | -------------------------------------------------------------------------------- /src/types/discussions.d.ts: -------------------------------------------------------------------------------- 1 | // Generated from the JSON response because it's not in the upstream tooling 2 | 3 | export interface DiscussionWebhook { 4 | action: string; 5 | discussion: Discussion; 6 | repository: any; 7 | sender: any; 8 | } 9 | 10 | export interface Discussion { 11 | repository_url: string; 12 | category: Category; 13 | answer_html_url: null; 14 | answer_chosen_at: null; 15 | answer_chosen_by: null; 16 | html_url: string; 17 | id: number; 18 | node_id: string; 19 | number: number; 20 | title: string; 21 | user: Sender; 22 | state: string; 23 | locked: boolean; 24 | comments: number; 25 | created_at: Date; 26 | updated_at: Date; 27 | author_association: string; 28 | active_lock_reason: null; 29 | body: string; 30 | } 31 | 32 | export interface Category { 33 | id: number; 34 | repository_id: number; 35 | emoji: string; 36 | name: string; 37 | description: string; 38 | created_at: Date; 39 | updated_at: Date; 40 | slug: string; 41 | is_answerable: boolean; 42 | } 43 | -------------------------------------------------------------------------------- /src/urls.ts: -------------------------------------------------------------------------------- 1 | const baseURL = "https://github.com/DefinitelyTyped/DefinitelyTyped"; 2 | const readmeLink = (header: string) => 3 | `${baseURL}#user-content-${header.replace(/[^\w -]/g, "").replace(/ /g, "-").toLowerCase()}`; 4 | 5 | export const review = (n: number) => `${baseURL}/pull/${n}/files`; 6 | export const testingEditedPackages = readmeLink("Test editing an existing package"); 7 | export const testingNewPackages = readmeLink("Adding tests to a new package"); 8 | export const definitionOwners = readmeLink("Definition Owners"); 9 | export const workflow = readmeLink("Make a pull request"); 10 | export const tsconfigJson = readmeLink("`tsconfig.json`"); 11 | export const testsTs = readmeLink("`-tests.ts`"); 12 | 13 | export const playground = (prNum: number) => 14 | `https://www.typescriptlang.org/play/?dtPR=${prNum}&install-plugin=playground-dt-review`; 15 | -------------------------------------------------------------------------------- /src/util/cachedQueries.ts: -------------------------------------------------------------------------------- 1 | import { TypedDocumentNode } from "@apollo/client/core"; 2 | import { getLabels as getLabelsRaw, GetProjectColumns } from "../queries/label-columns-queries"; 3 | import { client } from "../graphql-client"; 4 | import { noNullish } from "./util"; 5 | 6 | export async function getProjectBoardColumns() { 7 | const res = noNullish((await query(GetProjectColumns)) 8 | .repository?.project?.columns.nodes); 9 | return res.sort((a,b) => a.name.localeCompare(b.name)); 10 | } 11 | 12 | export async function getLabels() { 13 | const res = await getLabelsRaw(); 14 | return res.filter(l => !l.name.startsWith("Pkg:")) 15 | .sort((a,b) => a.name.localeCompare(b.name)); 16 | } 17 | 18 | async function query(gql: TypedDocumentNode): Promise { 19 | const res = await client.query({ query: gql }); 20 | return res.data; 21 | } 22 | -------------------------------------------------------------------------------- /src/util/comment.ts: -------------------------------------------------------------------------------- 1 | import { Comment } from "../comments"; 2 | 3 | const prefix = "\n"; 5 | 6 | export function parse(body: string): Comment | undefined { 7 | const start = body.lastIndexOf(prefix); 8 | const end = body.lastIndexOf(suffix); 9 | return start < 0 || end < 0 || end + suffix.length != body.length 10 | ? undefined 11 | : { status: body.substr(0, start), 12 | tag: body.substr(start + prefix.length, end - start - prefix.length), 13 | }; 14 | } 15 | 16 | export function make({ status, tag }: Comment) { 17 | return `${status}${prefix}${tag}${suffix}`; 18 | } 19 | -------------------------------------------------------------------------------- /src/util/fetchFile.ts: -------------------------------------------------------------------------------- 1 | import { client } from "../graphql-client"; 2 | import { GetFileContent } from "../queries/file-query"; 3 | 4 | export async function fetchFile(expr: string, limit?: number): Promise { 5 | const info = await client.query({ 6 | query: GetFileContent, 7 | variables: { 8 | name: "DefinitelyTyped", 9 | owner: "DefinitelyTyped", 10 | expr: `${expr}`, 11 | }, 12 | }); 13 | const obj = info.data.repository?.object; 14 | if (!obj || obj.__typename !== "Blob") return undefined; 15 | if (obj.text && limit && obj.text.length > limit) { 16 | return obj.text.substring(0, limit); 17 | } else if (obj.byteSize > 3_000_000 && !obj.text) { 18 | throw new Error(`Blob too big to fetch: ${expr}`); 19 | } else { 20 | return obj.text ?? undefined; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/util/io.ts: -------------------------------------------------------------------------------- 1 | export async function fetchText(url: string): Promise { 2 | const response = await fetch(url); 3 | return response.text(); 4 | } 5 | -------------------------------------------------------------------------------- /src/util/npm.ts: -------------------------------------------------------------------------------- 1 | import { fetchText } from "./io"; 2 | 3 | const DAY = 1000 * 60 * 60 * 24; 4 | const toDateStr = (d: Date, days: number) => 5 | (new Date(d.getTime() - days * DAY)).toISOString().replace(/T.*$/, ""); 6 | 7 | export async function getMonthlyDownloadCount(packageName: string, until?: Date): Promise { 8 | // use the month up to a week before the given date, in case it takes npm some time to update the numbers 9 | const range = !until ? "last-month" : `${toDateStr(until, 37)}:${toDateStr(until, 7)}`; 10 | const url = `https://api.npmjs.org/downloads/point/${range}/@types/${packageName}`; 11 | const result = JSON.parse(await fetchText(url)) as { downloads?: number }; 12 | // For a package not on NPM, just return 0. 13 | return result.downloads === undefined ? 0 : result.downloads; 14 | } 15 | -------------------------------------------------------------------------------- /src/util/reply.ts: -------------------------------------------------------------------------------- 1 | import { InvocationContext } from "@azure/functions"; 2 | 3 | export const reply = (context: InvocationContext, status: number, body: string) => { 4 | context.info(`${body} [${status}]`); 5 | return { status, body }; 6 | }; 7 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "dist", 4 | "strict": true, 5 | "module": "commonjs", 6 | "target": "es2022", 7 | "lib": ["es2022"], 8 | "esModuleInterop": true, 9 | "types": ["node"], 10 | "sourceMap": true, 11 | "resolveJsonModule": true, 12 | "noUnusedLocals": false, 13 | "noUnusedParameters": false, 14 | "noFallthroughCasesInSwitch": true, 15 | "noImplicitReturns": true, 16 | "noUncheckedIndexedAccess": true, 17 | "skipLibCheck": true 18 | } 19 | } 20 | --------------------------------------------------------------------------------