From 1b4286fd90584ca56a657f125db6b4e036a33b63 Mon Sep 17 00:00:00 2001 From: Robb Lee Date: Tue, 4 Nov 2025 15:04:00 +0900 Subject: [PATCH] test: add workflow test file for PR review validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test file to validate GitHub Actions PR review workflow: - Draft PR filtering - Non-draft PR automatic review - Draft to ready conversion review 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- test-workflow.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test-workflow.ts diff --git a/test-workflow.ts b/test-workflow.ts new file mode 100644 index 0000000..fc5cb6b --- /dev/null +++ b/test-workflow.ts @@ -0,0 +1,30 @@ +/** + * Test file to verify GitHub Actions workflow for PR reviews + * This file tests the draft PR filtering logic + */ + +export function testWorkflowReview() { + console.log('Testing PR review workflow'); + + // Test scenario 1: Direct PR creation (non-draft) + const scenario1 = 'Direct ready PR should trigger review'; + + // Test scenario 2: Draft -> Ready conversion + const scenario2 = 'Draft to ready conversion should trigger review'; + + // Test scenario 3: Draft PR creation + const scenario3 = 'Draft PR creation should NOT trigger review'; + + return { + scenario1, + scenario2, + scenario3, + status: 'ready for testing', + }; +} + +// Expected behavior: +// - Draft PR creation: No review +// - Draft → Ready: Review triggered once +// - Direct Ready PR: Review triggered once +// - Code updates: No additional reviews