File tree Expand file tree Collapse file tree 2 files changed +8
-298
lines changed Expand file tree Collapse file tree 2 files changed +8
-298
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import fs from 'fs';
22import * as k8s from '@kubernetes/client-node' ;
33import { InstallationAccessTokenAuthentication } from '@octokit/auth-app' ;
44import dotenv from 'dotenv' ;
5- import { Probot } from 'probot' ;
5+ import { Probot , Context } from 'probot' ;
66
77if ( process . env . NODE_ENV !== 'production' ) {
88 dotenv . config ( ) ;
@@ -35,11 +35,14 @@ export const getNamespace = () => k8sNamespace;
3535export const APIS = k8s ;
3636
3737export const useK8sTokenStore = ( app : Probot ) => {
38- app . on ( 'installation.created' , async ( context ) => {
39- await createTokenSecret ( context ) ;
40- } ) ;
38+ app . on (
39+ 'installation.created' ,
40+ async ( context : Context < 'installation.created' > ) => {
41+ await createTokenSecret ( context ) ;
42+ }
43+ ) ;
4144
42- app . on ( 'installation.deleted' , async ( context ) => {
45+ app . on ( 'installation.deleted' , async ( context : Context < 'installation.deleted' > ) => {
4346 await deleteTokenSecret ( context ) ;
4447 } ) ;
4548
You can’t perform that action at this time.
0 commit comments