ci: fix PR number resolution in comment workflows#1408
Merged
TinyKitten merged 1 commit intodevfrom Mar 5, 2026
Merged
Conversation
github.event.workflow_run.pull_requests[0].number can be empty when GitHub cannot resolve the PR association (e.g., head and base branch share the same name). This caused the comment step to fail on PR #1405. Use event context when available, fall back to artifact pr_number file. All downstream steps reference steps.meta.outputs.pr_number. https://claude.ai/code/session_01Lr3k5y8UYcH26a8hndo8ek
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 Walkthroughウォークスルー2つのGitHub Actionsワークフローファイルを更新し、PRの番号取得ロジックを強化。ワークフロー実行コンテキストから番号を取得し、失敗時は保存されたアーティファクトにフォールバック。その後、各ステップが出力された番号を参照するように変更。 変更
コード レビュー工数の見積もり🎯 2 (Simple) | ⏱️ ~8 minutes 関連する可能性のあるプルリクエスト
推奨ラベル
ポエム
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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.
Summary
github.event.workflow_run.pull_requests[0].numberが空の場合にアーティファクトのpr_numberにフォールバックするよう修正pull_requests配列が空になり、コメント投稿が失敗していた問題を解消steps.meta.outputs.pr_numberに統一Test plan
https://claude.ai/code/session_01Lr3k5y8UYcH26a8hndo8ek
Summary by CodeRabbit
リリースノート