6.7.0 - Alpha6 - Scrapers 工具 JSDoc @typedef 转换为 TypeScript 声明文件

This commit is contained in:
SuperMonster003
2025-09-30 16:41:09 +08:00
parent 24e4443c0c
commit 834cde26ea
13 changed files with 136 additions and 145 deletions

View File

@@ -1,31 +1,5 @@
// fetch-and-parse-autojs6-merged-pr-commits-statistics.mjs
/** @typedef {import('@octokit/types').Endpoints['GET /repos/{owner}/{repo}/pulls']['response']['data']} PullsData */
/** @typedef {import('@octokit/types').Endpoints['GET /repos/{owner}/{repo}/pulls/{pull_number}/commits']['response']['data']} PullCommitsData */
/**
* @typedef {Object} UserProfile
* @property {string} login
* @property {string | null} name
*/
/**
* @typedef {Object} StatisticsEntry
* @property {string} login
* @property {string | null} name
* @property {string} htmlUrl
* @property {number} totalCommitsInMergedPRs
* @property {string | null} latestCommitAt
*/
/**
* @typedef {Object} DebugRecord
* @property {string} sha
* @property {boolean} belongs
* @property {string | null} author_login
* @property {string | null} committer_login
* @property {string | null} author_name
* @property {string | null} author_email
* @property {string | null} time
*/
import * as dotenv from 'dotenv';
import { fileURLToPath } from 'node:url';
import { httpFetch } from './utils/fetch.mjs';