@@ -111,7 +111,7 @@ export class GithubApp {
111111 res . redirect ( 301 , this . getBadgeImageURL ( ) ) ;
112112 } ) ;
113113
114- app . on ( "installation.created" , ( ctx ) => {
114+ app . on ( "installation.created" , ( ctx : Context < "installation.created" > ) => {
115115 catchError (
116116 ( async ( ) => {
117117 const targetAccountName = `${ ctx . payload . installation . account . login } ` ;
@@ -136,7 +136,7 @@ export class GithubApp {
136136 } ) ( ) ,
137137 ) ;
138138 } ) ;
139- app . on ( "installation.deleted" , ( ctx ) => {
139+ app . on ( "installation.deleted" , ( ctx : Context < "installation.deleted" > ) => {
140140 catchError (
141141 ( async ( ) => {
142142 const installationId = `${ ctx . payload . installation . id } ` ;
@@ -145,7 +145,7 @@ export class GithubApp {
145145 ) ;
146146 } ) ;
147147
148- app . on ( "repository.renamed" , ( ctx ) => {
148+ app . on ( "repository.renamed" , ( ctx : Context < "repository.renamed" > ) => {
149149 catchError (
150150 ( async ( ) => {
151151 const { action, repository, installation } = ctx . payload ;
@@ -172,7 +172,7 @@ export class GithubApp {
172172 // TODO(at): handle deleted as well
173173 } ) ;
174174
175- app . on ( "push" , ( ctx ) => {
175+ app . on ( "push" , ( ctx : Context < "push" > ) => {
176176 catchError ( this . handlePushEvent ( ctx ) ) ;
177177 } ) ;
178178
0 commit comments