@@ -111,7 +111,7 @@ export class GithubApp {
111
111
res . redirect ( 301 , this . getBadgeImageURL ( ) ) ;
112
112
} ) ;
113
113
114
- app . on ( "installation.created" , ( ctx ) => {
114
+ app . on ( "installation.created" , ( ctx : Context < "installation.created" > ) => {
115
115
catchError (
116
116
( async ( ) => {
117
117
const targetAccountName = `${ ctx . payload . installation . account . login } ` ;
@@ -136,7 +136,7 @@ export class GithubApp {
136
136
} ) ( ) ,
137
137
) ;
138
138
} ) ;
139
- app . on ( "installation.deleted" , ( ctx ) => {
139
+ app . on ( "installation.deleted" , ( ctx : Context < "installation.deleted" > ) => {
140
140
catchError (
141
141
( async ( ) => {
142
142
const installationId = `${ ctx . payload . installation . id } ` ;
@@ -145,7 +145,7 @@ export class GithubApp {
145
145
) ;
146
146
} ) ;
147
147
148
- app . on ( "repository.renamed" , ( ctx ) => {
148
+ app . on ( "repository.renamed" , ( ctx : Context < "repository.renamed" > ) => {
149
149
catchError (
150
150
( async ( ) => {
151
151
const { action, repository, installation } = ctx . payload ;
@@ -172,7 +172,7 @@ export class GithubApp {
172
172
// TODO(at): handle deleted as well
173
173
} ) ;
174
174
175
- app . on ( "push" , ( ctx ) => {
175
+ app . on ( "push" , ( ctx : Context < "push" > ) => {
176
176
catchError ( this . handlePushEvent ( ctx ) ) ;
177
177
} ) ;
178
178
0 commit comments