Add switch-main command and improve pr and cr command workflows.#3211
Merged
Add switch-main command and improve pr and cr command workflows.#3211
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds a new switch-main command for managing local changes and branch cleanup, while improving the workflows for pr and cr commands. Additionally, it applies code formatting improvements across multiple C++ filter implementation files.
Changes:
- Added
switch-maincommand to transfer uncommitted local changes to an updated main branch and clean up merged branches - Enhanced
prcommand to automatically detect whether to create a new PR or append commits to an existing one - Optimized
crcommand cleanup logic to avoid printing messages when no legacy directories exist - Added
Test.mddocumentation for compilation and testing guidelines - Applied clang-format code formatting to multiple filter implementation files (line wrapping for 100-character limit)
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.codebuddy/commands/switch-main.md |
New command documentation for switching to main branch with stash management and merged branch cleanup |
.codebuddy/commands/pr.md |
Updated workflow to automatically distinguish between creating new PRs and appending to existing PRs |
.codebuddy/commands/cr.md |
Minor clarification to skip cleanup output when no legacy directories exist |
.codebuddy/rules/Test.md |
New documentation for project compilation, testing framework, and screenshot baseline management |
src/rendering/filters/utils/Filter3DFactory.h |
Code formatting: parameter wrapping for Apply3DEffects function declaration |
src/rendering/filters/glow/GlowMergeFilter.h |
Code formatting: parameter wrapping for GlowMergeRuntimeFilter constructor |
src/rendering/filters/glow/GlowFilter.cpp |
Code formatting: parameter and variable initialization wrapping |
src/rendering/filters/MosaicFilter.cpp |
Code formatting: variable initialization wrapping |
src/rendering/filters/HueSaturationFilter.cpp |
Code formatting: parameter wrapping for filter creation |
src/rendering/filters/DisplacementMapFilter.cpp |
Code formatting: function signature wrapping and removal of trailing blank line |
src/rendering/filters/BrightnessContrastFilter.cpp |
Code formatting: parameter wrapping for Apply function |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…only allow PR comments.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3211 +/- ##
==========================================
+ Coverage 76.97% 77.14% +0.17%
==========================================
Files 413 413
Lines 21908 21910 +2
Branches 6290 6291 +1
==========================================
+ Hits 16863 16903 +40
+ Misses 3817 3809 -8
+ Partials 1228 1198 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hparty
approved these changes
Jan 16, 2026
Hparty
approved these changes
Jan 16, 2026
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.
新增 switch-main 命令,用于将本地未提交的变更转移到更新后的 main 分支并清理已合并分支。
同时优化了 pr 和 cr 命令的工作流程,包括: