Skip to content

feature/prspec ruby - #4

Merged
abechan1 merged 1 commit into
mainfrom
feature/prspec-ruby
Jun 19, 2026
Merged

feature/prspec ruby#4
abechan1 merged 1 commit into
mainfrom
feature/prspec-ruby

Conversation

@abechan1

@abechan1 abechan1 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • feat: init gem
  • docs: fill in gemspec metadata and README placeholders for prspec
  • ci: add GitHub Actions workflows for Ruby CI, changelog, and gem release
  • test: remove placeholder failing spec from gem template
  • chore: add pre-commit config with betterleaks hook
  • chore: ignore Gemfile.lock
  • fix: skip CHANGELOG generation on first release, bump patch version

Summary by CodeRabbit

リリースノート

  • Chores
    • バージョンを 0.1.0 から 0.1.1 にアップデート
    • Ruby gem のリリースワークフローを改善し、タグの有無判定を明示的に実装
    • クローン時の履歴参照範囲を拡張して、タグ検出の信頼性を向上

requarks/changelog-action errors when there's no previous tag to diff
against, which broke the gem-push workflow on the initial v0.1.0
release. Skip changelog generation/commit when only one tag exists,
matching the pattern already used in changelog.yml.
@abechan1
abechan1 enabled auto-merge June 19, 2026 10:53
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f9d9d7cb-55a3-49a6-9ae4-5cc444a54ae0

📥 Commits

Reviewing files that changed from the base of the PR and between 23dd27f and f1a4b71.

📒 Files selected for processing (2)
  • .github/workflows/gem-push.yml
  • lib/prspec/ruby/version.rb

📝 Walkthrough

Walkthrough

gem-push CI ワークフローに fetch-depth: 0 と過去タグ存在チェックステップ(previous_tag)を追加し、CHANGELOG 生成とコミット処理の実行条件を切り替えた。また Prspec::Ruby::VERSION0.1.1 へ更新した。

Changes

リリース CI ガードとバージョン更新

Layer / File(s) Summary
タグ存在チェックと CHANGELOG 条件制御
.github/workflows/gem-push.yml
actions/checkoutfetch-depth: 0 を追加。git tag --list 'v*' で過去タグ有無を判定する previous_tag ステップを新設し、CHANGELOG 生成・コミット両ステップの if 条件を steps.previous_tag.outputs.exists == 'true' へ切り替えた。
バージョン更新
lib/prspec/ruby/version.rb
Prspec::Ruby::VERSION"0.1.0" から "0.1.1" へ変更した。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐇 過去のタグを探す耳、
ぴくりと動いてチェック済み。
履歴ぜんぶ持ってきて、
0.1.1 へぴょんとジャンプ!
CHANGELOGも安心、うさぎ満足 🌿

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/prspec-ruby

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.

@abechan1
abechan1 merged commit 9297fd2 into main Jun 19, 2026
1 of 2 checks passed
@abechan1
abechan1 deleted the feature/prspec-ruby branch June 19, 2026 10:54
@coderabbitai coderabbitai Bot mentioned this pull request Jun 20, 2026
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