Title: [289364] trunk/Tools/CISupport/ews-build/master.cfg
Revision
289364
Author
aakash_j...@apple.com
Date
2022-02-08 03:59:07 -0800 (Tue, 08 Feb 2022)

Log Message

[ews] Do not configure GitHub hooks on local testing instance
https://bugs.webkit.org/show_bug.cgi?id=236266

Reviewed by Jonathan Bedard.

* Tools/CISupport/ews-build/master.cfg:

Canonical link: https://commits.webkit.org/246952@main

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/master.cfg (289363 => 289364)


--- trunk/Tools/CISupport/ews-build/master.cfg	2022-02-08 11:53:14 UTC (rev 289363)
+++ trunk/Tools/CISupport/ews-build/master.cfg	2022-02-08 11:59:07 UTC (rev 289364)
@@ -42,22 +42,23 @@
     'Builders.buildFetchLimit': 1000,
     'Workers.showWorkerBuilders': True,
 }
-c['www']['change_hook_dialects'] = dict(
-    github={
-        'class': GitHubEventHandlerNoEdits,
-        'secret': load_password('GITHUB_HOOK_SECRET'),
-        'github_property_whitelist': [
-            'github.number',
-            'github.title',
-            'github.head.ref',
-            'github.head.sha',
-            'github.base.sha',
-            'github.head.repo.full_name',
-        ], 'token': load_password('GITHUB_COM_ACCESS_TOKEN'),
-    },
-)
 
 if not is_test_mode_enabled:
+    c['www']['change_hook_dialects'] = dict(
+        github={
+            'class': GitHubEventHandlerNoEdits,
+            'secret': load_password('GITHUB_HOOK_SECRET'),
+            'github_property_whitelist': [
+                'github.number',
+                'github.title',
+                'github.head.ref',
+                'github.head.sha',
+                'github.base.sha',
+                'github.head.repo.full_name',
+            ], 'token': load_password('GITHUB_COM_ACCESS_TOKEN'),
+        },
+    )
+
     credentials = load_password('EWS_CREDENTIALS')
     if not credentials:
         print('EWS credentials not found. Please ensure EWS_CREDENTIALS is configured either in env variables or in passwords.json')
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to