Skip to content

refactor(auto-updater): simplify policy config to environment variable - #31

Merged
baleen37 merged 1 commit into
mainfrom
wip/auto-updater-fixes
Jan 23, 2026
Merged

refactor(auto-updater): simplify policy config to environment variable#31
baleen37 merged 1 commit into
mainfrom
wip/auto-updater-fixes

Conversation

@baleen37

@baleen37 baleen37 commented Jan 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • config.json 기반 정책 설정을 환경 변수 방식으로 간소화
  • 기본 정책을 patch에서 major로 변경
  • README에서 불필요한 설정 파일 설명 제거 및 간소화
  • update-checker.sh에서 get_update_policy() 함수 제거

Test plan

  • 로컬에서 스크립트 정상 동작 확인
  • BATS 테스트 통과

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Summary by CodeRabbit

  • New Features

    • Auto Updater plugin simplified with improved update detection logic.
  • Chores

    • Updated plugin version to 2.1.0.
    • Updated documentation with translated content and restructured information.

✏️ Tip: You can customize this high-level summary in your review settings.

- Remove config.json based policy configuration
- Use AUTO_UPDATE_POLICY environment variable instead
- Default policy changed from 'patch' to 'major'
- Update README with simplified configuration instructions
- Remove get_update_policy() function from update-checker.sh

Co-Authored-By: Claude <noreply@anthropic.com>
@baleen37
baleen37 enabled auto-merge (squash) January 23, 2026 03:38
@coderabbitai

coderabbitai Bot commented Jan 23, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The PR bumps the auto-updater plugin version to 2.1.0, rewrites the README from comprehensive English documentation to a minimal Korean overview, and simplifies the update-checker.sh script by removing the policy-based update decision system in favor of direct version comparison.

Changes

Cohort / File(s) Summary
Plugin manifest version bump
plugins/auto-updater/.claude-plugin/plugin.json
Version field updated from "2.0.0" to "2.1.0"
Documentation rewrite
plugins/auto-updater/README.md
README converted from detailed English feature documentation to minimal Korean overview; removed sections on operation modes, installation/update workflows, configuration, policy options, commands, examples, troubleshooting, and architecture; retained only brief operational notes and new log viewing section
Update logic refactoring
plugins/auto-updater/scripts/update-checker.sh
Removed CONFIG_FILE variable, DEFAULT_POLICY variable, and get_update_policy() function; simplified update decision logic to use direct version comparison (version_lt) instead of policy-based evaluation; added early-exit guard for empty MARKETPLACE_PLUGINS; preserved marketplace fetch/update flow but consolidated install/update paths

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

released

Poem

🐰 Version hops from two to one-point-one,
Policies fall away like dust in the sun,
Korean words now guide the way,
Simpler paths for every day,
Update checker, sleek and lean! ✨

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@baleen37
baleen37 merged commit a7f3680 into main Jan 23, 2026
2 of 3 checks passed
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.

1 participant