@@ -248,52 +248,4 @@ jobs:
248248 echo "✅ Auto-merge enabled! PR will merge automatically when:"
249249 echo " - All required checks pass (test, lint, build)"
250250 echo " - All conversations are resolved"
251- echo " - Branch is up to date with main"
252-
253- require-claude-for-main :
254- name : Require Claude Review for Main
255- runs-on : ubuntu-latest
256- if : github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main'
257- steps :
258- - name : Check for Claude review
259- uses : actions/github-script@v7
260- with :
261- script : |
262- const pr_number = context.payload.pull_request.number;
263-
264- // Check if Claude review has been completed by looking for:
265- // 1. Comments with automated checks from Claude review workflow
266- // 2. Actual PR reviews (APPROVED or COMMENT)
267- const comments = await github.rest.issues.listComments({
268- owner: context.repo.owner,
269- repo: context.repo.repo,
270- issue_number: pr_number
271- });
272-
273- const reviews = await github.rest.pulls.listReviews({
274- owner: context.repo.owner,
275- repo: context.repo.repo,
276- pull_number: pr_number
277- });
278-
279- // Check for automated checks comment (posted by Claude Auto Review job)
280- const has_automated_checks = comments.data.some(comment =>
281- comment.body.includes('🔍 Automated Checks') &&
282- comment.body.includes('Claude is reviewing')
283- );
284-
285- // Check for actual review with Claude AI approval/feedback
286- const has_review = reviews.data.some(review =>
287- review.body && (
288- review.body.includes('Claude AI approved') ||
289- review.body.includes('Claude AI review')
290- )
291- );
292-
293- const has_claude_review = has_automated_checks && has_review;
294-
295- if (!has_claude_review) {
296- core.setFailed('⚠️ Claude review required for merging to main. Comment "/claude review" to trigger.');
297- } else {
298- console.log('✅ Claude review found');
299- }
251+ echo " - Branch is up to date with main"
0 commit comments