chore: 更新代码统计 [2026-05-22 07:45]
📊 统计摘要:
- 总代码: 4868 行
- 总文件: 30 个
- 语言数: 3 种
- 徽章数: 6 个
🔗 触发提交: 1259495
🤖 由 Gitea Actions 自动生成
This commit is contained in:
parent
87365c7bfb
commit
ba21857f91
65
README.md
65
README.md
|
|
@ -1,29 +1,54 @@
|
|||
# 📊 代码统计徽章数据
|
||||
# 📊 代码统计详细报告
|
||||
|
||||
> 此分支由 GitHub Actions 自动生成和维护
|
||||
>
|
||||
> ⚠️ **请勿手动修改此分支的内容!**
|
||||
> 此分支由 Gitea Actions 自动生成和维护
|
||||
>
|
||||
> ⚠️ **请勿手动修改此分支的内容!**
|
||||
>
|
||||
> 🤖 由 Gitea Actions 自动生成
|
||||
>
|
||||
> 📅 更新时间: 2026-05-22 07:45:30 UTC
|
||||
|
||||
## 📁 目录结构
|
||||

|
||||

|
||||

|
||||
|
||||
```
|
||||
badges/
|
||||
├── total-lines.json # 总代码行数徽章
|
||||
├── total-files.json # 总文件数徽章
|
||||
├── {language}-lines.json # 各语言代码行数徽章
|
||||
├── {language}-files.json # 各语言文件数徽章
|
||||
└── README.md # 详细统计报告
|
||||
```
|
||||
## 📈 总体统计
|
||||
|
||||
## 🔄 更新机制
|
||||
| 统计项 | 数值 | 徽章 |
|
||||
|--------|------|------|
|
||||
| 💻 总代码行数 | **4868** 行 |  |
|
||||
| 📁 总文件数 | **30** 个 |  |
|
||||
| 🌐 语言种类 | **3** 种 |  |
|
||||
|
||||
- ✅ 每次 push 到主分支时自动更新
|
||||
- ✅ 可通过 workflow_dispatch 手动触发
|
||||
## 🌈 语言分布
|
||||
|
||||
## 📊 数据来源
|
||||
|
||||
所有统计数据基于主分支的最新代码自动生成。
|
||||
| 语言 | 代码行数 | 文件数 | 占比 | 徽章 |
|
||||
|------|----------|--------|------|------|
|
||||
| **Shell** | 1984 | 12 | 40.8% |  |
|
||||
| **YAML** | 1826 | 6 | 37.5% |  |
|
||||
| **Python** | 185 | 1 | 3.8% |  |
|
||||
|
||||
---
|
||||
|
||||
*🤖 由 GitHub Actions 自动维护*
|
||||
## ⚙️ 配置说明
|
||||
|
||||
### Token 配置
|
||||
|
||||
- 当前使用: **WORKFLOW**
|
||||
- 需要在 Settings -> Actions -> Secrets 中配置 `WORKFLOW`
|
||||
|
||||
### 排除规则
|
||||
|
||||
当前排除的目录:
|
||||
```
|
||||
node_modules,dist,build,out,target,vendor,.venv,venv,__pycache__,.git,.github
|
||||
```
|
||||
|
||||
### 阈值设置
|
||||
|
||||
- 最小代码行数阈值: **10** 行
|
||||
- 低于此阈值的语言不会生成徽章
|
||||
|
||||
---
|
||||
|
||||
*📊 统计仓库:`csh/actions-template`*
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
# 📊 代码统计详细报告
|
||||
|
||||
> 🤖 由 GitHub Actions 自动生成
|
||||
>
|
||||
> 📅 更新时间: 2026-05-22 03:30:25 UTC
|
||||
|
||||
## 📈 总体统计
|
||||
|
||||
| 统计项 | 数值 | 徽章 |
|
||||
|--------|------|------|
|
||||
| 💻 总代码行数 | **4591** 行 |  |
|
||||
| 📁 总文件数 | **28** 个 |  |
|
||||
| 🌐 语言种类 | **2** 种 | - |
|
||||
|
||||
## 🌈 语言分布
|
||||
|
||||
| 语言 | 代码行数 | 文件数 | 占比 | 徽章 |
|
||||
|------|----------|--------|------|------|
|
||||
| **YAML** | 1966 | 6 | 42.8% |  |
|
||||
| **Shell** | 1767 | 11 | 38.4% |  |
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ 配置说明
|
||||
|
||||
### Token 配置
|
||||
|
||||
- 当前使用: **WORKFLOW**
|
||||
- 需要在 Settings -> Secrets 中配置
|
||||
|
||||
### 排除规则
|
||||
|
||||
当前排除的目录:
|
||||
|
||||
|
||||
### 阈值设置
|
||||
|
||||
- 最小代码行数阈值: **10** 行
|
||||
- 低于此阈值的语言将不会生成徽章
|
||||
|
||||
### 徽章样式
|
||||
|
||||
- 当前样式: **flat**
|
||||
- 可选样式: flat, flat-square, plastic, for-the-badge, social
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
*📊 由 [GitHub Actions](https://git.mytsl.cn/csh/actions-template/actions) 自动生成和更新*
|
||||
|
||||
*🤖 生成时间: 2026-05-22 03:30:25 UTC*
|
||||
|
||||
</div>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="20" role="img" aria-label="语言: 3 种">
|
||||
<title>语言: 3 种</title>
|
||||
<rect width="48" height="20" fill="#555555" />
|
||||
<rect x="48" width="48" height="20" fill="#purple" />
|
||||
<rect width="96" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="24.0" y="14">语言</text>
|
||||
<text x="72.0" y="14">3 种</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 500 B |
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="124" height="20" role="img" aria-label="Python: 185 行">
|
||||
<title>Python: 185 行</title>
|
||||
<rect width="62" height="20" fill="#555555" />
|
||||
<rect x="62" width="62" height="20" fill="#3572A5" />
|
||||
<rect width="124" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="31.0" y="14">Python</text>
|
||||
<text x="93.0" y="14">185 行</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 508 B |
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "Shell 文件",
|
||||
"message": "11 个",
|
||||
"color": "4EAA25",
|
||||
"style": "flat"
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "Shell",
|
||||
"message": "1767 行",
|
||||
"color": "4EAA25",
|
||||
"style": "flat",
|
||||
"namedLogo": "gnubash"
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="124" height="20" role="img" aria-label="Shell: 1984 行">
|
||||
<title>Shell: 1984 行</title>
|
||||
<rect width="55" height="20" fill="#555555" />
|
||||
<rect x="55" width="69" height="20" fill="#4EAA25" />
|
||||
<rect width="124" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="27.5" y="14">Shell</text>
|
||||
<text x="89.5" y="14">1984 行</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 508 B |
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "文件",
|
||||
"message": "28 个",
|
||||
"color": "green",
|
||||
"style": "flat"
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="103" height="20" role="img" aria-label="文件: 30 个">
|
||||
<title>文件: 30 个</title>
|
||||
<rect width="48" height="20" fill="#555555" />
|
||||
<rect x="48" width="55" height="20" fill="#green" />
|
||||
<rect width="103" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="24.0" y="14">文件</text>
|
||||
<text x="75.5" y="14">30 个</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 504 B |
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "代码",
|
||||
"message": "4591 行",
|
||||
"color": "blue",
|
||||
"style": "flat"
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="117" height="20" role="img" aria-label="代码: 4868 行">
|
||||
<title>代码: 4868 行</title>
|
||||
<rect width="48" height="20" fill="#555555" />
|
||||
<rect x="48" width="69" height="20" fill="#blue" />
|
||||
<rect width="117" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="24.0" y="14">代码</text>
|
||||
<text x="82.5" y="14">4868 行</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 509 B |
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "YAML 文件",
|
||||
"message": "6 个",
|
||||
"color": "CB171E",
|
||||
"style": "flat"
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "YAML",
|
||||
"message": "1966 行",
|
||||
"color": "CB171E",
|
||||
"style": "flat"
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="117" height="20" role="img" aria-label="YAML: 1826 行">
|
||||
<title>YAML: 1826 行</title>
|
||||
<rect width="48" height="20" fill="#555555" />
|
||||
<rect x="48" width="69" height="20" fill="#CB171E" />
|
||||
<rect width="117" height="20" rx="3" fill="transparent" />
|
||||
<g fill="#ffffff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="24.0" y="14">YAML</text>
|
||||
<text x="82.5" y="14">1826 行</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 505 B |
Loading…
Reference in New Issue