Skip to content

GOOGLE_SA_KEY を GOOGLE_PLAY_SA_KEY にリネームし put-secrets.ps1 を削除 - #6298

Merged
TinyKitten merged 2 commits into
devfrom
chore/rename-google-play-sa-key
Jun 21, 2026
Merged

TinyKitten merged 2 commits into
devfrom
chore/rename-google-play-sa-key

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 21, 2026 •

Copy link
Copy Markdown
Member

概要

Google Play レビュー取得用サービスアカウント鍵のシークレット名を GOOGLE_SA_KEY から GOOGLE_PLAY_SA_KEY に変更し、用途を明確化。併せて未使用の PowerShell 版シークレット投入スクリプトを削除。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • GOOGLE_SA_KEY を GOOGLE_PLAY_SA_KEY にリネーム(型定義・Worker コード・スクリプト・設定ファイル・ドキュメント)
  • functions/scripts/put-secrets.ps1 を削除

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

リリースノート

  • Chores

    • Google Play 向け認証情報のキー名を GOOGLE_SA_KEY から GOOGLE_PLAY_SA_KEY に統一しました。
    • シークレット一括投入の手順を更新し、鍵ファイルの読み取りに失敗した場合は中断するよう改善しました。
    • PowerShell 用の一括投入スクリプトを削除しました。
    • Google Play 関連の定期処理は GOOGLE_PLAY_SA_KEY が未設定ならスキップします。
  • Documentation

    • 秘密情報の設定手順・チェックリスト等の案内を GOOGLE_PLAY_SA_KEY 対応に更新しました。

@TinyKitten TinyKitten self-assigned this Jun 21, 2026
@coderabbitai

coderabbitai Bot commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b6a517a2-d675-423e-b8ed-45aa81aef2e8

📥 Commits

Reviewing files that changed from the base of the PR and between e753d1c and 08a2a55.

📒 Files selected for processing (1)
  • docs/cloudflare-migration-phase3-checklist.md

📝 Walkthrough

Walkthrough

Google Play サービスアカウント鍵の環境変数名を GOOGLE_SA_KEY から GOOGLE_PLAY_SA_KEY へ一括リネーム。型定義・ランタイムコード・ビルドスクリプト・シェルスクリプト・設定ファイル・ドキュメント全体で対応する名前を統一。

Changes

GOOGLE_PLAY_SA_KEY リネーム

Layer / File(s) Summary
型定義とランタイム利用箇所
functions/src/types.ts, functions/src/scheduled/googlePlayReviews.ts
Env インターフェースのプロパティ名を GOOGLE_PLAY_SA_KEY へ変更し、runGooglePlayReviewJob の認証チェックおよび getGoogleAccessToken への引き渡しも同キー名に更新。
スクリプト・設定・ドキュメント
functions/scripts/build-secrets-json.mjs, functions/scripts/put-secrets.sh, functions/.secrets.env.example, functions/wrangler.jsonc, functions/README.md, docs/cloudflare-migration-phase3-checklist.md
build-secrets-json.mjs の SECRET_NAMES とファイル読取ロジック、put-secrets.sh のコメント・エラーメッセージ、.secrets.env.example のサンプル、wrangler.jsonc の secrets コメント、README.md と Cloudflare マイグレーション手順のドキュメントをすべて GOOGLE_PLAY_SA_KEY へ更新。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 キーの名前をそろえたのさ
GOOGLE_SA_KEY よ、さようなら
GOOGLE_PLAY_SA_KEY に統一して
スクリプトもドキュメントも矛盾なし
ホップ、ステップ、ジャンプで完了! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PRのタイトルは変更内容を正確に反映しており、GOOGLE_SA_KEY から GOOGLE_PLAY_SA_KEY へのリネームと put-secrets.ps1 の削除という主要な変更を簡潔かつ明確に要約しています。
Description check ✅ Passed PR説明は必須セクションを含み、概要・変更の種類(その他を選択)・変更内容・テストチェックリストを記載しており、テンプレート構造に沿って適切に記述されています。
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/rename-google-play-sa-key

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

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

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 `@functions/README.md`:
- Line 64: Update the operational documentation file
docs/cloudflare-migration-phase3-checklist.md to replace all references to the
old secret name GOOGLE_SA_KEY with the correct secret name GOOGLE_PLAY_SA_KEY.
This is necessary because the code in
functions/src/scheduled/googlePlayReviews.ts expects GOOGLE_PLAY_SA_KEY (as
referenced in the environment variable check), and the inconsistency between the
documentation and the actual secret name will cause the Google Play reviews job
to be skipped when the documentation is followed.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0cb851c0-550c-494b-8495-1c7a3b2a1c86

📥 Commits

Reviewing files that changed from the base of the PR and between eae5973 and e753d1c.

📒 Files selected for processing (8)
  • functions/.secrets.env.example
  • functions/README.md
  • functions/scripts/build-secrets-json.mjs
  • functions/scripts/put-secrets.ps1
  • functions/scripts/put-secrets.sh
  • functions/src/scheduled/googlePlayReviews.ts
  • functions/src/types.ts
  • functions/wrangler.jsonc
💤 Files with no reviewable changes (1)
  • functions/scripts/put-secrets.ps1

Comment thread functions/README.md Resolved
@coderabbitai

coderabbitai Bot commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • docs/cloudflare-migration-phase3-checklist.md

Commit: 08a2a5530f54ae0301e9aa4886983659ea2d4818

The changes have been pushed to the chore/rename-google-play-sa-key branch.

Time taken: 4m 32s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <[email protected]>
@TinyKitten
TinyKitten merged commit 79f5092 into dev Jun 21, 2026
3 checks passed
@TinyKitten
TinyKitten deleted the chore/rename-google-play-sa-key branch June 21, 2026 08:57
@TinyKitten TinyKitten mentioned this pull request Jun 21, 2026
6 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant