Changeset 10736
- Timestamp:
- 03/02/2021 03:17:51 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/webhook.php
r10735 r10736 171 171 } 172 172 173 // Ignore some bots.173 // Ignore all bots, keeping the explicit list for future reference. 174 174 $ignored_users = [ 175 175 'github-actions[bot]', 176 176 'codecov[bot]', 177 177 ]; 178 if ( in_array( $payload->comment->user->login, $ignored_users, true ) ) { 178 if ( 179 in_array( $payload->comment->user->login, $ignored_users, true ) || 180 '[bot]' === substr( $payload->comment->user->login, -5 ) // All bot users. 181 ) { 179 182 die( 'IGNORED - Comment by ignored user.' ); 180 183 }
Note: See TracChangeset
for help on using the changeset viewer.