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