# exportTpcIssue **Repository Path**: pizice/export-tpc-issue ## Basic Information - **Project Name**: exportTpcIssue - **Description**: 扫描issue数据 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-10 - **Last Updated**: 2025-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简介 用于查询导出 https://gitee.com/openharmony-tpc/manifest 中配置的三方库代码仓中的Issue。 # 环境准备 1. 安装nodejs、git # 运行 ## 下载代码 克隆代码,工具放在exportTpcIssue子目录。 ``` git clone https://gitee.com/chenwenjiehw/util-tools.git ``` ## 安装依赖 ```bash npm i ``` ## 配置 运行时需要配置gitee的access_token。配置方法:打开grepTpcIssue.ts文件,找到access_token,按注释说明申请、配置access_token。 ```typescript // 打开gitee api页面,自行开通获取access_token(失效后需要重新申请) // 1. 打开 https://gitee.com/api/v5/swagger#/getV5ReposOwnerRepoIssues 页面 // 2. 点击页面上的“申请授权”按钮 // 3. 在步骤1打开的页面搜索“access_token”,找到该值,复制替换下面access_token的值 const access_token = 'aaa0f43c6d2c19d1a6cb7ba8830e0000'; ``` 目前默认获取最近30天创建所有的Issue,可根据需求修改。 ```typescript // 默认获取最近30天创建所有的Issue const issue_state: IssueState = 'all' const issue_days = 30; ``` ## 运行执行 代码根目录下运行`npm start`,数据结果.csv文件在根目录下。 ```bash npm start ``` 注意:在内网使用需要配置代理。 CMD: ```bash SET http_proxy=http://proxyhost:port ``` PowerShell: ```bash $:env:HTTP_PROXY=http://proxyhost:port ``` Bash: ```bash export http_proxy=http://proxyhost:port ```