mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-07-27 18:57:50 +00:00
feat: 自动化项目丰富 - 添加 CI/CD、实战案例和提示词
## 新增内容 ### GitHub Actions 工作流 - ci.yml: Markdown lint、链接检查、项目结构验证 - welcome.yml: 自动欢迎新贡献者 - labeler.yml: PR 自动标签 ### Issue 模板 - prompt_contribution.md: 提示词贡献模板 - documentation.md: 文档改进模板 - config.yml: 模板配置(含社区链接) ### 实战案例 - 02-blog-system.md: 个人博客系统(Next.js + MDX) - 04-cli-tool.md: 命令行工具(Python + Click) - 05-chrome-extension.md: Chrome 扩展(网页笔记助手) ### 编程提示词 - debug-expert.md: 调试专家提示词 - code-review.md: 代码审查提示词 - architecture-design.md: 架构设计提示词 ## 相关 Issues - #5 完善 Wiki 文档 - #6 添加更多实战案例 - #7 扩充提示词库 - #8 激活社区讨论
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
|
||||
jobs:
|
||||
lint-markdown:
|
||||
name: Lint Markdown
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install markdownlint-cli
|
||||
run: npm install -g markdownlint-cli
|
||||
- name: Run markdownlint
|
||||
run: markdownlint '**/*.md' --ignore node_modules --ignore libs/external || true
|
||||
|
||||
check-links:
|
||||
name: Check Links
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Link Checker
|
||||
uses: lycheeverse/lychee-action@v1
|
||||
with:
|
||||
args: --verbose --no-progress './**/*.md' --exclude-path libs/external
|
||||
fail: false
|
||||
|
||||
validate-structure:
|
||||
name: Validate Project Structure
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check required files
|
||||
run: |
|
||||
echo "Checking required files..."
|
||||
files=("README.md" "LICENSE" "CONTRIBUTING.md" "CODE_OF_CONDUCT.md" "AGENTS.md" "CLAUDE.md")
|
||||
for file in "${files[@]}"; do
|
||||
if [ -f "$file" ]; then
|
||||
echo "✓ $file exists"
|
||||
else
|
||||
echo "✗ $file missing"
|
||||
fi
|
||||
done
|
||||
- name: Check i18n structure
|
||||
run: |
|
||||
echo "Checking i18n directories..."
|
||||
for lang in zh en; do
|
||||
if [ -d "i18n/$lang" ]; then
|
||||
echo "✓ i18n/$lang exists"
|
||||
else
|
||||
echo "✗ i18n/$lang missing"
|
||||
fi
|
||||
done
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Auto Labeler
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/labeler@v5
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Welcome New Contributors
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
pull_request:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
welcome:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: |
|
||||
👋 感谢您提交第一个 Issue!
|
||||
|
||||
我们非常重视您的反馈。请确保:
|
||||
- 已阅读 [贡献指南](CONTRIBUTING.md)
|
||||
- 提供了足够的上下文信息
|
||||
- 如果是 Bug,请提供复现步骤
|
||||
|
||||
我们会尽快回复您!🚀
|
||||
|
||||
---
|
||||
Thanks for opening your first issue! We'll get back to you soon.
|
||||
pr-message: |
|
||||
🎉 感谢您提交第一个 Pull Request!
|
||||
|
||||
这是您对本项目的首次贡献,我们非常感激!请确保:
|
||||
- PR 描述清晰说明了改动内容
|
||||
- 代码符合项目规范
|
||||
- 已更新相关文档(如适用)
|
||||
|
||||
我们会尽快审核您的代码!💪
|
||||
|
||||
---
|
||||
Thanks for your first PR! We'll review it soon.
|
||||
Reference in New Issue
Block a user