ci: introduce GitFlow workflow and quality gates#12
Merged
Conversation
- Add ci.yml: PR-stage build checks for frontend and backend - Refactor auto-release.yml: trigger on tag push instead of main push, remove auto-bump, add VERSION/tag consistency check - Create develop branch as integration branch - Add Ruff (backend) and ESLint + Prettier (frontend) configs - Add pre-commit hooks for local quality checks - Add CODEOWNERS, CHANGELOG, and RELEASE_CHECKLIST - Update CONTRIBUTING.md and PR template with GitFlow guidelines - Add backend/requirements-dev.txt and backend/pyproject.toml Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
本次 PR 引入简化版 GitFlow 工作流和代码质量门禁,规范化开发和发布流程。
CI / 工作流
ci.yml:PR 阶段自动检查 frontend 构建和 backend 语法,防止坏代码合入 main/develop。auto-release.yml:push to main改为push tag v*.*.*+workflow_dispatch分支模型
develop分支作为日常开发集成分支develop切feat/*,PR 目标选developdevelop切release/vX.Y.Z,PR 到main,合并后手动打 tag 触发自动打包代码质量工具
backend/pyproject.tomlfrontend/eslint.config.js和.prettierrc.pre-commit-config.yaml,本地提交前自动格式化协作规范
CODEOWNERS:代码所有者声明PULL_REQUEST_TEMPLATE.md:新增版本类型、Commit 类型选项CONTRIBUTING.md:更新为 GitFlow 流程和 Conventional Commits 规范CHANGELOG.md+RELEASE_CHECKLIST.md:发版可追溯测试方式
v1.0.11)可验证 auto-release.yml 是否正常打包检查清单