@@ -204,7 +204,7 @@ function shouldProcessEvent(sender: components["schemas"]["simple-user"], state:
204204}
205205
206206const exports = ( app : Probot ) => {
207- app . on ( [ 'pull_request.edited' , 'pull_request.opened' , 'pull_request.synchronize' ] , ( context ) => {
207+ app . on ( [ 'pull_request.edited' , 'pull_request.opened' , 'pull_request.synchronize' ] , async ( context ) => {
208208 log ( 'pull_request ENTER: ' + context . id + ', ' + context . payload . pull_request . number ) ;
209209 if ( ! shouldProcessEvent ( context . payload . sender ! , context . payload . pull_request . state ) ) {
210210 log ( 'pull_request EXIT: ' + context . id + ' -- skipping' ) ;
@@ -223,7 +223,7 @@ const exports = (app: Probot) => {
223223 return 'ok' ;
224224 } ) ;
225225
226- app . on ( [ 'issues.labeled' ] , ( context ) => {
226+ app . on ( [ 'issues.labeled' ] , async ( context ) => {
227227 log ( 'issues.labeled ENTER: ' + context . id + ', ' + context . payload . issue . number ) ;
228228 if ( ! shouldProcessEvent ( context . payload . sender , context . payload . issue . state ! ) ) {
229229 log ( 'issues.labeled EXIT: ' + context . id + ' -- skipping' ) ;
@@ -242,7 +242,7 @@ const exports = (app: Probot) => {
242242 return 'ok' ;
243243 } ) ;
244244
245- app . on ( [ 'issues.opened' , 'issues.edited' ] , ( context ) => {
245+ app . on ( [ 'issues.opened' , 'issues.edited' ] , async ( context ) => {
246246 log ( 'issue ENTER: ' + context . id + ', ' + context . payload . issue . number ) ;
247247 if ( ! shouldProcessEvent ( context . payload . sender , context . payload . issue . state ! ) ) {
248248 log ( 'issue EXIT: ' + context . id + ' -- skipping' ) ;
@@ -281,7 +281,7 @@ const exports = (app: Probot) => {
281281 return 'ok' ;
282282 } ) ;
283283
284- app . on ( [ 'issue_comment.created' , 'issue_comment.edited' , 'issue_comment.deleted' ] , ( context ) => {
284+ app . on ( [ 'issue_comment.created' , 'issue_comment.edited' , 'issue_comment.deleted' ] , async ( context ) => {
285285 log ( 'issue_comment ENTER: ' + context . id + ', ' + context . payload . comment . id ) ;
286286 if ( ! shouldProcessEvent ( context . payload . sender , context . payload . issue . state ) ) {
287287 log ( 'issue_comment EXIT: ' + context . id + ' -- skipping' ) ;
@@ -300,7 +300,7 @@ const exports = (app: Probot) => {
300300 return 'ok' ;
301301 } ) ;
302302
303- app . on ( [ 'status' ] , ( context ) => {
303+ app . on ( [ 'status' ] , async ( context ) => {
304304 log ( 'status ENTER: ' + context . id + ', ' + context . payload . sha ) ;
305305 if ( context . payload . context == 'user_testing' || context . payload . state != 'success' ) {
306306 log ( 'status EXIT: ' + context . id + ' -- ignoring event' ) ;
0 commit comments