@@ -10,14 +10,16 @@ vendor/bin/phpunit
1010vendor/bin/phpstan analyse
1111vendor/bin/php-cs-fixer fix --dry-run
1212vendor/bin/php-cs-fixer fix
13+ php scripts/github-code-review.php
1314```
1415
1516## Architecture
1617
1718- ** Entry** : ` web/github.php ` (active) · ` web/github-old.php ` (legacy, RC-only)
18- - ** Core** : ` src/GithubWebhook.php ` · ` src/GithubMessageBuilder.php ` · ` src/NotificationQueue.php ` · ` src/IgnoredEventException.php ` · ` src/NotImplementedException.php `
19- - ** Config** : ` .env ` (copied from ` .env.dist ` ) — defines ` GITHUB_WEBHOOKS_SECRET ` , ` NOTIF_QUEUE_ENABLED ` , ` NOTIF_QUEUE_KEY_PREFIX ` , ` REDIS_HOST ` , ` REDIS_PORT ` , ` LOG_LEVEL ` , ` RATE_LIMIT_WINDOW ` . RocketChat / Teams webhook URLs live in ` src/config.php ` (gitignored) under ` $chatChannels['rocketchat'] ` / ` $chatChannels['teams'] `
19+ - ** Core** : ` src/GithubWebhook.php ` · ` src/GithubMessageBuilder.php ` · ` src/NotificationQueue.php ` · ` src/CodeReviewQueue.php ` · ` src/ IgnoredEventException.php` · ` src/NotImplementedException.php `
20+ - ** Config** : ` .env ` (copied from ` .env.dist ` ) — defines ` GITHUB_WEBHOOKS_SECRET ` , ` NOTIF_QUEUE_ENABLED ` , ` NOTIF_QUEUE_KEY_PREFIX ` , ` REDIS_HOST ` , ` REDIS_PORT ` , ` LOG_LEVEL ` , ` RATE_LIMIT_WINDOW ` , plus code-review queue keys . RocketChat / Teams webhook URLs live in ` src/config.php ` (gitignored) under ` $chatChannels['rocketchat'] ` / ` $chatChannels['teams'] `
2021- ** Logs** : ` log/Y/m/d/ ` — JSON files named ` His_eventtype_action_user_repo.json ` (verbosity controlled by ` LOG_LEVEL ` )
22+ - ** Code review** : ` src/CodeReviewQueue.php ` enqueues push events for async review by ` scripts/github-code-review.php `
2123- ** Field analysis** : ` scripts/analyze_fields.php ` , ` scripts/filter_webhook.php ` , ` scripts/filter_webhook_batch.php ` produce reports under ` field_analysis_full/ ` (per-group JSON, ` frequency_matrix.json ` , ` FIELD_CATEGORIZATION.md ` )
2224- ** Tests** : ` tests/ ` via ` phpunit.xml ` · fixtures in ` tests/events/{event_name}/ `
2325- ** Quality** : ` phpstan.neon ` · ` phpstan-bootstrap.php ` · ` .php-cs-fixer.dist.php ` (PSR2 + PHP74Migration)
@@ -41,7 +43,8 @@ $Msg = $Builder->build();
4143// or unavailable
4244$queue = new NotificationQueue();
4345$queue->enqueueMessage($room, $Msg['text'], $dedupKey, $EventType, $action, $RepositoryName, $Message, $fallbackWebhookUrl);
44- // 5. Log disposition via NotificationQueue::getLastStatus()
46+ // 5. For push events, also enqueue to CodeReviewQueue for async review
47+ // 6. Log disposition via NotificationQueue::getLastStatus()
4548```
4649
4750## NotificationQueue
0 commit comments