Skip to content

chore: Tavily API のトレンド検索最適化 - #426

Merged
genzouw merged 4 commits into
mainfrom
tavily-news-search-enhancement-2952367833624848236
Jul 20, 2026
Merged

genzouw merged 4 commits into
mainfrom
tavily-news-search-enhancement-2952367833624848236

Conversation

@genzouw

@genzouw genzouw commented Jul 20, 2026 •

Copy link
Copy Markdown
Owner

概要

Tavily Search API を使用するAIニュースダイジェストのワークフローにおいて、より関連性の高い最新の技術ニュースを取得するため、Tavily API パラメータに topic: 'news' および days: 7 を追加し最適化しました。

💡 What

  • .github/workflows/ai-tech-news-digest.yml の Tavily Search API 呼び出しに topic: 'news' と days: 7 パラメータを追加。
  • docs/security/ai-ci-tools.md に更新内容を追記。

🎯 Why

これまでは一般的なWeb検索 (topic: 'general') のままだったため、過去の古い記事や無関係なページが結果に含まれるリスクがありました。
AI開発フローやCI/CDの最新の情報を正確に収集・プロトタイプ検証するためには、取得期間を直近1週間に限定し、ニュースに特化したデータソースから取得することが効果的です。これにより自動生成されるレポートの品質向上が見込めます。

AIツール・CI/CD連携に関する手動セットアップ(必要な場合のみ)

  • GitHub Models アクセスのための GH_MODELS_TOKEN の Secret 登録
  • Tavily API アクセスのための TAVILY_API_KEY の Secret 登録

PR created automatically by Jules for task 2952367833624848236 started by @genzouw

Summary by CodeRabbit

  • 新機能

    • AI Tech News Digestが、ニュース分野の直近7日間の情報を取得するようになりました。
  • 改善

    • pre-commitチェックの実行とキャッシュ処理を見直し、CI上での安定性を向上しました。
  • ドキュメント

    • AI Tech News Digestの設定方法と必要な認証情報について追記しました。

Co-authored-by: genzouw <29957+genzouw@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

本プルリクエストは、AIニュースダイジェスト生成ワークフローにおける情報収集の品質向上を目的としています。Tavily Search API の検索条件をニュースに特化させ、取得期間を直近1週間に限定することで、より関連性の高い最新の技術情報を効率的に収集できるように最適化を行いました。

Highlights

  • Tavily API パラメータの最適化: AIニュースダイジェストの精度向上のため、Tavily Search API の呼び出しに topic: 'news' および days: 7 パラメータを追加しました。
  • ドキュメントの更新: 技術ドキュメント docs/security/ai-ci-tools.md に、今回の設定変更に関する詳細と最新のニュース取得仕様を追記しました。
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/ai-tech-news-digest.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@genzouw, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3bee964a-7b8c-41a7-a4f1-4b611d2566ea

📥 Commits

Reviewing files that changed from the base of the PR and between 4929265 and b4a34ea.

📒 Files selected for processing (1)
  • .github/workflows/pre-commit.yml
📝 Walkthrough

Walkthrough

AI Tech News DigestのTavily検索条件をニュース・直近7日間に限定し、必要なSecretsを文書化しました。pre-commitは専用actionからPython上での直接実行へ変更されています。

Changes

AIニュースダイジェスト設定

Layer / File(s) Summary
ニュース検索条件と設定ドキュメント
.github/workflows/ai-tech-news-digest.yml, docs/security/ai-ci-tools.md
Tavily検索にtopic: 'news'とdays: 7を追加し、GH_MODELS_TOKENとTAVILY_API_KEYを必要なSecretsとして記載しています。

pre-commit CI実行方式

Layer / File(s) Summary
pre-commit実行ステップの置換
.github/workflows/pre-commit.yml
専用actionを削除し、pre-commitのpipインストール、キャッシュ、全ファイル実行のステップに置き換えています。

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • genzouw/monopo#238: 同じpre-commitワークフローの実行方法を調整しています。
  • genzouw/monopo#400: pre-commit実行対象となるTruffleHogフックを追加しています。
  • genzouw/monopo#410: Tavily連携とTAVILY_API_KEYのドキュメント更新に関連しています。
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Tavily検索の絞り込み強化という主題を捉えており、変更内容と概ね一致しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tavily-news-search-enhancement-2952367833624848236

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.

@github-actions github-actions Bot added github-actions Pull requests that update GitHub Actions code docs labels Jul 20, 2026
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

このプルリクエストでは、docs/security/ai-ci-tools.md に「AI Tech News Digest の設定」に関する更新内容が追加されました。レビューでは、ドキュメントの各セクションを自己完結させ、他セクションへの依存を避けるため、GitHub Secretsの設定手順(設定場所、各シークレットの説明、および必要なリポジトリ管理者権限)を明記するよう改善が提案されています。

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/security/ai-ci-tools.md Outdated
genzouw added 2 commits July 21, 2026 07:15
「更新: AI Tech News Digest の設定」セクションで、他セクションへの参照に依存せず、
設定場所(Settings > Secrets and variables > Actions)、必要な権限(リポジトリ管理者権限)、
各シークレット(GH_MODELS_TOKEN, TAVILY_API_KEY)の説明を明記するように修正。

レビューコメント: #426 (comment)
レビュアー: gemini-code-assist
優先度: medium
リポジトリのActions設定(allowed_actions: selected)はGitHub公式アクションと
Verified creatorのアクションのみを許可しており、pre-commit/action(未認証の
サードパーティ製)が許可リストに含まれないためワークフロー起動自体が拒否され
startup_failureとなっていた。pre-commit/actionへの依存をやめ、GitHub公式の
actions/checkout・actions/setup-python・actions/cacheのみでpre-commit実行を
再現するよう変更。
@genzouw
genzouw enabled auto-merge (squash) July 20, 2026 22:24

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/pre-commit.yml:
- Around line 27-33: Pin the pre-commit dependency in the “Install pre-commit”
step to an explicit version, preferably with a package hash, instead of
installing the latest release. Update the “Cache pre-commit environments” key
from the generic pre-commit-3 label to match the pinned version.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 6dce032f-f3c3-4ba8-8d50-77e5a1609e94

📥 Commits

Reviewing files that changed from the base of the PR and between a14600d and 4929265.

📒 Files selected for processing (3)
  • .github/workflows/ai-tech-news-digest.yml
  • .github/workflows/pre-commit.yml
  • docs/security/ai-ci-tools.md

Comment thread .github/workflows/pre-commit.yml Outdated
python -m pip install pre-commit が常に最新版をインストールしていたため、
上流のpre-commitリリースによりCIの結果が予告なく変動するリスクがあった。
pre-commit==4.6.0 に明示固定し、キャッシュキーもそのバージョンに合わせて更新した。

レビューコメント: #426 (comment)
レビュアー: coderabbitai
優先度: high
@genzouw
genzouw merged commit 52234df into main Jul 20, 2026
31 of 33 checks passed
@genzouw
genzouw deleted the tavily-news-search-enhancement-2952367833624848236 branch July 20, 2026 22:36
genzouw added a commit that referenced this pull request Jul 20, 2026
main の #426 で ai-tech-news-digest.yml のシークレット行が変化し、
マージ後にベースラインのハッシュと不一致となり detect-secrets が
失敗していたため、ベースラインを再生成してハッシュを更新。

Claude-Session: https://claude.ai/code/session_01Hw9QZt5X5tfYL7mVUkgJ5b
genzouw added a commit that referenced this pull request Jul 20, 2026
main マージで取り込んだ Tavily API のトレンド検索最適化 (#426) により
.github/workflows/ai-tech-news-digest.yml の api_key 行の内容が変化し、
detect-secrets のハッシュ値が .secrets.baseline と不一致になっていた。

detect-secrets scan --baseline .secrets.baseline で baseline を再生成し、
既知の誤検知エントリのハッシュ値を最新化した。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs github-actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant