Skip to content

Add switch-main command and improve pr and cr command workflows.#3211

Merged
Hparty merged 4 commits intomainfrom
feature/domchen_codebuddy_commands
Jan 16, 2026
Merged

Add switch-main command and improve pr and cr command workflows.#3211
Hparty merged 4 commits intomainfrom
feature/domchen_codebuddy_commands

Conversation

@domchen
Copy link
Collaborator

@domchen domchen commented Jan 16, 2026

新增 switch-main 命令,用于将本地未提交的变更转移到更新后的 main 分支并清理已合并分支。

同时优化了 pr 和 cr 命令的工作流程,包括:

  • pr 命令支持自动识别新建或追加提交模式
  • cr 命令清理逻辑优化,无遗留目录时不打印信息

Copilot AI review requested due to automatic review settings January 16, 2026 06:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-main command to transfer uncommitted local changes to an updated main branch and clean up merged branches
  • Enhanced pr command to automatically detect whether to create a new PR or append commits to an existing one
  • Optimized cr command cleanup logic to avoid printing messages when no legacy directories exist
  • Added Test.md documentation 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.

@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.14%. Comparing base (89f25bc) to head (37fb48f).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Hparty Hparty merged commit 5fe4e6c into main Jan 16, 2026
9 checks passed
@Hparty Hparty deleted the feature/domchen_codebuddy_commands branch January 16, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants