feedback-autofixを更新し準備が失敗した場合も結果を報告するようにした - #38
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jUHQb3vwnKPNYL2Cm1mxw
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Limit details: You’ve used all 5 included reviews currently available. Your 16 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthrough自動修正ワークフローが Changes自動修正フィードバック処理
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing. うさぎが新しい流れを駆ける Comment |
概要
TrainLCD/feedback-autofixの固定先を406de875(feedback-autofix#1の時点)からc71e2b4(masterの先端)へ上げます。あわせて、reportの呼び出し条件にfailedを足します。406de875のprepareは、管理チケットの番号を特定したあとで落ちるとeligibleを空のまま返します。するとalways()を付けていてもreportは走らず、ジョブが赤くなるだけで管理チケットには何も残りません。ISSUES_REPO_TOKENの期限切れ、gh pr listの失敗、スクリプトのエラーがこれに当たります。TrainLCD/feedback-autofix#3でprepare側を直し、#4でmasterへ反映しました。呼び出し側の条件も揃えないと、この手当ては効きません。変更内容
.github/workflows/auto_fix_from_feedback.ymlだけです。Worker のコードには触れていません。固定先の SHA(2 か所)
reportも同じ SHA へ上げています。reportの呼び出し条件failedは#4で入ったprepareの新しい出力です。管理チケットの番号が分かったあとで準備が失敗するとtrueになります。このときeligibleはfalseになるので、npm ciと Claude Code Action は従来どおり飛ばされ、reportだけが走って「準備の途中で止まりました」を管理チケットへ書き、最後にジョブを落とします。外さないための理由をコメントとして残しました。
動きの変化
reportが結果を書くreportが止まった箇所を書いてから、ジョブを落とす設定の変更
バインディング・シークレット・キュー・KV・R2・Cron のいずれも変えていません。
テスト
npm run lint・npm test・npm run typecheckは実行していません。この PR は GitHub Actions のワークフローファイル 1 つだけを変えていて、src/にもtest/にもpackage.jsonにも触れていないためです。CI 側の判断に任せます。かわりに次の 2 つを確認しました。
.github/workflows/auto_fix_from_feedback.ymlをパースし、構文が壊れていないことc71e2b4abf4149b4b83e9a87cd185b1558ed8237を直接取得し、prepare/action.ymlにfailed出力と 4 つのcontinue-on-error: true、Summarize preparation(id: state)が入っていること関連Issue
🤖 Generated with Claude Code
https://claude.ai/code/session_018jUHQb3vwnKPNYL2Cm1mxw
Generated by Claude Code
Summary by CodeRabbit