Refactor config structure and add CI workflow configuration#23
Refactor config structure and add CI workflow configuration#23FrozenLemonTee wants to merge 6 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR moves configuration files (.clang-format, .clang-tidy, .editorconfig, .gitattributes) into a config/ directory, adds a new GitHub Actions CI workflow for clang-format checking/auto-fixing, and updates documentation references to reflect the new file paths.
Changes:
- Moved
.clang-format,.clang-tidy,.editorconfig, and.gitattributesintoconfig/and added a new CI workflow atconfig/.github/workflows/code-format.yml. - Updated documentation links in
README.md,clang-format.md, andclang-tidy.mdto point to the newconfig/paths. - Added a new "CI/CD 工作流配置" section (§4.2) in
README.mddescribing the workflow capabilities.
Reviewed changes
Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| config/.github/workflows/code-format.yml | New CI workflow for clang-format check and auto-fix |
| config/.gitattributes | Git attributes config moved into config/ |
| config/.editorconfig | EditorConfig moved into config/ |
| config/.clang-tidy | Clang-tidy config moved into config/ |
| config/.clang-format | Clang-format config moved into config/ |
| clang-tidy.md | Updated reference path to .clang-tidy |
| clang-format.md | Updated reference path to .clang-format |
| README.md | Updated links to config files and added CI/CD section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR moves configuration files (.clang-format, .clang-tidy, .editorconfig, .gitattributes) into a config/ subdirectory, adds a new GitHub Actions CI workflow for automated clang-format checking/fixing, and updates documentation references accordingly.
Changes:
- Adds new config files (
.clang-format,.clang-tidy,.editorconfig,.gitattributes) underconfig/directory with comprehensive formatting, linting, editor, and Git settings. - Adds a GitHub Actions workflow (
code-format.yml) that checks formatting on PRs/pushes and optionally auto-fixes viaworkflow_dispatch. - Updates
README.md,clang-format.md, andclang-tidy.mdto reference the newconfig/file paths and adds CI/CD documentation.
Reviewed changes
Copilot reviewed 4 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| config/.github/workflows/code-format.yml | New CI workflow for clang-format check and auto-fix |
| config/.gitattributes | Git line-ending and binary file configuration |
| config/.editorconfig | Editor behavior configuration for multiple file types |
| config/.clang-tidy | Static analysis rules for clang-tidy |
| config/.clang-format | C++ code formatting rules |
| clang-tidy.md | Updated config file path reference |
| clang-format.md | Updated config file path reference |
| README.md | Updated links to config files and added CI/CD documentation section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
No description provided.