Changeset 9372
- Timestamp:
- 12/20/2019 08:32:47 AM (5 years ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/functions.php
r9371 r9372 144 144 } 145 145 146 /** 147 * Returns a instance of the Trac class for a given trac. 148 */ 149 function get_trac_instance( $trac ) { 150 $trac_uri = 'https://' . $trac . '.trac.wordpress.org/login/rpc'; 151 152 return new Trac( GH_PRBOT_USER, GH_PRBOT_PASS, $trac_uri ); 153 } -
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/webhook.php
r9366 r9372 77 77 78 78 // Add a mention to the Trac Ticket. 79 $trac_uri = 'https://' . $pr_data->trac_ticket[0] . '.trac.wordpress.org/login/rpc'; 80 $trac = new Trac( GH_PRBOT_USER, GH_PRBOT_PASS, $trac_uri ); 79 $trac = get_trac_instance( $pr_data->trac_ticket[0] ); 81 80 82 81 $trac->update(
Note: See TracChangeset
for help on using the changeset viewer.