Skip to content

fix: GitHub Events API破壊的変更に対応しSearch APIへ移行#1307

Merged
swfz merged 4 commits intomainfrom
fix/kusa-search-api-migration
Mar 26, 2026
Merged

fix: GitHub Events API破壊的変更に対応しSearch APIへ移行#1307
swfz merged 4 commits intomainfrom
fix/kusa-search-api-migration

Conversation

@swfz
Copy link
Copy Markdown
Owner

@swfz swfz commented Mar 26, 2026

概要

kusaツールのGitHub contribution表示(PR・Commit・Issue)がSearch APIから取得されるよう移行。

Why

GitHub Events APIが2025年10月にペイロードを簡素化する破壊的変更を適用し、以下のフィールドが削除された:

  • PushEventcommits配列(コミットSHA、メッセージ、author)
  • PullRequestEventpull_request.title, html_url, state, merged, additions, deletions

これにより、kusaツールのGroup By Repo/Simple ListビューでPRタイトルやコミットメッセージが表示されなくなっていた。

参考: https://github.blog/changelog/2025-08-08-upcoming-changes-to-github-events-api-payloads/

How

  • PR・Commit・IssueのデータをGitHub Search APIから取得するよう変更
  • Events APIはStar/Fork/Create/Delete/Commentsの取得に引き続き使用(ハイブリッド方式)
  • Search APIデータに対しても依存関係更新(Renovate/Dependabot)フィルタが機能するよう対応
  • additions/deletionsはSearch APIでは取得できないため、値が0の場合は非表示に

確認観点

  • pnpm build 成功
  • pnpm lint エラーなし
  • pnpm test:ci 全78テスト通過
  • Search APIのfetch関数のユニットテスト追加
  • ContributionsByRepo/ContributionsSimpleの新props構造に対応したテスト更新
  • filterDependencyUpdateSearchDataのテスト追加(Renovate/Dependabot各パターン)
  • Storybookの型エラー解消

🤖 Generated with Claude Code

swfz and others added 2 commits March 26, 2026 20:13
GitHub Events APIが2025年10月にペイロードを簡素化し、PushEventのcommitsやPullRequestEventのtitle等が削除されたため、 PR・Commit・IssueのデータをSearch APIから取得するよう移行。 Events APIはStar/Fork/Create/Delete/Commentsの取得に引き続き使用する。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Search API移行により、excludeチェックボックスがPR/CommitのRenovate/Dependabotフィルタとして 機能しなくなっていたため、Search APIデータ用のフィルタ関数を追加 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tools-oswo Ready Ready Preview, Comment Mar 26, 2026 3:57pm
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@swfz swfz merged commit 1746fd1 into main Mar 26, 2026
8 checks passed
@swfz swfz deleted the fix/kusa-search-api-migration branch March 26, 2026 16:07
@swfz swfz self-assigned this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant