Repository navigation
XCL-193 リリース PR の要約を、agent-dev-kit の再利用ワークフローにする - #5
Merged
Merged
Conversation
…-summary # Conflicts: # README.md # docs/SETUP.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
develop → main のリリース PR の本文に確認事項の要約を書く仕組みを、どのリポジトリからも呼べる再利用ワークフローにする。汎用の部分はそのまま使い、リポジトリに固有の部分は呼ぶ側の設定ファイル (
.github/release-summary.json) で渡す。変更内容
scripts/ci/release-summary.mjs: 含まれる Issue、コミットとファイルの数、ワークフローと依存の変更を出す。設定があれば、Issue のキー、マイグレーション (追加・既存の変更・危ない SQL)、認証・RLS のパス、設定ファイル、最後の確認の項目と節を足す。設定は型を確かめ、知らないキーは失敗にするscripts/ci/update-summary-section.mjs: PR 本文のマーカーの間だけを替える (なければ末尾に足す)*.test.mjs)。一時の git リポジトリでの集計と CLI のテストも含む.github/workflows/agent-release-summary.yml(workflow_call): main 宛て・head が develop・fork でない PR で動く。スクリプトはjob.workflow_repository・job.workflow_shaから取る。inputconfig-pathで設定のパスを変えられるtemplates/.github/release-summary.json: 設定の例 (Supabase を使う場合)docs/SETUP.mdに設定ファイルの形、README.mdの表に 1 行受け入れ条件
.github/workflows/agent-release-summary.yml(workflow_call) がある。呼ぶ側のpull_request(main 宛て、head が develop、fork を除く) で動き、PR の本文のマーカーの間だけを更新するjob.workflow_repository・job.workflow_sha。agent-claude-review.ymlと同じやり方)docs/SETUP.mdに書いてあり、例のファイル (templates/.github/release-summary.json) がある。例は汎用 (Supabase を使う場合の例として書くのはよい)README.mdの表に足す動作確認
node --test 'scripts/ci/*.test.mjs' 'ops/linear-janitor/*.test.mjs'(51 件すべて成功)docker run --rm -v "$PWD:/repo" -w /repo rhysd/actionlint:1.7.12 -ignore 'workflow_(repository|sha)'(指摘なし)リスクの確認
.env*、キー、トークン) を含めていない人が確認すること
補足
[abc-12]かABC-12だけにした (utf-8のような語を拾わないため)checks・sectionsで足す形にした