Changeset 7663
- Timestamp:
- 09/12/2018 05:15:50 AM (6 years ago)
- Location:
- sites/trunk/common/includes/slack/announce
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/announce/config.php
r7660 r7663 8 8 /** 9 9 * Returns a whitelist of users by channel. 10 * 11 * As slack has deprecated the usage of user_names, please use WordPress.org user_logins here. Case Sensitive. 12 * See https://api.slack.com/changelog/2017-09-the-one-about-usernames 10 13 * 11 14 * The array keys are the channel name (omit #) and the … … 22 25 'hlashbrooke', 23 26 'iandunn', 24 ' rocio',25 'ved anshu',27 '_DorsVenabili', // @rocio on Slack 28 'vedjain', // @vendanshu on Slack 26 29 ); 27 30 … … 33 36 ), 34 37 'bbpress' => array( 35 'j jj',38 'johnjamesjacoby', // @jjj on Slack 36 39 'netweb', 37 40 ), 38 41 'buddypress' => array( 39 'boone ',40 ' djpaul',41 'j jj',42 'boonebgorges', // @boone on Slack 43 'DJPaul', 44 'johnjamesjacoby', // @jjj on Slack 42 45 ), 43 46 'cli' => array( … … 52 55 'danieltj', 53 56 'desrosj', 54 ' jeffpaul',55 ' jon_bossenger',56 ' joshuawold',57 'JeffPaul', 58 'psykro', // @jon_bossenger on Slack 59 'JoshuaWold', 57 60 'pbiron', 58 61 'welcher', 59 ' Whitney',62 'whitneyyadrich', // @Whitney on Slack 60 63 ) ), 61 64 'core-bootstrap' => array_merge( get_committers(), array( … … 68 71 'core-customize' => array_merge( get_committers(), array( 69 72 'celloexpressions', 70 ' jeffpaul',73 'JeffPaul', 71 74 'ocean90', 72 75 'valendesigns', … … 75 78 ) ), 76 79 'core-docs' => array_merge( get_committers(), array( 77 ' drew',78 ' kenshino',80 'DrewAPicture', // @drew on Slack 81 'Kenshino', 79 82 'omarreiss', 80 83 'johnbillion', … … 85 88 'gziolo', 86 89 'iseulde', 87 ' jeffpaul',88 'karmatosed', 89 'mat ias',90 'JeffPaul', 91 'karmatosed', 92 'matveb', // @matias on Slack 90 93 'mcsf', 91 94 'youknowriad', … … 95 98 ) ), 96 99 'core-test' => array_merge( get_committers(), array( 97 ' boren',100 'ryan', // @boren on Slack 98 101 ) ), 99 102 'core-https' => array_merge( get_committers(), array( 100 'eric ',103 'ericlewis', // @eric on Slack 101 104 'tollmanz', 102 105 ) ), 103 106 'core-i18n' => array_merge( get_committers(), array( 104 107 'ocean90', 105 ' sergey',108 'SergeyBiryukov', // @sergey on Slack 106 109 'swissspidy', 107 110 ) ), … … 116 119 'joemcgill', 117 120 'karmatosed', 118 'mike ',121 'mikeschroder', // @mike on Slack 119 122 'ocean90', 120 123 ) ), … … 137 140 'casiepa', 138 141 'desrosj', 139 ' Heather Burns',142 'idea15', // @Heather Burns on Slack 140 143 ) ), 141 144 'core-restapi' => array_merge( get_committers(), array( … … 158 161 'boemedia', 159 162 'hugobaeta', 160 ' joshuawold',163 'JoshuaWold', 161 164 'karmatosed', 162 165 'melchoyce', … … 164 167 ), 165 168 'design-dashicons' => array( 166 ' empireoflight',169 'EmpireOfLight', 167 170 ), 168 171 'docs' => array( 169 ' drew',172 'DrewAPicture', // @drew on Slack 170 173 'hlashbrooke', 171 ' kenshino',174 'Kenshino', 172 175 'lizkaraffa', 173 ' zzap',176 'milana_cap', // @zzap on Slack 174 177 ), 175 178 'feature-notifications' => array( … … 184 187 ), 185 188 'forums' => array( 186 ' clorith',187 ' ipstenu',188 'j an_dembowski',189 'Clorith', 190 'Ipstenu', 191 'jdembowski', // @jan_dembowski on Slack 189 192 'macmanx', 190 193 ), 191 194 'glotpress' => array( 192 195 'ocean90', 193 ' gregross',196 'GregRoss', 194 197 ), 195 198 'hosting-community' => array( 196 'a taylorme',197 'mike ',199 'andrew.taylor', // @ataylorme on Slack 200 'mikeschroder', // @mike on Slack 198 201 'jadonn', 199 202 ), 200 203 'marketing' => array( 201 ' sararosso',202 ' gidgey',204 'rosso99', // @sararosso on Slack 205 'bridgetwillard', // @gidgey on Slack 203 206 ), 204 207 'meta' => array( 205 208 'obenland', 206 ' sergey',209 'SergeyBiryukov', // @sergey on Slack 207 210 'tellyworth', 208 211 ), 209 212 'meta-devhub' => array( 210 213 'coffee2code', 211 ' drew',214 'DrewAPicture', // @drew on Slack 212 215 ), 213 216 'meta-i18n' => array( … … 217 220 'polyglots' => array( 218 221 'casiepa', 219 ' coachbirgit',222 'CoachBirgit', 220 223 'deconf', 221 ' nao',224 'Nao', 222 225 'ocean90', 223 226 'petya', 224 ' sergey',227 'SergeyBiryukov', // @sergey on Slack 225 228 'tobifjellner', 226 229 ), 227 230 'polyglots-events' => array( 228 231 'casiepa', 229 ' coachbirgit',232 'CoachBirgit', 230 233 'deconf', 231 ' nao',234 'Nao', 232 235 'ocean90', 233 236 'petya', 234 ' sergey',237 'SergeyBiryukov', // @sergey on Slack 235 238 'tobifjellner', 236 239 ), … … 245 248 ), 246 249 'tide' => array( 247 ' jeffpaul',250 'JeffPaul', 248 251 'lukecarbis', 249 252 'valendesigns', … … 254 257 'liljimmi', 255 258 'bethsoderberg', 256 'cour tneyengle',259 'courane01', // @courtneyengle on Slack 257 260 'chanthaboune', 258 261 'melindahelt', … … 261 264 // NOTE: Private Groups need not be listed here. All members of Private Groups have access to /announce & /here 262 265 'wcus' => array( 263 ' alx',266 'cronkled', // @alx on Slack 264 267 'camikaos', 265 ' randy_hicks',266 ' bishop',267 ' dustinmeza',268 'vc27', // @randy_hicks on Slack 269 'andrealeebishop', // @bishop on Slack 270 'DustinMeza', 268 271 ), 269 272 'wcus-contributor-day' => array( 270 ' alx',273 'cronkled', // @alx on Slack 271 274 'camikaos', 272 ' drew',275 'DrewAPicture', // @drew on Slack 273 276 ), 274 277 'wptv' => array( 275 ' jerrysarcastic',276 ' roseapplemedia',278 'JerrySarcastic', 279 'RoseAppleMedia', 277 280 ), 278 281 ); … … 281 284 function get_committers() { 282 285 return array( 283 'dd32', 'nacin', ' mark', 'helen', 'azaozz', 'westi',284 ' nb', 'sergey', 'ocean90', 'wonderboymusic', 'drew', 'johnbillion',285 'jorbin', ' boone', 'jeremyfelt', 'pento', 'obenland', 'iseulde',286 'dd32', 'nacin', 'helen', 'azaozz', 'westi', 287 'ocean90', 'wonderboymusic', 'johnbillion', 288 'jorbin', 'jeremyfelt', 'pento', 'obenland', 'iseulde', 286 289 'westonruter', 'afercia', 'karmatosed', 'rmccue', 'michaelarestad', 287 'swissspidy', 'rachelbaker', 'joehoyle', 'melchoyce', 'eric', 'mike',290 'swissspidy', 'rachelbaker', 'joehoyle', 'melchoyce', 288 291 'peterwilsoncc', 'joemcgill', 'davidakennedy', 'adamsilverstein', 289 'jnylen', 'flixos90', 'iandunn', 'kadamwhite', 'matias', 292 'flixos90', 'iandunn', 'kadamwhite', 293 294 'markjaquith', // @mark on Slack 295 'nbachiyski', // @nb on Slack 296 'SergeyBiryukov', // @sergey on Slack 297 'DrewAPicture', // @drew on Slack 298 'boonebgorges', // @boone on Slack 299 'ericlewis', // @eric on Slack 300 'mikeschroder', // @mike on Slack 301 'jnylen0', // @jnylen on Slack 302 'matveb', // @matias on Slack 290 303 ); 291 304 } 305 306 // This is not all deputies; it's only the ones who want to receive `/deputies` pings 307 function get_pingable_worcamp_deputies() { 308 return array( 309 '00Sleepy', '_DorsVenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos', 310 'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke', 311 'karenalma', 'kcristiano', 'kdrewien', 'Kenshino', 'mayukojpn', 'mikelking', 'miss_jwo', 312 'remediosgraphic', 'Savione', 'vc27', 'yaycheryl', 313 314 'coreymckrill', 'iandunn', // todo remove after testing 315 ); 316 } -
sites/trunk/common/includes/slack/announce/lib.php
r7662 r7663 85 85 86 86 if ( $data['command'] === '/committers' ) { 87 // This command seems to not be used actively, in preference for the slack @committers group pings. 87 88 $committers = get_committers(); 88 89 if ( ! in_array( $user, $committers, true ) ) { … … 90 91 } 91 92 93 // TODO: Note that pinging users by `@username` is deprecated, and we now have WordPress.org usernames in the above list. 94 // This should be upadted to ping users by the `<@U.....>` format. 95 92 96 $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) ); 93 97 } elseif ( $data['command'] === '/deputies' ) { 94 // This is not all deputies; it's only the ones who want to receive `/deputies` pings 95 $pingable_deputies = array( 96 '00sleepy', '_dorsvenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos', 97 'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke', 98 'karenalma', 'kcristiano', 'kdrewien', 'kenshino', 'mayukojpn', 'mikelking', 'miss_jwo', 99 'remediosgraphic', 'savione', 'vc27', 'yaycheryl', 100 ); 101 $pingable_deputies = array( 'coreymckrill', 'iandunn' ); // todo remove after testing 98 $pingable_deputies = get_pingable_worcamp_deputies(); 102 99 103 100 if ( ! in_array( $user, $pingable_deputies, true ) ) { 104 101 return; 105 102 } 103 104 // TODO: Note that pinging users by `@username` is deprecated, and we have WordPress.org usernames in the above list. 105 // This should be upadted to ping users by the `<@U.....>` format. 106 106 107 107 $text = sprintf( "*/deputies:* %s\n_(CC: %s)_", $data['text'], '@' . implode( ', @', $pingable_deputies ) );
Note: See TracChangeset
for help on using the changeset viewer.