Skip to content

全 PR の提出前にローカルレビューを必須にします - #45

Merged
TinyKitten merged 2 commits into
mainfrom
chore/require-local-agent-review
Dec 3, 2026
Merged

TinyKitten merged 2 commits into
mainfrom
chore/require-local-agent-review

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

概要

すべての PR の提出前に、コーディングエージェントがローカルで全差分をレビューする手順を追加します。PR 本文の記録を GitHub Actions で検証します。マージを止めるには、このチェックをリポジトリ設定で必須にする必要があります。

検証

ローカルで提出差分を確認し、本文と最新コミット・ベースブランチの照合、すべての提出者への適用、既存の手順との整合をレビューしました。jq に正常・CRLF・記録の欠落・古い SHA・ベース違い・空のエージェント名・重複・本文なしの8ケースを入力し、期待どおりの結果を確認しました。

Local-Agent-Review: PASS 785ae36 main by Codex

アプリケーションや画面には変更がないため、そのビルド・テスト・画面検証は未実施です。

関連Issue

Refs TrainLCD/MobileApp#7618

Summary by CodeRabbit

  • 新機能
    • プルリクエストの作成・更新などを契機に、自動チェックが実行されるようになりました。本文に所定の形式の Local-Agent-Review 行が1行ない場合や、必要な情報が不足している場合はチェックが失敗します。
  • ドキュメント
    • 提出前の差分レビューと指摘への対応、再レビュー、確認内容の記載についての手順を追加しました。

@TinyKitten TinyKitten self-assigned this Dec 3, 2026
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

ローカルでのPR差分レビュー手順を追加しました。また、指定されたPRイベントで実行し、PR本文の Local-Agent-Review: 行を検証するワークフローを追加しました。

Changes: ローカルレビュー

Layer / File(s) Summary
ローカルレビュー手順
AGENTS.md
ベースブランチとの差分レビュー、指摘への対応、push後またはベースブランチ変更後の再レビューを定めました。PR本文に確認内容と指定形式のレビュー記録を記載する手順も追加しました。
PR本文の形式検証
.github/workflows/local-agent-review.yml
PRの作成、再開、更新、編集、またはレビュー可能になったときにワークフローを実行します。PR番号ごとに実行をまとめ、権限を空に設定します。本文に指定形式の Local-Agent-Review: 行がちょうど1つない場合は、エラーを出して失敗します。

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

Merge Risk: Minimal · up to 785ae

This change adds a documented local review procedure and a PR body format check. It does not touch application behavior, and no concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed タイトル「全 PR の提出前にローカルレビューを必須にします」は、変更の主目的を示しています。AGENTS.md に提出前のローカル差分レビュー手順を追加し、.github/workflows/local-agent-review.yml で PR 本文の Local-Agent-Review 記録を検証する変更と一致します。
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)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

うさぎは差分を、静かに読む
指摘を直して、もう一度見る
SHAとブランチ、本文に記す
ワークフローが形式を確かめる
月明かりの下、PRが進む

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: e1afc52a-fce0-4246-a0ce-dce4d6021a9c
Commits

Reviewing files that changed from the base of the PR and between d5f0fc6 and 785ae36.

Files selected for processing: 2

  • .github/workflows/local-agent-review.yml
  • AGENTS.md

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@TinyKitten
TinyKitten merged commit d903f62 into main Dec 3, 2026
4 checks passed
@TinyKitten
TinyKitten deleted the chore/require-local-agent-review branch December 3, 2026 03:34
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